home · login to get plonkin'

swayconf

@nekomimi.pet · 15d ago · plaintext · 260 loc · raw · 0 comments

1exec_always dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK23default_border none4default_floating_border none5set $opacity 0.96for_window [class=".*"] opacity $opacity7for_window [app_id=".*"] opacity $opacity89bindsym Print exec wl-copy < $(grimshot --notify save area)1011# Default config for sway12#13# Copy this to ~/.config/sway/config and edit it to your liking.14#15# Read `man 5 sway` for a complete reference.1617### Variables18#19# Logo key. Use Mod1 for Alt.20set $mod Mod421# Home row direction keys, like vim22set $left h23set $down j24set $up k25set $right l26# Your preferred terminal emulator27set $term ghostty28# Your preferred application launcher29set $menu wmenu-run3031### Output configuration32#33# Default wallpaper (more resolutions are available in @datadir@/backgrounds/sway/)34#output * bg @datadir@/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill35#36# Example configuration:37#38#   output HDMI-A-1 resolution 1920x1080 position 1920,039#40# You can get the names of your outputs by running: swaymsg -t get_outputs4142output HDMI-A-1 resolution 3440x1440@99.992Hz position 0,0 bg /home/regent/wallpaper/ganyu.png fill43output DP-1 resolution 1920x1080@74.986Hz position 3440,04445### Idle configuration46#47# Example configuration:48#49# exec swayidle -w \50#          timeout 300 'swaylock -f -c 000000' \51#          timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \52#          before-sleep 'swaylock -f -c 000000'53#54# This will lock your screen after 300 seconds of inactivity, then turn off55# your displays after another 300 seconds, and turn your screens back on when56# resumed. It will also lock your screen before your computer goes to sleep.5758### Input configuration59#60# Example configuration:61#62#   input type:touchpad {63#       dwt enabled64#       tap enabled65#       natural_scroll enabled66#       middle_emulation enabled67#   }68#69#   input type:keyboard {70#       xkb_layout "eu"71#   }72#73# swaymsg -t get_inputs74input type:pointer {75    dwt enabled76    tap enabled77    accel_profile "flat"78    pointer_accel -0.179}808182### Key bindings83#84# Basics:85#86    # Start a terminal87    bindsym $mod+Return exec $term8889    # Kill focused window90    bindsym $mod+Shift+q kill9192    # Start your launcher93    bindsym $mod+d exec $menu9495    # Drag floating windows by holding down $mod and left mouse button.96    # Resize them with right mouse button + $mod.97    # Despite the name, also works for non-floating windows.98    # Change normal to inverse to use left mouse button for resizing and right99    # mouse button for dragging.100    floating_modifier $mod normal101102    # Reload the configuration file103    bindsym $mod+Shift+c reload104105    # Exit sway (logs you out of your Wayland session)106    bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'107#108# Moving around:109#110    # Move your focus around111    bindsym $mod+$left focus left112    bindsym $mod+$down focus down113    bindsym $mod+$up focus up114    bindsym $mod+$right focus right115    # Or use $mod+[up|down|left|right]116    bindsym $mod+Left focus left117    bindsym $mod+Down focus down118    bindsym $mod+Up focus up119    bindsym $mod+Right focus right120121    # Move the focused window with the same, but add Shift122    bindsym $mod+Shift+$left move left123    bindsym $mod+Shift+$down move down124    bindsym $mod+Shift+$up move up125    bindsym $mod+Shift+$right move right126    # Ditto, with arrow keys127    bindsym $mod+Shift+Left move left128    bindsym $mod+Shift+Down move down129    bindsym $mod+Shift+Up move up130    bindsym $mod+Shift+Right move right131#132# Workspaces:133#134    # Switch to workspace135    bindsym $mod+1 workspace number 1136    bindsym $mod+2 workspace number 2137    bindsym $mod+3 workspace number 3138    bindsym $mod+4 workspace number 4139    bindsym $mod+5 workspace number 5140    bindsym $mod+6 workspace number 6141    bindsym $mod+7 workspace number 7142    bindsym $mod+8 workspace number 8143    bindsym $mod+9 workspace number 9144    bindsym $mod+0 workspace number 10145    # Move focused container to workspace146    bindsym $mod+Shift+1 move container to workspace number 1147    bindsym $mod+Shift+2 move container to workspace number 2148    bindsym $mod+Shift+3 move container to workspace number 3149    bindsym $mod+Shift+4 move container to workspace number 4150    bindsym $mod+Shift+5 move container to workspace number 5151    bindsym $mod+Shift+6 move container to workspace number 6152    bindsym $mod+Shift+7 move container to workspace number 7153    bindsym $mod+Shift+8 move container to workspace number 8154    bindsym $mod+Shift+9 move container to workspace number 9155    bindsym $mod+Shift+0 move container to workspace number 10156    # Note: workspaces can have any name you want, not just numbers.157    # We just use 1-10 as the default.158#159# Layout stuff:160#161    # You can "split" the current object of your focus with162    # $mod+b or $mod+v, for horizontal and vertical splits163    # respectively.164    bindsym $mod+b splith165    bindsym $mod+v splitv166167    # Switch the current container between different layout styles168    #bindsym $mod+s layout stacking169    bindsym $mod+w layout tabbed170    bindsym $mod+e layout toggle split171172    # Make the current focus fullscreen173    bindsym $mod+f fullscreen174175    # Toggle the current focus between tiling and floating mode176    bindsym $mod+Shift+space floating toggle177178    # Swap focus between the tiling area and the floating area179    bindsym $mod+space focus mode_toggle180181    # Move focus to the parent container182    bindsym $mod+a focus parent183#184# Scratchpad:185#186    # Sway has a "scratchpad", which is a bag of holding for windows.187    # You can send windows there and get them back later.188189    # Move the currently focused window to the scratchpad190    bindsym $mod+Shift+minus move scratchpad191192    # Show the next scratchpad window or hide the focused scratchpad window.193    # If there are multiple scratchpad windows, this command cycles through them.194    bindsym $mod+minus scratchpad show195#196# Resizing containers:197#198mode "resize" {199    # left will shrink the containers width200    # right will grow the containers width201    # up will shrink the containers height202    # down will grow the containers height203    bindsym $left resize shrink width 10px204    bindsym $down resize grow height 10px205    bindsym $up resize shrink height 10px206    bindsym $right resize grow width 10px207208    # Ditto, with arrow keys209    bindsym Left resize shrink width 10px210    bindsym Down resize grow height 10px211    bindsym Up resize shrink height 10px212    bindsym Right resize grow width 10px213214    # Return to default mode215    bindsym Return mode "default"216    bindsym Escape mode "default"217}218bindsym $mod+r mode "resize"219#220# Utilities:221#222    # Special keys to adjust volume via PulseAudio223    bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle224    bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5%225    bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5%226    bindsym --locked XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle227228    # Special keys to control media via playerctl229    bindsym --locked XF86AudioPlay exec playerctl play-pause230    bindsym --locked XF86AudioPause exec playerctl play-pause231    bindsym --locked XF86AudioPrev exec playerctl previous232    bindsym --locked XF86AudioNext exec playerctl next233    bindsym --locked XF86AudioStop exec playerctl stop234235    # Special keys to adjust brightness via brightnessctl236    bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-237    bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+238239    # Special key to take a screenshot with grim240    #bindsym Print exec grim241242#243# Status Bar:244#245# Read `man 5 sway-bar` for more information about this section.246#bar {247#    position top248#249    # When the status_command prints a new line to stdout, swaybar updates.250    # The default just shows the current date and time.251#    status_command while date +'%Y-%m-%d %X'; do sleep 1; done252#253#    colors {254#        statusline #ffffff255#        background #323232256#        inactive_workspace #32323200 #32323200 #5c5c5c257#    }258#}259260include @sysconfdir@/sway/config.d/*

login to post a comment