diff --git a/eww/date/date.scss b/eww/date/date.scss index def1a52e..dfeb91f7 100644 --- a/eww/date/date.scss +++ b/eww/date/date.scss @@ -28,7 +28,7 @@ .cal-box { font-family: Product Sans; background-color: $bg; - border-radius: 4px; + border-radius: 15px; padding: 0 1rem .2rem; color: $fg; background-color: $contrastbg; diff --git a/eww/scripts/esc.sh b/eww/scripts/esc.sh new file mode 100644 index 00000000..e5b9923b --- /dev/null +++ b/eww/scripts/esc.sh @@ -0,0 +1,13 @@ +### this is a WIP +while : +do + if [[ $(eww state) ]]; then + read -s -n1 key + + case $key in + $'\e') break; + esac + fi +done + +eww close-all diff --git a/sway/config b/sway/config index c07d1602..9284f26e 100755 --- a/sway/config +++ b/sway/config @@ -143,6 +143,9 @@ dim_inactive_colors.urgent #900000FF # Logout on closed lid bindswitch --reload --locked lid:on exec swaylock + # Kill all eww widgets + bindsym Escape exec $scripts/esc.sh + # Kill focused window bindsym $mod+c kill @@ -161,7 +164,7 @@ dim_inactive_colors.urgent #900000FF # Exit sway (logs you out of your Wayland session) #bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' - bindsym $mod+Shift+e exec "eww open powermenu && eww open powermenu-closer" + bindsym $mod+Shift+e exec "eww open powermenu && eww open closer" # # Moving around: # @@ -208,8 +211,8 @@ dim_inactive_colors.urgent #900000FF # Workspaces: # # Allow switching between workspaces with left and right swipes - bindgesture swipe:right exec $HOME/.config/sway/scripts/gestures.sh prev #workspace prev - bindgesture swipe:left exec $HOME/.config/sway/scripts/gestures.sh next #workspace next + bindgesture swipe:right exec $scripts/gestures.sh prev + bindgesture swipe:left exec $scripts/gestures.sh next # Switch to workspace bindsym --no-repeat $mod+z exec "echo 1 > $SOVSOCK" diff --git a/sway/scripts/esc.sh b/sway/scripts/esc.sh new file mode 100755 index 00000000..58f26f07 --- /dev/null +++ b/sway/scripts/esc.sh @@ -0,0 +1,4 @@ +#!/bin/bash +if [[ $(eww state) ]]; then + eww close-all +fi