From 6636f8fc8d78ff4f82fb8736df010a1af0495687 Mon Sep 17 00:00:00 2001 From: urosm Date: Thu, 8 Feb 2024 15:50:29 +0100 Subject: [PATCH] update `sway` config --- .config/sway/config | 33 +++++++++++++-------------------- .config/sway/milano | 2 +- .config/sway/status.sh | 15 --------------- .config/sway/wallpaper.svg | 18 ------------------ 4 files changed, 14 insertions(+), 54 deletions(-) delete mode 100755 .config/sway/status.sh delete mode 100644 .config/sway/wallpaper.svg diff --git a/.config/sway/config b/.config/sway/config index e3393db..b89e20d 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -16,10 +16,10 @@ set $ws8 8:cmd set $ws9 9:cmd set $ws0 10:rdp # colors -set $bg #292526 -set $dimmed #6185ff -set $accent #ff3e8b -set $error #ff404f +set $bg #000000 +set $dimmed #856cff +set $accent #ff1170 +set $error #fa3500 # key bindings ################################################################# bindsym $mod+return exec footclient @@ -28,20 +28,13 @@ bindsym $mod+w exec firefox bindsym $mod+shift+w exec thunderbird # fuzzel bindsym $mod+space exec fuzzel -bindsym $mod+shift+space exec find -not -path "*/.*" | fuzzel -d | xargs -I{} xdg-open "{}" -bindsym $mod+insert exec lsblk -nrpo"name,type,mountpoint" \ - | awk '$2=="part"{printf"%-12s %s\\n",$1,$3}' \ - | fuzzel -d \ - | awk '{printf($2=="")?"udisksctl mount -b %s":"udisksctl unmount -b %s",$1}' \ - | sh \ - | xargs -I{} notify-send "{}" -bindsym $mod+home exec nmcli -g "type,name,active" connection show \ - | awk 'BEGIN{FS=":"}{printf($3=="yes")?"* %s\\n":" %s\\n",$2}' \ - | fuzzel -d \ - | awk '{printf($1=="*")?"nmcli connection down \\"%s\\"":"nmcli connection up \\"%s\\"",substr($0,3)}' \ - | sh \ - | xargs -I{} notify-send "{}" -bindsym $mod+shift+home exec footclient nmtui +bindsym $mod+shift+space exec fuzzel_open.sh\ + -e $HOME/.cache\ + -e $HOME/.mozilla\ + -e $HOME/.thunderbird\ + -e *.git* +bindsym $mod+home exec fuzzel_nmcli.sh +bindsym $mod+end exec fuzzel_udisksctl.sh # makoctl bindsym $mod+x exec makoctl dismiss bindsym $mod+shift+x exec makoctl dismiss -a @@ -146,7 +139,7 @@ mode $session_mode { bindsym $mod+escape mode $session_mode, fullscreen disable # theme ######################################################################## -output * background wallpaper.svg fill $bg +output * background $bg solid_color seat * hide_cursor 5000 font monospace 13 default_border normal 1 @@ -159,7 +152,7 @@ client.urgent $error $error $bg $error $bg # statusbar #################################################################### bar { - status_command $XDG_CONFIG_HOME/sway/status.sh + status_command status.sh separator_symbol " | " colors { background $bg diff --git a/.config/sway/milano b/.config/sway/milano index 3bee750..c3c80f0 100644 --- a/.config/sway/milano +++ b/.config/sway/milano @@ -5,7 +5,7 @@ output * { # input input "type:keyboard" { - xkb_layout gb,si + xkb_layout us,si xkb_options caps:escape,grp:alt_shift_toggle repeat_delay 200 repeat_rate 30 diff --git a/.config/sway/status.sh b/.config/sway/status.sh deleted file mode 100755 index 1aff08e..0000000 --- a/.config/sway/status.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -printf "{\"version\":1}\n" -printf "[\n" -while true -do - printf [ - swaymsg -t get_inputs | jq -Mcj '[.[] | select(.type=="keyboard")][0] | {"full_text":.xkb_active_layout_name,"urgent":.xkb_active_layout_index}, ","' - cat /sys/class/power_supply/BAT0/capacity | jq -Mcj '{"full_text":.}, ","' - date +%c | jq -RMcj '{"full_text":.}, ","' - swaymsg -t get_tree | jq -Mcj '.nodes[] | select(.name=="__i3").nodes[] | select(.name=="__i3_scratch").floating_nodes | {"full_text":length,"urgent":length}, ","' - makoctl list | jq -Mcj '.data[][0] | {"full_text":(.summary.data // 0),"urgent":((.urgency.data // 0) == 2)}, ","' - printf ], - timeout 1 swaymsg -t subscribe '["input","binding"]' >/dev/null -done diff --git a/.config/sway/wallpaper.svg b/.config/sway/wallpaper.svg deleted file mode 100644 index a6307ad..0000000 --- a/.config/sway/wallpaper.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - _____ - / __ \\ - | / | - | \\___- - -_ - --_ - - -