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