repos / dotfiles

my dotfiles

commit
b411a4d
parent
d867e00
author
Eric Bower
date
2024-12-27 17:20:03 -0500 EST
chore: trim fat in sway config
1 files changed,  +94, -160
M dot_config/sway/config
+94, -160
  1@@ -1,8 +1,5 @@
  2 # Read `man 5 sway` for a complete reference.
  3-#
  4-# Logo key. Use Mod1 for Alt.
  5 set $mod Mod4
  6-# Home row direction keys, like vim
  7 set $left h
  8 set $down j
  9 set $up k
 10@@ -22,9 +19,6 @@ client.unfocused	#81859b #282a36 #81859b #50fa7b #44475a
 11 
 12 default_border pixel 1
 13 
 14-### Output configuration
 15-#output * bg /home/erock/config/wallpapers/linux_dracula.png fill
 16-
 17 set $home DP-1
 18 #output $home mode 2560x1440@144Hz
 19 #output $home scale 1
 20@@ -38,10 +32,6 @@ set $cahoots DP-4
 21 output $cahoots mode 2560x1440@59.951Hz
 22 output $cahoots scale 1.2
 23 
 24-#set $cahoots DP-3
 25-#output $cahoots mode 3840x2160@120.000Hz
 26-#output $cahoots scale 1.5
 27-
 28 set $laptop eDP-1
 29 output $laptop mode 2256x1504@59.999Hz
 30 output $laptop scale 1.7
 31@@ -49,7 +39,6 @@ output $laptop scale 1.7
 32 bindswitch lid:on output $laptop disable
 33 bindswitch lid:off output $laptop enable
 34 
 35-# from /usr/include/xkbcommon/xkbcommon-keysyms.h
 36 # RUN: `usermod -a -G video erock`
 37 bindsym XF86MonBrightnessUp exec light -A 1
 38 bindsym XF86MonBrightnessDown exec light -U 1
 39@@ -59,9 +48,6 @@ bindsym XF86AudioLowerVolume exec pamixer -d 5
 40 bindsym XF86AudioRaiseVolume exec pamixer -i 5
 41 bindsym $mod+Shift+s exec grimshot --notify save area
 42 
 43-# You can get the names of your inputs by running: swaymsg -t get_inputs
 44-# Read `man 5 sway-input` for more information about this section.
 45-
 46 input "type:touchpad" {
 47     tap enabled
 48     natural_scroll disabled
 49@@ -87,159 +73,107 @@ input "4152:5920:SteelSeries_SteelSeries_Rival_310_eSports_Mouse_Keyboard" {
 50 }
 51 
 52 input "20547:23623:Ploopy_Corporation_Ploopy_Adept_Trackball_Mouse" {
 53-  accel_profile "flat"  # disable mouse acceleration
 54-  pointer_accel -0.65    # set mouse sensitivity (between -1 and 1)
 55+  accel_profile "flat"
 56+  pointer_accel -0.65 # between -1 and 1
 57 }
 58 
 59-### Key bindings
 60-#
 61-# Basics:
 62-#
 63-    # Start a terminal
 64-    bindsym $mod+Return exec $term
 65-
 66-    # Kill focused window
 67-    bindsym $mod+Shift+q kill
 68-
 69-    # Start your launcher
 70-    bindsym $mod+d exec $menu
 71-
 72-    # Drag floating windows by holding down $mod and left mouse button.
 73-    # Resize them with right mouse button + $mod.
 74-    # Despite the name, also works for non-floating windows.
 75-    # Change normal to inverse to use left mouse button for resizing and right
 76-    # mouse button for dragging.
 77-    floating_modifier $mod normal
 78-
 79-    # Reload the configuration file
 80-    bindsym $mod+Shift+c reload
 81-
 82-    # Exit sway (logs you out of your Wayland session)
 83-    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'
 84-#
 85-# Moving around:
 86-#
 87-    # Move your focus around
 88-    bindsym $mod+$left focus left
 89-    bindsym $mod+$down focus down
 90-    bindsym $mod+$up focus up
 91-    bindsym $mod+$right focus right
 92-
 93-    # Move the focused window with the same, but add Shift
 94-    bindsym $mod+Shift+$left move left
 95-    bindsym $mod+Shift+$down move down
 96-    bindsym $mod+Shift+$up move up
 97-    bindsym $mod+Shift+$right move right
 98-#
 99-# Workspaces:
100-#
101-    # Switch to workspace
102-    bindsym $mod+1 workspace number 1
103-    bindsym $mod+2 workspace number 2
104-    bindsym $mod+3 workspace number 3
105-    bindsym $mod+4 workspace number 4
106-    bindsym $mod+5 workspace number 5
107-    bindsym $mod+6 workspace number 6
108-    bindsym $mod+7 workspace number 7
109-    bindsym $mod+8 workspace number 8
110-    bindsym $mod+9 workspace number 9
111-    bindsym $mod+0 workspace number 10
112-    # Move focused container to workspace
113-    bindsym $mod+Shift+1 move container to workspace number 1
114-    bindsym $mod+Shift+2 move container to workspace number 2
115-    bindsym $mod+Shift+3 move container to workspace number 3
116-    bindsym $mod+Shift+4 move container to workspace number 4
117-    bindsym $mod+Shift+5 move container to workspace number 5
118-    bindsym $mod+Shift+6 move container to workspace number 6
119-    bindsym $mod+Shift+7 move container to workspace number 7
120-    bindsym $mod+Shift+8 move container to workspace number 8
121-    bindsym $mod+Shift+9 move container to workspace number 9
122-    bindsym $mod+Shift+0 move container to workspace number 10
123-    # Note: workspaces can have any name you want, not just numbers.
124-    # We just use 1-10 as the default.
125-
126-#
127-# Clipboard:
128-#
129-    bindsym $mod+c exec wl-copy
130-    bindsym $mod+v exec wl-paste
131-
132-#
133-# Layout stuff:
134-#
135-    # You can "split" the current object of your focus with
136-    # $mod+b or $mod+v, for horizontal and vertical splits
137-    # respectively.
138-    bindsym $mod+z splith
139-    bindsym $mod+x splitv
140-
141-    # Switch the current container between different layout styles
142-    bindsym $mod+s layout stacking
143-    bindsym $mod+w layout tabbed
144-    bindsym $mod+e layout toggle split
145-
146-    # Make the current focus fullscreen
147-    bindsym $mod+f fullscreen
148-
149-    # Toggle the current focus between tiling and floating mode
150-    bindsym $mod+Shift+space floating toggle
151-
152-    # Swap focus between the tiling area and the floating area
153-    bindsym $mod+space focus mode_toggle
154-
155-    # Move focus to the parent container
156-    bindsym $mod+a focus parent
157-#
158-# Scratchpad:
159-#
160-    # Sway has a "scratchpad", which is a bag of holding for windows.
161-    # You can send windows there and get them back later.
162-
163-    # Move the currently focused window to the scratchpad
164-    bindsym $mod+Shift+minus move scratchpad
165-
166-    # Show the next scratchpad window or hide the focused scratchpad window.
167-    # If there are multiple scratchpad windows, this command cycles through them.
168-    bindsym $mod+minus scratchpad show
169-#
170-# Resizing containers:
171-#
172-mode "resize" {
173-    # left will shrink the containers width
174-    # right will grow the containers width
175-    # up will shrink the containers height
176-    # down will grow the containers height
177-    bindsym $left resize shrink width 10px
178-    bindsym $down resize grow height 10px
179-    bindsym $up resize shrink height 10px
180-    bindsym $right resize grow width 10px
181-
182-    # Ditto, with arrow keys
183-    bindsym Left resize shrink width 10px
184-    bindsym Down resize grow height 10px
185-    bindsym Up resize shrink height 10px
186-    bindsym Right resize grow width 10px
187-
188-    # Return to default mode
189-    bindsym Return mode "default"
190-    bindsym Escape mode "default"
191-}
192-bindsym $mod+r mode "resize"
193+# Start a terminal
194+bindsym $mod+Return exec $term
195+
196+# Kill focused window
197+bindsym $mod+Shift+q kill
198+
199+# Start your launcher
200+bindsym $mod+d exec $menu
201+
202+# Drag floating windows by holding down $mod and left mouse button.
203+# Resize them with right mouse button + $mod.
204+# Despite the name, also works for non-floating windows.
205+# Change normal to inverse to use left mouse button for resizing and right
206+# mouse button for dragging.
207+floating_modifier $mod normal
208+
209+# Reload the configuration file
210+bindsym $mod+Shift+c reload
211+
212+# Exit sway
213+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'
214+
215+# Move your focus around
216+bindsym $mod+$left focus left
217+bindsym $mod+$down focus down
218+bindsym $mod+$up focus up
219+bindsym $mod+$right focus right
220+
221+# Move the focused window with the same, but add Shift
222+bindsym $mod+Shift+$left move left
223+bindsym $mod+Shift+$down move down
224+bindsym $mod+Shift+$up move up
225+bindsym $mod+Shift+$right move right
226+
227+# Switch to workspace
228+bindsym $mod+1 workspace number 1
229+bindsym $mod+2 workspace number 2
230+bindsym $mod+3 workspace number 3
231+bindsym $mod+4 workspace number 4
232+bindsym $mod+5 workspace number 5
233+bindsym $mod+6 workspace number 6
234+bindsym $mod+7 workspace number 7
235+bindsym $mod+8 workspace number 8
236+bindsym $mod+9 workspace number 9
237+bindsym $mod+0 workspace number 10
238+# Move focused container to workspace
239+bindsym $mod+Shift+1 move container to workspace number 1
240+bindsym $mod+Shift+2 move container to workspace number 2
241+bindsym $mod+Shift+3 move container to workspace number 3
242+bindsym $mod+Shift+4 move container to workspace number 4
243+bindsym $mod+Shift+5 move container to workspace number 5
244+bindsym $mod+Shift+6 move container to workspace number 6
245+bindsym $mod+Shift+7 move container to workspace number 7
246+bindsym $mod+Shift+8 move container to workspace number 8
247+bindsym $mod+Shift+9 move container to workspace number 9
248+bindsym $mod+Shift+0 move container to workspace number 10
249+
250+bindsym $mod+c exec wl-copy
251+bindsym $mod+v exec wl-paste
252+
253+# You can "split" the current object of your focus with
254+# $mod+b or $mod+v, for horizontal and vertical splits
255+# respectively.
256+bindsym $mod+z splith
257+bindsym $mod+x splitv
258+
259+# Switch the current container between different layout styles
260+bindsym $mod+s layout stacking
261+bindsym $mod+w layout tabbed
262+bindsym $mod+e layout toggle split
263+
264+# Make the current focus fullscreen
265+bindsym $mod+f fullscreen
266+
267+# Toggle the current focus between tiling and floating mode
268+bindsym $mod+Shift+space floating toggle
269+
270+# Swap focus between the tiling area and the floating area
271+bindsym $mod+space focus mode_toggle
272+
273+# Move focus to the parent container
274+bindsym $mod+a focus parent
275+    
276+# Sway has a "scratchpad", which is a bag of holding for windows.
277+# You can send windows there and get them back later.
278+
279+# Move the currently focused window to the scratchpad
280+bindsym $mod+Shift+minus move scratchpad
281+
282+# Show the next scratchpad window or hide the focused scratchpad window.
283+# If there are multiple scratchpad windows, this command cycles through them.
284+bindsym $mod+minus scratchpad show
285 
286-#
287-# Status Bar:
288-#
289-# Read `man 5 sway-bar` for more information about this section.
290 bar {
291 	swaybar_command waybar
292 }
293 
294-include /etc/sway/config.d/*
295-
296-# exec swayidle
297-# flux alternative  with hardcoded lat/long
298-# exec_always wlsunset -l 42.265385 -L -83.716557
299-
300 exec_always gammastep -l 42.265385:-83.716557 -t 6500:3500
301 
302 set $gnome-schema org.gnome.desktop.interface