mirror of
https://gitlab.com/linuxstuff/dotfiles.git
synced 2026-08-15 12:59:28 +02:00
added xrdb fetcher
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user