config.tmpl (4273B)
1 # Variables 2 set $mod Mod1 3 set $left h 4 set $down j 5 set $up k 6 set $right l 7 set $term alacritty 8 set $menu bemenu-run --fn 'JetBrainsMono Nerd Font Mono' -H 24 | xargs swaymsg exec -- 9 10 # Output 11 output * bg /usr/share/backgrounds/big-sur.jpg fill 12 client.focused #0a84ff #00448a #f2f2f7 #57aaff #0a84ff 13 default_border pixel 2 14 gaps outer 8 15 gaps inner 8 16 17 # Input 18 input "2:7:SynPS/2_Synaptics_TouchPad" { 19 dwt enabled 20 natural_scroll enabled 21 middle_emulation enabled 22 } 23 input "type:keyboard" { 24 xkb_layout us,il 25 xkb_options caps:escape 26 } 27 28 # Key Bindings 29 bindsym $mod+Return exec $term 30 bindsym $mod+Shift+q kill 31 bindsym $mod+q exec swaylock -f -i /usr/share/backgrounds/spaceport.jpg 32 bindsym $mod+d exec $menu 33 floating_modifier $mod normal 34 bindsym $mod+Shift+c reload 35 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' 36 37 bindsym $mod+$left focus left 38 bindsym $mod+$down focus down 39 bindsym $mod+$up focus up 40 bindsym $mod+$right focus right 41 bindsym $mod+Left focus left 42 bindsym $mod+Down focus down 43 bindsym $mod+Up focus up 44 bindsym $mod+Right focus right 45 46 bindsym $mod+Shift+$left move left 47 bindsym $mod+Shift+$down move down 48 bindsym $mod+Shift+$up move up 49 bindsym $mod+Shift+$right move right 50 bindsym $mod+Shift+Left move left 51 bindsym $mod+Shift+Down move down 52 bindsym $mod+Shift+Up move up 53 bindsym $mod+Shift+Right move right 54 55 bindsym $mod+1 workspace number 1 56 bindsym $mod+2 workspace number 2 57 bindsym $mod+3 workspace number 3 58 bindsym $mod+4 workspace number 4 59 bindsym $mod+5 workspace number 5 60 bindsym $mod+6 workspace number 6 61 bindsym $mod+7 workspace number 7 62 bindsym $mod+8 workspace number 8 63 bindsym $mod+9 workspace number 9 64 bindsym $mod+0 workspace number 10 65 66 bindsym $mod+Shift+1 move container to workspace number 1 67 bindsym $mod+Shift+2 move container to workspace number 2 68 bindsym $mod+Shift+3 move container to workspace number 3 69 bindsym $mod+Shift+4 move container to workspace number 4 70 bindsym $mod+Shift+5 move container to workspace number 5 71 bindsym $mod+Shift+6 move container to workspace number 6 72 bindsym $mod+Shift+7 move container to workspace number 7 73 bindsym $mod+Shift+8 move container to workspace number 8 74 bindsym $mod+Shift+9 move container to workspace number 9 75 bindsym $mod+Shift+0 move container to workspace number 10 76 77 bindsym $mod+b splith 78 bindsym $mod+v splitv 79 80 bindsym $mod+s layout stacking 81 bindsym $mod+w layout tabbed 82 bindsym $mod+e layout toggle split 83 84 bindsym $mod+f fullscreen 85 86 bindsym $mod+Shift+space floating toggle 87 bindsym $mod+space focus mode_toggle 88 bindsym $mod+a focus parent 89 90 bindsym $mod+Shift+minus move scratchpad 91 bindsym $mod+minus scratchpad show 92 93 mode "resize" { 94 bindsym $left resize shrink width 10px 95 bindsym $down resize grow height 10px 96 bindsym $up resize shrink height 10px 97 bindsym $right resize grow width 10px 98 99 bindsym Left resize shrink width 10px 100 bindsym Down resize grow height 10px 101 bindsym Up resize shrink height 10px 102 bindsym Right resize grow width 10px 103 104 bindsym Return mode "default" 105 bindsym Escape mode "default" 106 } 107 bindsym $mod+r mode "resize" 108 109 bindsym XF86MonBrightnessDown exec brightnessctl set 5%- 110 bindsym XF86MonBrightnessUp exec brightnessctl set +5% 111 bindsym Shift+XF86MonBrightnessDown exec brightnessctl set 1%- 112 bindsym Shift+XF86MonBrightnessUp exec brightnessctl set +1% 113 114 bindsym XF86AudioLowerVolume exec amixer set Master 5%- 115 bindsym XF86AudioRaiseVolume exec amixer set Master 5%+ 116 bindsym Shift+XF86AudioLowerVolume exec amixer set Master 1%- 117 bindsym Shift+XF86AudioRaiseVolume exec amixer set Master 1%+ 118 119 # Status Bar 120 bar { 121 position top 122 status_command i3status-rs 123 font pango:JetBrainsMono Nerd Font Mono 124 125 colors { 126 statusline #f2f2f7 127 background #2c2c2e 128 focused_workspace #0a84ff #00448a #f2f2f7 129 inactive_workspace #2c2c2e #2c2c2e #636366 130 urgent_workspace #960800 #960800 #f2f2f7 131 } 132 } 133 134 # swayidle 135 exec swayidle -w \ 136 timeout 300 'swaylock -f -i /usr/share/backgrounds/spaceport.jpg' \ 137 timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ 138 before-sleep 'swaylock -f -i /usr/share/backgrounds/spaceport.jpg' 139 140 # wlsunset 141 exec wlsunset -t 3500 -l {{ .coords.lat }} -L {{ .coords.lon }}