Compare commits
No commits in common. "a0866a7bfdb013ed23994c62f0fb738153afdcea" and "1be3c2feaac665098749c9b888d8318d0986a3e2" have entirely different histories.
a0866a7bfd
...
1be3c2feaa
|
@ -53,6 +53,3 @@ super + {t,f,s}
|
||||||
# x230t specific -- activate the tablet menu
|
# x230t specific -- activate the tablet menu
|
||||||
XF86RotateWindows
|
XF86RotateWindows
|
||||||
tabletmenu
|
tabletmenu
|
||||||
|
|
||||||
shift + Insert
|
|
||||||
special_ins
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ def filecheckerfactory(filename: str, modname: str, timeout=60):
|
||||||
|
|
||||||
battery = filecheckerfactory("/sys/class/power_supply/BAT0/capacity", "bat")
|
battery = filecheckerfactory("/sys/class/power_supply/BAT0/capacity", "bat")
|
||||||
batterystatus = filecheckerfactory("/sys/class/power_supply/BAT0/status", "batstat")
|
batterystatus = filecheckerfactory("/sys/class/power_supply/BAT0/status", "batstat")
|
||||||
sxhkdmode = filemodfactory("/home/usr/.cache/statusbar/sxhkd_mode", "sxhkdmode")
|
sxhkdmode = filemodfactory("/home/usr/.cache/sxhkd_mode", "sxhkdmode")
|
||||||
|
|
||||||
def render(modules) -> str:
|
def render(modules) -> str:
|
||||||
columns, _ = os.get_terminal_size(0)
|
columns, _ = os.get_terminal_size(0)
|
||||||
|
@ -144,9 +144,10 @@ def render(modules) -> str:
|
||||||
stdout.flush()
|
stdout.flush()
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
os.mkdir("/home/usr/.cache/statusbar")
|
|
||||||
|
|
||||||
if argv[1] == "start_statusbars":
|
if argv[1] == "start_statusbars":
|
||||||
|
# signal.signal(signal.SIGINT, signal.SIG_IGN)
|
||||||
|
# os.system("pkill statusbar")
|
||||||
|
# signal.signal(signal.SIGINT, signal.SIG_DFL)
|
||||||
# get the monitors
|
# get the monitors
|
||||||
xrandr = subprocess.Popen(['xrandr'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
xrandr = subprocess.Popen(['xrandr'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
output = list(xrandr.stdout)
|
output = list(xrandr.stdout)
|
||||||
|
|
|
@ -4,7 +4,7 @@ if [ -n "$1" ]; then
|
||||||
pkill sxhkd
|
pkill sxhkd
|
||||||
sxhkd -c ~/.config/sxhkd/$1 & disown
|
sxhkd -c ~/.config/sxhkd/$1 & disown
|
||||||
[ -f "~/.config/sxhkd/$1.sh" ] && ~/.config/sxhkd/$1.sh
|
[ -f "~/.config/sxhkd/$1.sh" ] && ~/.config/sxhkd/$1.sh
|
||||||
echo "$1" > ~/.cache/statusbar/sxhkd_mode
|
echo "$1" > ~/.cache/sxhkd_mode
|
||||||
|
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
# insert special characters universally in xorg
|
|
||||||
|
|
||||||
(
|
|
||||||
tmenu <<DONE
|
|
||||||
í i-acute
|
|
||||||
Í I-acute
|
|
||||||
ó o-acute
|
|
||||||
Ó O-acute
|
|
||||||
á a-acute
|
|
||||||
Á a-acute
|
|
||||||
DONE
|
|
||||||
) | awk -F' ' '{print $1}' \
|
|
||||||
| tr -d '\n' \
|
|
||||||
| xclip -in -selection clipboard
|
|
Loading…
Reference in New Issue