Compare commits
2 Commits
1be3c2feaa
...
a0866a7bfd
Author | SHA1 | Date |
---|---|---|
stupidcomputer | a0866a7bfd | |
stupidcomputer | 36b441f054 |
|
@ -53,3 +53,6 @@ super + {t,f,s}
|
|||
# x230t specific -- activate the tablet menu
|
||||
XF86RotateWindows
|
||||
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")
|
||||
batterystatus = filecheckerfactory("/sys/class/power_supply/BAT0/status", "batstat")
|
||||
sxhkdmode = filemodfactory("/home/usr/.cache/sxhkd_mode", "sxhkdmode")
|
||||
sxhkdmode = filemodfactory("/home/usr/.cache/statusbar/sxhkd_mode", "sxhkdmode")
|
||||
|
||||
def render(modules) -> str:
|
||||
columns, _ = os.get_terminal_size(0)
|
||||
|
@ -144,10 +144,9 @@ def render(modules) -> str:
|
|||
stdout.flush()
|
||||
|
||||
def main():
|
||||
os.mkdir("/home/usr/.cache/statusbar")
|
||||
|
||||
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
|
||||
xrandr = subprocess.Popen(['xrandr'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||
output = list(xrandr.stdout)
|
||||
|
|
|
@ -4,7 +4,7 @@ if [ -n "$1" ]; then
|
|||
pkill sxhkd
|
||||
sxhkd -c ~/.config/sxhkd/$1 & disown
|
||||
[ -f "~/.config/sxhkd/$1.sh" ] && ~/.config/sxhkd/$1.sh
|
||||
echo "$1" > ~/.cache/sxhkd_mode
|
||||
echo "$1" > ~/.cache/statusbar/sxhkd_mode
|
||||
|
||||
exit
|
||||
fi
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
# 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