added xrdb fetcher

This commit is contained in:
Simon
2020-12-30 16:53:47 +01:00
parent c05d789689
commit 9b6b350fd8
8 changed files with 301 additions and 1000 deletions
+14 -3
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
#
# https://github.com/Tadly/hideIt.sh
#
@@ -13,7 +13,11 @@
#
# Global variables used throughout the script
STATUSFILE="$HOME/.config/polybar/scripts/.sysinfo.active"
STATUSFILE="/home/sim/.config/polybar/scripts/.polypopup.floating_sysinfo"
# Set if opened popups should keep the bar shown
POPUPS_PIN=1
WIN_ID=""
WIN_NAME_MVALONG_ONE='^Polybar tray window$'
@@ -582,7 +586,13 @@ function serve_region() {
&& [ $Y -ge $MINY -a $Y -le $MAXY ]; then
_hide=1
else
_hide=0
if [ ! "$POPUPS_PIN" -eq 0 ] && [ -f $STATUSFILE ]; then
_hide=1
else
_hide=0
fi
fi
# Don't hide if the cursor is still above the window
@@ -594,6 +604,7 @@ function serve_region() {
# Only do something if necessary
if [ $_IS_HIDDEN -ne $_hide ]; then
hide_window $_hide
fi
fi