diff options
author | Nicholas Noll <nnoll523@gmail.com> | 2021-10-06 14:59:44 -0700 |
---|---|---|
committer | Nicholas Noll <nnoll523@gmail.com> | 2021-10-06 14:59:44 -0700 |
commit | 6026ec7f698e573f56e7915811a055c580763f6d (patch) | |
tree | ff5beb1e466462d106657628de341ea169a530ea | |
parent | 48e9e919f6077b41dfc43af6e56734d978a3fb21 (diff) |
chore: update picom
-rw-r--r-- | .config/picom/config | 61 | ||||
-rw-r--r-- | .xinitrc | 61 |
2 files changed, 48 insertions, 74 deletions
diff --git a/.config/picom/config b/.config/picom/config index 7af894b..2deffb5 100644 --- a/.config/picom/config +++ b/.config/picom/config @@ -1,26 +1,47 @@ +# ------------------------------------------------------------------------ +# global settings + backend = "glx"; +refresh-rate = 0; +vsync = false; +xrender-sync-fence = true; + +# ------------------------------------------------------------------------ +# fading + +fading = true; +fade-delta = 2; +fade-in-step = 0.05; +fade-out-step = 0.05; + +# ------------------------------------------------------------------------ +# shadow + shadow = true; shadow-radius = 5; shadow-offset-x = -5; shadow-offset-y = -5; shadow-opacity = 0.5; -fading = true; -fade-delta = 4; -fade-in-step = 0.10; -fade-out-step = 0.10; +# ------------------------------------------------------------------------ +# special classes + +round-borders = 1; +corner-radius = 4; -menu = { shadow = false; }; -dropdown_menu = { shadow = false; }; -popup_menu = { shadow = false; }; -utility = { shadow = false; }; +menu = { shadow = false; opacity = 1.0 }; +dropdown_menu = { shadow = false; opacity = 1.0 }; +popup_menu = { shadow = false; opacity = 1.0 }; +utility = { shadow = false; opacity = 1.0 }; + +# ------------------------------------------------------------------------ +# opacity focus-exclude = "x = 0 && y = 0 && override_redirect = true"; -menu-opacity = 1.0; inactive-opacity = 0.9; -active-opacity = 0.95; +active-opacity = 0.97; frame-opacity = 0.9; detect-client-opacity = true; inactive-opacity-override = false; @@ -30,12 +51,18 @@ opacity-rule = [ "99:class_g = 'Chromium'", "99:class_g = 'Inkscape'", "99:class_g = 'Gimp'", - "100:class_g = 'eqgame.exe'", - "100:class_g = 'Temtem.exe'", - "100:class_g = 'DaggerfallUnity'", - "100:class_g = 'steam'", - "100:class_g = 'terraria'", + "99:class_g = 'zoom'", ]; -vsync = true; -xrender-sync-fence = true; +# ------------------------------------------------------------------------ +# blur + +blur: +{ + method = "dual_kawase"; + size = 4; + deviation = 5.0; + background = true; + frame = true; + fixed = true; +}; @@ -1,62 +1,9 @@ #!/bin/sh -# 1: last minute -cpu() { - CPULOAD=$(cut -d " " -f 1 /proc/loadavg) - printf " (%s%%)" $CPULOAD -} - -mail() { - NEWMAIL=$(expr $(ls -1 ~/mail/*/INBOX/new | wc -l) - '7') - - if [ "$NEWMAIL" -eq 0 ]; then - printf " (%s)" "$NEWMAIL" - else - printf " (%s)" "$NEWMAIL" - fi -} - -volume() { - VOL=$(amixer get Master | tail -n1 | sed -r "s/.*\[(.*)%\].*/\1/") - - if [ "$VOL" -eq 0 ]; then - printf "🔇" - elif [ "$VOL" -gt 0 ] && [ "$VOL" -le 33 ]; then - printf "🔈%s%%" "$VOL" - elif [ "$VOL" -gt 33 ] && [ "$VOL" -le 66 ]; then - printf "🔉%s%%" "$VOL" - else - printf "🔊%s%%" "$VOL" - fi -} - -memory() { - USED=$(free | awk '(NR == 2) {print $3}') - TOTL=$(free | awk '(NR == 2) {print $2}') - FRAC=$(tail -c 3 <<< $((${USED}00/$TOTL))) - USED=$(free -h | awk '(NR == 2) {print $3}') - - printf " %s(%d%%)" $USED $FRAC -} - -datetime() { - date '+%Y-%m-%d %A %H:%M' -} - -ipaddr() { - for i in `ip r`; do echo $i; done | grep -A 1 src | tail -n1 -} - -while true -do - xsetroot -name "$(volume)│$(memory)│$(ipaddr)│$(cpu)│$(mail)│$(datetime)" - sleep 20s -done & - -. ~/.config/homelayout.sh - -picom --config ~/.config/picom/config & -feh --bg-scale ~/media/pics/honnold_wp.jpg +picom --experimental-backends --config ~/.config/picom/config & +feh --bg-scale ~/media/pics/surf.jpg xbanish & +status & + exec dwm |