update sway config

This commit is contained in:
Grisha Shipunov 2025-02-16 18:46:43 +01:00
parent 00a528ff19
commit 01877ed18a
4 changed files with 35 additions and 33 deletions

View file

@ -19,7 +19,7 @@ threshold_critical = 1
display_type = "new" display_type = "new"
[[block.click]] [[block.click]]
button = "left" button = "left"
cmd = "alacritty --class floating-foot -e zsh -c neomutt" cmd = "foot -a floating-foot -W 150x40 -- zsh -c neomutt"
[[block]] [[block]]
block = "maildir" block = "maildir"
@ -30,7 +30,7 @@ threshold_critical = 10
display_type = "new" display_type = "new"
[[block.click]] [[block.click]]
button = "left" button = "left"
cmd = "alacritty --class floating-foot -e zsh -c neomutt" cmd = "foot -a floating-foot -W 150x40 -- zsh -c neomutt"
[[block]] [[block]]
block = "backlight" block = "backlight"
@ -63,15 +63,15 @@ format = " $icon $mem_used_percents "
block = "load" block = "load"
format = " $1m.eng(w:4) $5m.eng(w:4) $15m.eng(w:4) " format = " $1m.eng(w:4) $5m.eng(w:4) $15m.eng(w:4) "
[[block]] # [[block]]
block = "bluetooth" # block = "bluetooth"
mac = "88:C9:E8:CE:69:9F" # mac = "88:C9:E8:CE:69:9F"
[[block.click]] # [[block.click]]
button = "left" # button = "left"
cmd = "bluetoothctl connect 88:C9:E8:CE:69:9F" # cmd = "bluetoothctl connect 88:C9:E8:CE:69:9F"
[[block.click]] # [[block.click]]
button = "right" # button = "right"
cmd = "bluetoothctl disconnect 88:C9:E8:CE:69:9F" # cmd = "bluetoothctl disconnect 88:C9:E8:CE:69:9F"
[[block]] [[block]]
block = "sound" block = "sound"

View file

@ -4,8 +4,8 @@ profile {
} }
# Home # Home
profile { profile {
output eDP-1 enable position 3840,0 adaptive_sync on output eDP-1 enable position 3840,960 adaptive_sync on
output DP-8 enable mode 3840x2160 position 0,0 adaptive_sync on output 'LG Electronics LG HDR 4K 0x00080CA7' enable mode 3840x2160 position 0,0 adaptive_sync on
} }
# Work # Work
profile { profile {

View file

@ -14,8 +14,8 @@ set $down j
set $up k set $up k
set $right l set $right l
# Your preferred terminal emulator # Your preferred terminal emulator
set $term alacritty set $term foot
set $floatterm alacritty --class floating-foot set $floatterm foot -a floating-foot
set $lock $HOME/.config/sway/lock.sh set $lock $HOME/.config/sway/lock.sh
# Your preferred application launcher # Your preferred application launcher
@ -27,7 +27,7 @@ set $menu rofi -show combi | xargs swaymsg exec --
# #
# Default wallpaper (more resolutions are available in /run/current-system/sw/share/backgrounds/sway/) # Default wallpaper (more resolutions are available in /run/current-system/sw/share/backgrounds/sway/)
# output * bg /run/current-system/sw/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill # output * bg /run/current-system/sw/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
output * bg /home/0xa/Pictures/tiles/23.png tile output * bg /home/0xa/Pictures/tiles/343.png tile
# output * bg /home/grue/Pictures/paper.jpg fill # output * bg /home/grue/Pictures/paper.jpg fill
# output * bg ./wall.jpg fill # output * bg ./wall.jpg fill
@ -62,7 +62,9 @@ exec swayidle -w \
dwtp enabled dwtp enabled
middle_emulation enabled middle_emulation enabled
natural_scroll enabled natural_scroll enabled
events disabled
} }
bindsym $mod+Shift+t input type:touchpad events toggle enabled disabled
input type:keyboard { input type:keyboard {
xkb_layout "us,ru" xkb_layout "us,ru"
@ -87,7 +89,7 @@ seat * hide_cursor 5000
for_window [app_id="floating-foot"] floating enable for_window [app_id="floating-foot"] floating enable
# Start a python shell # Start a python shell
bindsym --to-code $mod+z exec $floatterm -e python bindsym --to-code $mod+z exec $floatterm -- python
# Kill focused window # Kill focused window
bindsym --to-code $mod+Shift+q kill bindsym --to-code $mod+Shift+q kill
@ -158,7 +160,7 @@ seat * hide_cursor 5000
# #
# define outputs # define outputs
set $builtin_out eDP-1 set $builtin_out eDP-1
set $home_out DP-8 set $home_out 'LG Electronics LG HDR 4K 0x00080CA7'
# bind workspaces to inputs # bind workspaces to inputs
workspace 1 output $home_out $builtin_out workspace 1 output $home_out $builtin_out
workspace 2 output $home_out $builtin_out workspace 2 output $home_out $builtin_out
@ -300,7 +302,7 @@ include colors
## Window styling ## Window styling
# Border BG Text Indicator Child Border # Border BG Text Indicator Child Border
client.focused $color06 $color06 $color00 $color07 $color06 client.focused $color05 $color05 $color00 $color07 $color05
#client.focused_inactive $color00 $color00 $color00 $color00 $color00 #client.focused_inactive $color00 $color00 $color00 $color00 $color00
# #
@ -318,7 +320,7 @@ bar {
# statusline $color15 # statusline $color15
# STATE Border BG Text # STATE Border BG Text
focused_workspace $color06 $color06 $color00 focused_workspace $color05 $color05 $color00
} }
} }

View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
swaylock -Ffk -i $HOME/Pictures/tiles/23.png -s tile swaylock -Ffk -i $HOME/Pictures/tiles/343.png -s tile