feat: some stuff

This commit is contained in:
2022-04-06 23:34:14 +02:00
parent 44e2c18c7a
commit 0982678906
6 changed files with 36 additions and 14 deletions

View File

@ -304,6 +304,8 @@ bindsym $mod+r mode "resize"
# Handles notifications
exec_always mako
exec_always pulseaudio --start
# Handle Authentiction requests
exec_always lxpolkit
# Dimms the screen
exec_always wlsunset -l 39.47 -L -0.3821346

View File

@ -5,10 +5,10 @@ GAPS=3
# How to get the current inner border from swaymsg
#$ echo $(swaymsg -t get_config | jq ".config") | sed -n '/gaps\ inner/p' | sed 's/gaps\ inner//g' | xargs
if [ "$(pgrep waybar)" != "" ]; then
killall waybar;
if [ "$(ps cax | grep waybar$)" != "" ]; then
swaymsg gaps outer all set 0;
swaymsg gaps inner all set 0;
killall waybar;
else
swaymsg gaps outer all set $GAPS;
swaymsg gaps inner all set $GAPS;