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

View file

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

View file

@ -14,8 +14,8 @@ set $down j
set $up k
set $right l
# Your preferred terminal emulator
set $term alacritty
set $floatterm alacritty --class floating-foot
set $term foot
set $floatterm foot -a floating-foot
set $lock $HOME/.config/sway/lock.sh
# 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/)
# 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 ./wall.jpg fill
@ -55,19 +55,21 @@ exec swayidle -w \
#
# Example configuration:
#
input type:touchpad {
accel_profile adaptive
click_method clickfinger
dwt enabled
dwtp enabled
middle_emulation enabled
natural_scroll enabled
}
input type:touchpad {
accel_profile adaptive
click_method clickfinger
dwt enabled
dwtp enabled
middle_emulation enabled
natural_scroll enabled
events disabled
}
bindsym $mod+Shift+t input type:touchpad events toggle enabled disabled
input type:keyboard {
xkb_layout "us,ru"
xkb_options "caps:ctrl_modifier,grp:alt_space_toggle"
}
input type:keyboard {
xkb_layout "us,ru"
xkb_options "caps:ctrl_modifier,grp:alt_space_toggle"
}
#
# You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section.
@ -87,7 +89,7 @@ seat * hide_cursor 5000
for_window [app_id="floating-foot"] floating enable
# Start a python shell
bindsym --to-code $mod+z exec $floatterm -e python
bindsym --to-code $mod+z exec $floatterm -- python
# Kill focused window
bindsym --to-code $mod+Shift+q kill
@ -158,7 +160,7 @@ seat * hide_cursor 5000
#
# define outputs
set $builtin_out eDP-1
set $home_out DP-8
set $home_out 'LG Electronics LG HDR 4K 0x00080CA7'
# bind workspaces to inputs
workspace 1 output $home_out $builtin_out
workspace 2 output $home_out $builtin_out
@ -300,7 +302,7 @@ include colors
## Window styling
# 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
#
@ -318,7 +320,7 @@ bar {
# statusline $color15
# STATE Border BG Text
focused_workspace $color06 $color06 $color00
focused_workspace $color05 $color05 $color00
}
}

View file

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