my dotz
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add sway config

j3s e44d0993 2faba5a4

+217
+217
.config/sway/config
··· 1 + # Default config for sway 2 + 3 + # Copy this to ~/.config/sway/config and edit it to your liking. 4 + # 5 + # Read `man 5 sway` for a complete reference. 6 + 7 + ### Variables 8 + # 9 + # Logo key. Use Mod1 for Alt. 10 + set $mod Mod4 11 + # Home row direction keys, like vim 12 + set $left h 13 + set $down j 14 + set $up k 15 + set $right l 16 + # Your preferred terminal emulator 17 + set $term st 18 + # Your preferred application launcher 19 + # Note: it's recommended that you pass the final command to sway 20 + set $menu dmenu_path | dmenu | xargs swaymsg exec -- 21 + 22 + ### Output configuration 23 + # 24 + # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) 25 + output * bg /home/j3s/pix/lainbakka.jpg fill 26 + # 27 + # Example configuration: 28 + # 29 + # output DP-1 resolution 3840x2160 position 1920,0 30 + # 31 + # You can get the names of your outputs by running: swaymsg -t get_outputs 32 + 33 + ### Idle configuration 34 + # 35 + # Example configuration: 36 + # 37 + # exec swayidle -w \ 38 + # timeout 300 'swaylock -f -c 000000' \ 39 + # timeout 600 'swaymsg "output * dpms off"' \ 40 + # resume 'swaymsg "output * dpms on"' \ 41 + # before-sleep 'swaylock -f -c 000000' 42 + # 43 + # This will lock your screen after 300 seconds of inactivity, then turn off 44 + # your displays after another 300 seconds, and turn your screens back on when 45 + # resumed. It will also lock your screen before your computer goes to sleep. 46 + 47 + ### Input configuration 48 + input "1133:49979:Logitech_K840_Mechanical_Corded_Keyboard" { 49 + xkb_layout us 50 + xkb_options ctrl:nocaps 51 + } 52 + 53 + input "1452:591:USB_Keychron_K2_USB_DEVICE" { 54 + xkb_layout us 55 + xkb_options ctrl:nocaps 56 + } 57 + # 58 + # You can get the names of your inputs by running: swaymsg -t get_inputs 59 + # Read `man 5 sway-input` for more information about this section. 60 + 61 + ### Key bindings 62 + # 63 + # Basics: 64 + # 65 + # Start a terminal 66 + bindsym $mod+Return exec $term 67 + 68 + # Kill focused window 69 + bindsym $mod+Shift+q kill 70 + 71 + # Start your launcher 72 + bindsym $mod+d exec $menu 73 + 74 + # Drag floating windows by holding down $mod and left mouse button. 75 + # Resize them with right mouse button + $mod. 76 + # Despite the name, also works for non-floating windows. 77 + # Change normal to inverse to use left mouse button for resizing and right 78 + # mouse button for dragging. 79 + floating_modifier $mod normal 80 + 81 + # Reload the configuration file 82 + bindsym $mod+Shift+c reload 83 + 84 + # Exit sway (logs you out of your Wayland session) 85 + 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' 86 + # 87 + # Moving around: 88 + # 89 + # Move your focus around 90 + bindsym $mod+$left focus left 91 + bindsym $mod+$down focus down 92 + bindsym $mod+$up focus up 93 + bindsym $mod+$right focus right 94 + # Or use $mod+[up|down|left|right] 95 + bindsym $mod+Left focus left 96 + bindsym $mod+Down focus down 97 + bindsym $mod+Up focus up 98 + bindsym $mod+Right focus right 99 + 100 + # Move the focused window with the same, but add Shift 101 + bindsym $mod+Shift+$left move left 102 + bindsym $mod+Shift+$down move down 103 + bindsym $mod+Shift+$up move up 104 + bindsym $mod+Shift+$right move right 105 + # Ditto, with arrow keys 106 + bindsym $mod+Shift+Left move left 107 + bindsym $mod+Shift+Down move down 108 + bindsym $mod+Shift+Up move up 109 + bindsym $mod+Shift+Right move right 110 + # 111 + # Workspaces: 112 + # 113 + # Switch to workspace 114 + bindsym $mod+1 workspace 1 115 + bindsym $mod+2 workspace 2 116 + bindsym $mod+3 workspace 3 117 + bindsym $mod+4 workspace 4 118 + bindsym $mod+5 workspace 5 119 + bindsym $mod+6 workspace 6 120 + bindsym $mod+7 workspace 7 121 + bindsym $mod+8 workspace 8 122 + bindsym $mod+9 workspace 9 123 + bindsym $mod+0 workspace 10 124 + # Move focused container to workspace 125 + bindsym $mod+Shift+1 move container to workspace 1 126 + bindsym $mod+Shift+2 move container to workspace 2 127 + bindsym $mod+Shift+3 move container to workspace 3 128 + bindsym $mod+Shift+4 move container to workspace 4 129 + bindsym $mod+Shift+5 move container to workspace 5 130 + bindsym $mod+Shift+6 move container to workspace 6 131 + bindsym $mod+Shift+7 move container to workspace 7 132 + bindsym $mod+Shift+8 move container to workspace 8 133 + bindsym $mod+Shift+9 move container to workspace 9 134 + bindsym $mod+Shift+0 move container to workspace 10 135 + # Note: workspaces can have any name you want, not just numbers. 136 + # We just use 1-10 as the default. 137 + # 138 + # Layout stuff: 139 + # 140 + # You can "split" the current object of your focus with 141 + # $mod+b or $mod+v, for horizontal and vertical splits 142 + # respectively. 143 + bindsym $mod+b splith 144 + bindsym $mod+v splitv 145 + 146 + # Switch the current container between different layout styles 147 + bindsym $mod+s layout stacking 148 + bindsym $mod+w layout tabbed 149 + bindsym $mod+e layout toggle split 150 + 151 + # Make the current focus fullscreen 152 + bindsym $mod+f fullscreen 153 + 154 + # Toggle the current focus between tiling and floating mode 155 + bindsym $mod+Shift+space floating toggle 156 + 157 + # Swap focus between the tiling area and the floating area 158 + bindsym $mod+space focus mode_toggle 159 + 160 + # Move focus to the parent container 161 + bindsym $mod+a focus parent 162 + # 163 + # Scratchpad: 164 + # 165 + # Sway has a "scratchpad", which is a bag of holding for windows. 166 + # You can send windows there and get them back later. 167 + 168 + # Move the currently focused window to the scratchpad 169 + bindsym $mod+Shift+minus move scratchpad 170 + 171 + # Show the next scratchpad window or hide the focused scratchpad window. 172 + # If there are multiple scratchpad windows, this command cycles through them. 173 + bindsym $mod+minus scratchpad show 174 + # 175 + # Resizing containers: 176 + # 177 + mode "resize" { 178 + # left will shrink the containers width 179 + # right will grow the containers width 180 + # up will shrink the containers height 181 + # down will grow the containers height 182 + bindsym $left resize shrink width 10px 183 + bindsym $down resize grow height 10px 184 + bindsym $up resize shrink height 10px 185 + bindsym $right resize grow width 10px 186 + 187 + # Ditto, with arrow keys 188 + bindsym Left resize shrink width 10px 189 + bindsym Down resize grow height 10px 190 + bindsym Up resize shrink height 10px 191 + bindsym Right resize grow width 10px 192 + 193 + # Return to default mode 194 + bindsym Return mode "default" 195 + bindsym Escape mode "default" 196 + } 197 + bindsym $mod+r mode "resize" 198 + 199 + # 200 + # Status Bar: 201 + # 202 + # Read `man 5 sway-bar` for more information about this section. 203 + bar { 204 + position top 205 + 206 + # When the status_command prints a new line to stdout, swaybar updates. 207 + # The default just shows the current date and time. 208 + status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done 209 + 210 + colors { 211 + statusline #ffffff 212 + background #323232 213 + inactive_workspace #32323200 #32323200 #5c5c5c 214 + } 215 + } 216 + 217 + include /etc/sway/config.d/*