summaryrefslogtreecommitdiffstats
path: root/files/.config/sway/config
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2024-09-20 14:16:56 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2024-09-20 14:16:56 +0200
commit45bb0d11161b1c5077a1415eed6dbd0fd25ccb6a (patch)
treeb564c1c43920def6641cd482a7b4dca453dbc043 /files/.config/sway/config
parent07dd8e37eb767c3dd6abf63e5e4a720cd778da15 (diff)
downloaddotfiles-45bb0d11161b1c5077a1415eed6dbd0fd25ccb6a.tar.gz
dotfiles-45bb0d11161b1c5077a1415eed6dbd0fd25ccb6a.zip
Change dotfiles structure, and add guix-channels declaration.
Diffstat (limited to 'files/.config/sway/config')
-rw-r--r--files/.config/sway/config195
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 @@
1set $mod Mod4
2
3set $left h
4set $down j
5set $up k
6set $right l
7
8set $term alacritty
9set $emacs emacsclient -c
10set $menu fuzzel -r0 -b 282828f2 -C 458588f2 -B 3 -s 458588f2 -S 282828FF --font "Terminus:size=12" -p "run: "
11
12set $laptop-display eDP-1
13set $generic-display HDMI-A-1
14set $primary-home-display 'Iiyama North America PLE2407HDSD 0x01010101'
15set $secondary-home-display 'Dell Inc. DELL E190S M8VPV186CELI'
16
17set $primary-display-layout 'Samsung Electric Company C34H89x HTJM200007' $primary-home-display $generic-display $laptop-display
18set $secondary-display-layout $secondary-home-display $laptop-display
19
20# output * bg SPOILER_33.png fill
21output * bg #002b36 solid_color
22
23output $laptop-display resolution 1920x1080 position 1920,0
24output $generic-display resolution 1920x1080 position 0,0
25output $primary-home-display resolution 1920x1080 position 0,0
26output $secondary-home-display resolution 1280x1024 position 1920,0
27set $opacity 0.9
28
29client.focused #002b36 #586e75 #eee8d5 #268bd2
30client.focused_inactive #002b36 #073642 #93a1a1 #268bd2
31client.unfocused #002b36 #073642 #93a1a1 #268bd2
32client.urgent #002b36 #dc322f #fdf6e3 #002b36
33
34input type:keyboard {
35 xkb_layout pl,us
36}
37
38input type:touchpad {
39 tap enabled
40 middle_emulation enabled
41}
42
43bindsym $mod+Shift+s output $laptop-display toggle
44
45set $swaylock 'swaylock -f -c 000000 --font "Terminus"'
46exec 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
53bindsym $mod+Escape exec $swaylock
54
55bindsym XF86MonBrightnessUp exec brightnessctl set 5%+
56bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
57
58bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
59bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
60bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
61
62bindsym XF86AudioNext exec playerctl next
63bindsym XF86AudioPrev exec playerctl previous
64bindsym XF86AudioPlay exec playerctl play-pause
65bindsym XF86AudioPause exec playerctl pause
66
67bindsym print exec grimshot --notify copy area
68bindsym $mod+print exec grimshot --notify copy output
69bindsym $mod+Ctrl+print grimshot save area - | swappy -f -
70
71bindsym $mod+Return exec $term
72
73bindsym $mod+Shift+q kill
74
75floating_modifier $mod normal
76
77bindsym $mod+Shift+c reload
78bindsym $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
80bindsym $mod+$left focus left
81bindsym $mod+$down focus down
82bindsym $mod+$up focus up
83bindsym $mod+$right focus right
84
85bindsym $mod+Shift+$left move left
86bindsym $mod+Shift+$down move down
87bindsym $mod+Shift+$up move up
88bindsym $mod+Shift+$right move right
89
90workspace 1 output $primary-display-layout
91workspace 2 output $primary-display-layout
92workspace 3 output $secondary-display-layout
93workspace 4 output $secondary-display-layout
94workspace 9 output $primary-display-layout
95workspace 10 output $secondary-display-layout
96
97bindsym $mod+1 workspace number 1
98bindsym $mod+2 workspace number 2
99bindsym $mod+3 workspace number 3
100bindsym $mod+4 workspace number 4
101bindsym $mod+5 workspace number 5
102bindsym $mod+6 workspace number 6
103bindsym $mod+7 workspace number 7
104bindsym $mod+8 workspace number 8
105bindsym $mod+9 workspace number 9
106bindsym $mod+0 workspace number 10
107
108bindsym $mod+Shift+1 move container to workspace number 1
109bindsym $mod+Shift+2 move container to workspace number 2
110bindsym $mod+Shift+3 move container to workspace number 3
111bindsym $mod+Shift+4 move container to workspace number 4
112bindsym $mod+Shift+5 move container to workspace number 5
113bindsym $mod+Shift+6 move container to workspace number 6
114bindsym $mod+Shift+7 move container to workspace number 7
115bindsym $mod+Shift+8 move container to workspace number 8
116bindsym $mod+Shift+9 move container to workspace number 9
117bindsym $mod+Shift+0 move container to workspace number 10
118
119assign [app_id="(firefox-default|Firefox|qutebrowser|Chromium-browser)"] 2
120assign [instance="(chromium-browser)"] 2
121assign [instance="(spotify)"] 3
122assign [app_id=".blueman-manager-real"] 3
123assign [app_id="pavucontrol"] 3
124assign [app_id="(org.telegram.desktop)"] 4
125assign [app_id="vesktop"] 4
126assign [app_id="com.ktechpit.whatsie"] 4
127assign [instance="(discord)"] 4
128
129# for_window [app_id="vesktop"] opacity $opacity
130
131bindsym $mod+b splith
132bindsym $mod+v splitv
133
134bindsym $mod+s layout stacking
135bindsym $mod+w layout tabbed
136bindsym $mod+e layout toggle split
137
138bindsym $mod+f fullscreen
139bindsym $mod+Shift+space floating toggle
140bindsym $mod+space focus mode_toggle
141bindsym $mod+a focus parent
142
143bindsym $mod+Shift+minus move scratchpad
144bindsym $mod+minus scratchpad show
145
146mode "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}
156bindsym $mod+r mode "resize"
157
158set $default swaymsg mode default
159mode "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}
168bindsym $mod+o mode "menu"
169
170
171workspace_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
181font Terminus (TTF) 12
182bindsym $mod+p exec $menu
183
184
185# Taken from dawivil dotfiles.
186exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
187
188# exec udiskie -t
189exec mako --font "Terminus (TTF)" --outer-margin=5 --margin=3 --border-size=3 --default-timeout=7000 --background="#282828e0"
190
191exec nm-applet --indicator
192exec blueman-applet
193exec waybar
194exec udiskie -t
195exec wlsunset -l 51.919438 -L 19.145136