diff options
Diffstat (limited to 'files/.config/sway')
-rw-r--r-- | files/.config/sway/config | 195 |
1 files changed, 195 insertions, 0 deletions
diff --git a/files/.config/sway/config b/files/.config/sway/config new file mode 100644 index 0000000..cf587fc --- /dev/null +++ b/files/.config/sway/config | |||
@@ -0,0 +1,195 @@ | |||
1 | set $mod Mod4 | ||
2 | |||
3 | set $left h | ||
4 | set $down j | ||
5 | set $up k | ||
6 | set $right l | ||
7 | |||
8 | set $term alacritty | ||
9 | set $emacs emacsclient -c | ||
10 | set $menu fuzzel -r0 -b 282828f2 -C 458588f2 -B 3 -s 458588f2 -S 282828FF --font "Terminus:size=12" -p "run: " | ||
11 | |||
12 | set $laptop-display eDP-1 | ||
13 | set $generic-display HDMI-A-1 | ||
14 | set $primary-home-display 'Iiyama North America PLE2407HDSD 0x01010101' | ||
15 | set $secondary-home-display 'Dell Inc. DELL E190S M8VPV186CELI' | ||
16 | |||
17 | set $primary-display-layout 'Samsung Electric Company C34H89x HTJM200007' $primary-home-display $generic-display $laptop-display | ||
18 | set $secondary-display-layout $secondary-home-display $laptop-display | ||
19 | |||
20 | # output * bg SPOILER_33.png fill | ||
21 | output * bg #002b36 solid_color | ||
22 | |||
23 | output $laptop-display resolution 1920x1080 position 1920,0 | ||
24 | output $generic-display resolution 1920x1080 position 0,0 | ||
25 | output $primary-home-display resolution 1920x1080 position 0,0 | ||
26 | output $secondary-home-display resolution 1280x1024 position 1920,0 | ||
27 | set $opacity 0.9 | ||
28 | |||
29 | client.focused #002b36 #586e75 #eee8d5 #268bd2 | ||
30 | client.focused_inactive #002b36 #073642 #93a1a1 #268bd2 | ||
31 | client.unfocused #002b36 #073642 #93a1a1 #268bd2 | ||
32 | client.urgent #002b36 #dc322f #fdf6e3 #002b36 | ||
33 | |||
34 | input type:keyboard { | ||
35 | xkb_layout pl,us | ||
36 | } | ||
37 | |||
38 | input type:touchpad { | ||
39 | tap enabled | ||
40 | middle_emulation enabled | ||
41 | } | ||
42 | |||
43 | bindsym $mod+Shift+s output $laptop-display toggle | ||
44 | |||
45 | set $swaylock 'swaylock -f -c 000000 --font "Terminus"' | ||
46 | exec swayidle -w \ | ||
47 | timeout 280 $swaylock \ | ||
48 | timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ | ||
49 | before-sleep $swaylock | ||
50 | |||
51 | # inhibit_idle fullscreen | ||
52 | |||
53 | bindsym $mod+Escape exec $swaylock | ||
54 | |||
55 | bindsym XF86MonBrightnessUp exec brightnessctl set 5%+ | ||
56 | bindsym XF86MonBrightnessDown exec brightnessctl set 5%- | ||
57 | |||
58 | bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle | ||
59 | bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% | ||
60 | bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% | ||
61 | |||
62 | bindsym XF86AudioNext exec playerctl next | ||
63 | bindsym XF86AudioPrev exec playerctl previous | ||
64 | bindsym XF86AudioPlay exec playerctl play-pause | ||
65 | bindsym XF86AudioPause exec playerctl pause | ||
66 | |||
67 | bindsym print exec grimshot --notify copy area | ||
68 | bindsym $mod+print exec grimshot --notify copy output | ||
69 | bindsym $mod+Ctrl+print grimshot save area - | swappy -f - | ||
70 | |||
71 | bindsym $mod+Return exec $term | ||
72 | |||
73 | bindsym $mod+Shift+q kill | ||
74 | |||
75 | floating_modifier $mod normal | ||
76 | |||
77 | bindsym $mod+Shift+c reload | ||
78 | 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' | ||
79 | |||
80 | bindsym $mod+$left focus left | ||
81 | bindsym $mod+$down focus down | ||
82 | bindsym $mod+$up focus up | ||
83 | bindsym $mod+$right focus right | ||
84 | |||
85 | bindsym $mod+Shift+$left move left | ||
86 | bindsym $mod+Shift+$down move down | ||
87 | bindsym $mod+Shift+$up move up | ||
88 | bindsym $mod+Shift+$right move right | ||
89 | |||
90 | workspace 1 output $primary-display-layout | ||
91 | workspace 2 output $primary-display-layout | ||
92 | workspace 3 output $secondary-display-layout | ||
93 | workspace 4 output $secondary-display-layout | ||
94 | workspace 9 output $primary-display-layout | ||
95 | workspace 10 output $secondary-display-layout | ||
96 | |||
97 | bindsym $mod+1 workspace number 1 | ||
98 | bindsym $mod+2 workspace number 2 | ||
99 | bindsym $mod+3 workspace number 3 | ||
100 | bindsym $mod+4 workspace number 4 | ||
101 | bindsym $mod+5 workspace number 5 | ||
102 | bindsym $mod+6 workspace number 6 | ||
103 | bindsym $mod+7 workspace number 7 | ||
104 | bindsym $mod+8 workspace number 8 | ||
105 | bindsym $mod+9 workspace number 9 | ||
106 | bindsym $mod+0 workspace number 10 | ||
107 | |||
108 | bindsym $mod+Shift+1 move container to workspace number 1 | ||
109 | bindsym $mod+Shift+2 move container to workspace number 2 | ||
110 | bindsym $mod+Shift+3 move container to workspace number 3 | ||
111 | bindsym $mod+Shift+4 move container to workspace number 4 | ||
112 | bindsym $mod+Shift+5 move container to workspace number 5 | ||
113 | bindsym $mod+Shift+6 move container to workspace number 6 | ||
114 | bindsym $mod+Shift+7 move container to workspace number 7 | ||
115 | bindsym $mod+Shift+8 move container to workspace number 8 | ||
116 | bindsym $mod+Shift+9 move container to workspace number 9 | ||
117 | bindsym $mod+Shift+0 move container to workspace number 10 | ||
118 | |||
119 | assign [app_id="(firefox-default|Firefox|qutebrowser|Chromium-browser)"] 2 | ||
120 | assign [instance="(chromium-browser)"] 2 | ||
121 | assign [instance="(spotify)"] 3 | ||
122 | assign [app_id=".blueman-manager-real"] 3 | ||
123 | assign [app_id="pavucontrol"] 3 | ||
124 | assign [app_id="(org.telegram.desktop)"] 4 | ||
125 | assign [app_id="vesktop"] 4 | ||
126 | assign [app_id="com.ktechpit.whatsie"] 4 | ||
127 | assign [instance="(discord)"] 4 | ||
128 | |||
129 | # for_window [app_id="vesktop"] opacity $opacity | ||
130 | |||
131 | bindsym $mod+b splith | ||
132 | bindsym $mod+v splitv | ||
133 | |||
134 | bindsym $mod+s layout stacking | ||
135 | bindsym $mod+w layout tabbed | ||
136 | bindsym $mod+e layout toggle split | ||
137 | |||
138 | bindsym $mod+f fullscreen | ||
139 | bindsym $mod+Shift+space floating toggle | ||
140 | bindsym $mod+space focus mode_toggle | ||
141 | bindsym $mod+a focus parent | ||
142 | |||
143 | bindsym $mod+Shift+minus move scratchpad | ||
144 | bindsym $mod+minus scratchpad show | ||
145 | |||
146 | mode "resize" { | ||
147 | bindsym $left resize shrink width 10px | ||
148 | bindsym $down resize grow height 10px | ||
149 | bindsym $up resize shrink height 10px | ||
150 | bindsym $right resize grow width 10px | ||
151 | |||
152 | bindsym Return mode "default" | ||
153 | bindsym Control+g mode "default" | ||
154 | bindsym Escape mode "default" | ||
155 | } | ||
156 | bindsym $mod+r mode "resize" | ||
157 | |||
158 | set $default swaymsg mode default | ||
159 | mode "menu" { | ||
160 | bindsym --no-repeat e exec '$default; $emacs;' | ||
161 | bindsym --no-repeat w exec "$default; whois-at-hsp -n" | ||
162 | |||
163 | bindsym Return mode "default" | ||
164 | bindsym Control+g mode "default" | ||
165 | bindsym Escape mode "default" | ||
166 | |||
167 | } | ||
168 | bindsym $mod+o mode "menu" | ||
169 | |||
170 | |||
171 | workspace_layout tabbed | ||
172 | |||
173 | # default_border normal 3 | ||
174 | # gaps outer 0 | ||
175 | # gaps inner 6 | ||
176 | # corner_radius 4 | ||
177 | # blur_xray disable | ||
178 | # blur enable | ||
179 | # layer_effects "waybar" blur enable | ||
180 | |||
181 | font Terminus (TTF) 12 | ||
182 | bindsym $mod+p exec $menu | ||
183 | |||
184 | |||
185 | # Taken from dawivil dotfiles. | ||
186 | exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway | ||
187 | |||
188 | # exec udiskie -t | ||
189 | exec mako --font "Terminus (TTF)" --outer-margin=5 --margin=3 --border-size=3 --default-timeout=7000 --background="#282828e0" | ||
190 | |||
191 | exec nm-applet --indicator | ||
192 | exec blueman-applet | ||
193 | exec waybar | ||
194 | exec udiskie -t | ||
195 | exec wlsunset -l 51.919438 -L 19.145136 | ||