1
0

return of the sway

This commit is contained in:
2024-09-08 23:00:18 +02:00
parent b9a0aa07f4
commit 95f1df25c1
+27 -24
View File
@@ -16,7 +16,7 @@ set $ws6 6
set $ws7 7 set $ws7 7
set $ws8 8 set $ws8 8
set $ws9 9 set $ws9 9
set $ws10 0 set $ws10 10
# Input/output configuration # Input/output configuration
input "*" { input "*" {
@@ -29,9 +29,7 @@ output * bg $color0 solid_color
output * bg $wallpaper fill output * bg $wallpaper fill
#exec wal -c #exec wal -c
#exec wal -i $wallpaper #exec wal -i $wallpaper
exec autotiling exec_always autotiling
exec --no-startup-id fcitx -d
include workspaces include workspaces
include display include display
@@ -63,11 +61,9 @@ bar {
exec_always ~/.config/mako/launch.sh exec_always ~/.config/mako/launch.sh
# Window border colors. Transparent borders on unfocused windows # Window border colors. Transparent borders on unfocused windows
client.focused $color0 $color0 $color0 $color4 $color4 client.focused $color1 $color1 $color0
client.focused_inactive $color0 $color0 $color0 $color0 $color0 client.focused_inactive $color1 $color1 $color6
client.unfocused $color0 $color0 $color2
# Wallpaper script
include wallpaper
# General bindings # General bindings
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
@@ -75,7 +71,8 @@ bindsym $mod+q kill
bindsym $mod+d exec $launcher bindsym $mod+d exec $launcher
bindsym $mod+Ctrl+d exec $launcher bindsym $mod+Ctrl+d exec $launcher
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
bindsym $mod+f fullscreen bindsym $mod+f fullscreen toggle
bindsym $mod+Shift+f layout toggle tabbed splith
bindsym $mod+Shift+space floating toggle bindsym $mod+Shift+space floating toggle
bindsym $mod+space focus mode_toggle bindsym $mod+space focus mode_toggle
bindsym $mod+minus scratchpad show bindsym $mod+minus scratchpad show
@@ -98,12 +95,17 @@ bindsym $mod+a exec $term -e cava
bindsym $mod+Shift+a exec $term -e pulsemixer bindsym $mod+Shift+a exec $term -e pulsemixer
bindsym $mod+i exec $term -e htop --user mark bindsym $mod+i exec $term -e htop --user mark
bindsym $mod+Shift+i exec $term -e btop bindsym $mod+Shift+i exec $term -e btop
bindsym $mod+Shift+d exec discord --enable-features=UseOzonePlatform --ozone-platform=wayland #bindsym $mod+Shift+d exec discord --enable-features=UseOzonePlatform --ozone-platform=wayland
#bindsym $mod+Shift+d exec vesktop --enable-features=UseOzonePlatform --ozone-platform=wayland
bindsym $mod+Shift+d exec equibop --enable-features=UseOzonePlatform --ozone-platform=wayland
bindsym $mod+Shift+m exec $term -e ncmpcpp bindsym $mod+Shift+m exec $term -e ncmpcpp
bindsym $mod+Ctrl+m exec catia bindsym $mod+Ctrl+m exec catia
bindsym $mod+m exec spotify bindsym $mod+m exec spotify
bindsym $mod+n exec mozillavpn activate
bindsym $mod+o exec ~/.scripts/wallpaper
bindsym $mod+Shift+o exec ~/.scripts/wallpaper-upload
bindsym $mod+p exec pass clip -r bindsym $mod+p exec pass clip -r
bindsym $mod+Shift+Return exec $term -e python bindsym $mod+Shift+Return exec $term -e python
bindsym $mod+Shift+t exec teams bindsym $mod+Shift+t exec teams
# Screenshotting # Screenshotting
@@ -111,11 +113,7 @@ bindsym Print exec grim -g "$(slurp)" - | wl-copy
bindsym Ctrl+Print exec grim -g "$(slurp)" ~/screenshot.png && notify-send -i ~/screenshot.png "Screenshot saved" bindsym Ctrl+Print exec grim -g "$(slurp)" ~/screenshot.png && notify-send -i ~/screenshot.png "Screenshot saved"
bindsym Shift+Ctrl+Print exec grim ~/screenshot.png bindsym Shift+Ctrl+Print exec grim ~/screenshot.png
bindsym Shift+Print exec grim -g "$(slurp)" - | swappy -f - bindsym Shift+Print exec grim -g "$(slurp)" - | swappy -f -
bindsym $mod+T exec grim -g "$(slurp)" ~/screenshot.png && tesseract ~/screenshot.png stdout | wl-copy
# Spotify control
bindsym $mod+Ctrl+$right exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
bindsym $mod+Ctrl+$left exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
bindsym $mod+Ctrl+space exec dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
# Moving around # Moving around
bindsym $mod+$left focus left bindsym $mod+$left focus left
@@ -140,7 +138,7 @@ bindsym $mod+$ws6 workspace $ws6
bindsym $mod+$ws7 workspace $ws7 bindsym $mod+$ws7 workspace $ws7
bindsym $mod+$ws8 workspace $ws8 bindsym $mod+$ws8 workspace $ws8
bindsym $mod+$ws9 workspace $ws9 bindsym $mod+$ws9 workspace $ws9
bindsym $mod+$ws10 workspace $ws10 bindsym $mod+0 workspace $ws10
bindsym $mod+Shift+$ws1 move workspace $ws1 bindsym $mod+Shift+$ws1 move workspace $ws1
bindsym $mod+Shift+$ws2 move workspace $ws2 bindsym $mod+Shift+$ws2 move workspace $ws2
@@ -151,13 +149,14 @@ bindsym $mod+Shift+$ws6 move workspace $ws6
bindsym $mod+Shift+$ws7 move workspace $ws7 bindsym $mod+Shift+$ws7 move workspace $ws7
bindsym $mod+Shift+$ws8 move workspace $ws8 bindsym $mod+Shift+$ws8 move workspace $ws8
bindsym $mod+Shift+$ws9 move workspace $ws9 bindsym $mod+Shift+$ws9 move workspace $ws9
bindsym $mod+Shift+$ws10 move workspace $ws10 bindsym $mod+Shift+0 move workspace $ws10
set $scr_smol DP-3 set $scr_smol DP-3
set $scr_bige DP-2 set $scr_bige DP-2
output $scr_bige resolution 2560x1440 position 0 0 #output $scr_bige resolution 3840x2160 position 0 0
#output $scr_bige scale 1.5 #output $scr_bige scale 1.5
output $scr_bige resolution 2560x1440 position 0 0
output $scr_smol mode --custom 1920x1080 position 2560 0 output $scr_smol mode --custom 1920x1080 position 2560 0
output $scr_smol adaptive_sync off output $scr_smol adaptive_sync off
@@ -172,12 +171,16 @@ workspace $ws10 output $scr_smol
# App fixes # App fixes
assign [class="discord"] $ws3 assign [class="discord"] $ws3
assign [app_id="discord"] $ws3 assign [app_id="discord"] $ws3
assign [class="lightcord"] $ws3 assign [app_id="vesktop"] $ws3
assign [app_id="equibop"] $ws3
for_window [class="discord"] move workspace $ws3 for_window [class="discord"] move workspace $ws3
for_window [app_id="discord"] move workspace $ws3 for_window [app_id="discord"] move workspace $ws3
for_window [class="lightcord"] move workspace $ws3 for_window [app_id="vesktop"] move workspace $ws3
assign [class="Steam"] $ws4 for_window [app_id="equibop"] move workspace $ws3
for_window [class="Steam"] move workspace $ws4 assign [class="steam"] $ws4
assign [app_id="steam"] $ws4
for_window [class="steam"] move workspace $ws4
for_window [app_id="steam"] move workspace $ws4
for_window [title="Firefox — Sharing Indicator"] floating enable for_window [title="Firefox — Sharing Indicator"] floating enable
for_window [title="Firefox — Sharing Indicator"] nofocus for_window [title="Firefox — Sharing Indicator"] nofocus