Eric Bower
·
2024-12-27
config
1# Read `man 5 sway` for a complete reference.
2set $mod Mod4
3set $left h
4set $down j
5set $up k
6set $right l
7# Your preferred terminal emulator
8set $term foot
9
10font pango:"Noto Sans" 10, "Noto Color Emoji" 10
11
12set $background #282a36
13set $color5 #bd93f9
14set $menuargs --binding vim --no-exec --no-overlap --ignorecase --prompt '>>' --fn "Noto Sans Mono 10" --tf "$color5" --hf "$color5" --tb "$background" --fb "$background" --nb "$background" --ab "$background" --hb "$background"
15set $menu bemenu-run $menuargs | xargs swaymsg exec --
16
17client.focused #bd93f9 #282a36 #f2f2f2 #50fa7b #bd93f9
18client.unfocused #81859b #282a36 #81859b #50fa7b #44475a
19
20default_border pixel 1
21
22set $home DP-1
23#output $home mode 2560x1440@144Hz
24#output $home scale 1
25
26set $home3 DP-3
27output $home3 mode 2560x1440@144Hz
28output $home3 scale 1
29
30set $cahoots DP-4
31# Dell Inc. DELL U2713HM JMPXK44LA7AL
32output $cahoots mode 2560x1440@59.951Hz
33output $cahoots scale 1.2
34
35set $laptop eDP-1
36output $laptop mode 2256x1504@59.999Hz
37output $laptop scale 1.7
38
39bindswitch lid:on output $laptop disable
40bindswitch lid:off output $laptop enable
41
42# RUN: `usermod -a -G video erock`
43bindsym XF86MonBrightnessUp exec light -A 1
44bindsym XF86MonBrightnessDown exec light -U 1
45# RUN: pacman -S pamixer
46bindsym XF86AudioMute exec pamixer --toggle-mute
47bindsym XF86AudioLowerVolume exec pamixer -d 5
48bindsym XF86AudioRaiseVolume exec pamixer -i 5
49bindsym $mod+Shift+s exec grimshot --notify save area
50
51input "type:touchpad" {
52 tap enabled
53 natural_scroll disabled
54 dwt disabled
55 accel_profile "flat" # disable mouse acceleration
56 pointer_accel 0.0 # set mouse sensitivity (between -1 and 1)
57}
58
59input "type:keyboard" {
60 repeat_delay 300
61 repeat_rate 30
62}
63
64input "1:1:AT_Translated_Set_2_keyboard" {
65 xkb_options "caps:escape,altwin:swap_alt_win"
66}
67
68input "18003:1:foostan_Corne" {
69}
70
71input "4152:5920:SteelSeries_SteelSeries_Rival_310_eSports_Mouse_Keyboard" {
72 scroll_factor 1
73}
74
75input "20547:23623:Ploopy_Corporation_Ploopy_Adept_Trackball_Mouse" {
76 accel_profile "flat"
77 pointer_accel -0.65 # between -1 and 1
78}
79
80# Start a terminal
81bindsym $mod+Return exec $term
82
83# Kill focused window
84bindsym $mod+Shift+q kill
85
86# Start your launcher
87bindsym $mod+d exec $menu
88
89# Drag floating windows by holding down $mod and left mouse button.
90# Resize them with right mouse button + $mod.
91# Despite the name, also works for non-floating windows.
92# Change normal to inverse to use left mouse button for resizing and right
93# mouse button for dragging.
94floating_modifier $mod normal
95
96# Reload the configuration file
97bindsym $mod+Shift+c reload
98
99# Exit sway
100bindsym $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'
101
102# Move your focus around
103bindsym $mod+$left focus left
104bindsym $mod+$down focus down
105bindsym $mod+$up focus up
106bindsym $mod+$right focus right
107
108# Move the focused window with the same, but add Shift
109bindsym $mod+Shift+$left move left
110bindsym $mod+Shift+$down move down
111bindsym $mod+Shift+$up move up
112bindsym $mod+Shift+$right move right
113
114# Switch to workspace
115bindsym $mod+1 workspace number 1
116bindsym $mod+2 workspace number 2
117bindsym $mod+3 workspace number 3
118bindsym $mod+4 workspace number 4
119bindsym $mod+5 workspace number 5
120bindsym $mod+6 workspace number 6
121bindsym $mod+7 workspace number 7
122bindsym $mod+8 workspace number 8
123bindsym $mod+9 workspace number 9
124bindsym $mod+0 workspace number 10
125# Move focused container to workspace
126bindsym $mod+Shift+1 move container to workspace number 1
127bindsym $mod+Shift+2 move container to workspace number 2
128bindsym $mod+Shift+3 move container to workspace number 3
129bindsym $mod+Shift+4 move container to workspace number 4
130bindsym $mod+Shift+5 move container to workspace number 5
131bindsym $mod+Shift+6 move container to workspace number 6
132bindsym $mod+Shift+7 move container to workspace number 7
133bindsym $mod+Shift+8 move container to workspace number 8
134bindsym $mod+Shift+9 move container to workspace number 9
135bindsym $mod+Shift+0 move container to workspace number 10
136
137bindsym $mod+c exec wl-copy
138bindsym $mod+v exec wl-paste
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.
143bindsym $mod+z splith
144bindsym $mod+x splitv
145
146# Switch the current container between different layout styles
147bindsym $mod+s layout stacking
148bindsym $mod+w layout tabbed
149bindsym $mod+e layout toggle split
150
151# Make the current focus fullscreen
152bindsym $mod+f fullscreen
153
154# Toggle the current focus between tiling and floating mode
155bindsym $mod+Shift+space floating toggle
156
157# Swap focus between the tiling area and the floating area
158bindsym $mod+space focus mode_toggle
159
160# Move focus to the parent container
161bindsym $mod+a focus parent
162
163# Sway has a "scratchpad", which is a bag of holding for windows.
164# You can send windows there and get them back later.
165
166# Move the currently focused window to the scratchpad
167bindsym $mod+Shift+minus move scratchpad
168
169# Show the next scratchpad window or hide the focused scratchpad window.
170# If there are multiple scratchpad windows, this command cycles through them.
171bindsym $mod+minus scratchpad show
172
173bar {
174 swaybar_command waybar
175}
176
177exec_always gammastep -l 42.265385:-83.716557 -t 6500:3500
178
179set $gnome-schema org.gnome.desktop.interface
180exec_always {
181 gsettings set $gnome-schema font-name 'Noto Sans 10'
182}
183
184# notifications
185exec mako
186# swipe gestures
187exec libinput-gestures-setup autostart start