From 01877ed18a4563c1250ebfc0e69bf1c4e0b95ae1 Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Sun, 16 Feb 2025 18:46:43 +0100 Subject: [PATCH] update sway config --- sway/.config/i3status-rust/config.toml | 22 +++++++------- sway/.config/kanshi/config | 4 +-- sway/.config/sway/config | 40 ++++++++++++++------------ sway/.config/sway/lock.sh | 2 +- 4 files changed, 35 insertions(+), 33 deletions(-) diff --git a/sway/.config/i3status-rust/config.toml b/sway/.config/i3status-rust/config.toml index 5a4c59c..347bcf2 100644 --- a/sway/.config/i3status-rust/config.toml +++ b/sway/.config/i3status-rust/config.toml @@ -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" diff --git a/sway/.config/kanshi/config b/sway/.config/kanshi/config index b43586a..0f3df43 100644 --- a/sway/.config/kanshi/config +++ b/sway/.config/kanshi/config @@ -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 { diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 644b52e..62d724a 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -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 } } diff --git a/sway/.config/sway/lock.sh b/sway/.config/sway/lock.sh index 8edb9b9..3c620f1 100755 --- a/sway/.config/sway/lock.sh +++ b/sway/.config/sway/lock.sh @@ -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