config update
This commit is contained in:
parent
bb4c0c93fc
commit
8ac3a2d12f
6 changed files with 35 additions and 2 deletions
|
@ -206,7 +206,7 @@ bar {
|
|||
focus_follows_mouse no
|
||||
bindsym $mod+m floating enable; resize set 1400 850; move absolute position center; move scratchpad
|
||||
bindsym $mod+n scratchpad show
|
||||
bindsym $mod+Shift+x exec i3lock -c 222222
|
||||
bindsym $mod+Shift+x exec ~/.scripts/lock.sh
|
||||
bindsym $mod+z [class="Zathura"] scratchpad show
|
||||
bindsym $mod+u [class="URxvt"] scratchpad show
|
||||
bindsym $mod+c [title="Android Emulator*"] scratchpad show
|
||||
|
|
|
@ -9,6 +9,11 @@
|
|||
#interval=3600
|
||||
#color=#A4C2F4
|
||||
|
||||
[notifications]
|
||||
command=~/.scripts/togglenotify.sh
|
||||
interval=3600
|
||||
color=#91E78B
|
||||
|
||||
# exchange rate(s)
|
||||
[xrateEURZAR]
|
||||
command=~/.config/i3/scripts/xrate.py EURZAR=X
|
||||
|
|
6
.scripts/decode_header.py
Executable file
6
.scripts/decode_header.py
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/python3.8
|
||||
import sys
|
||||
from email.header import decode_header, make_header
|
||||
|
||||
h = make_header(decode_header(sys.argv[1]))
|
||||
print(str(h))
|
9
.scripts/lock.sh
Executable file
9
.scripts/lock.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
if `dunstctl is-paused`; then
|
||||
#i3lock -n -c 222222
|
||||
i3lock -n -i ~/.config/i3/locked.png
|
||||
else
|
||||
dunstctl set-paused true
|
||||
i3lock -n -i ~/.config/i3/locked.png
|
||||
dunstctl set-paused false
|
||||
fi
|
||||
|
|
@ -5,7 +5,7 @@ function extract_sender {
|
|||
grep -o '^From: \(.*\)$' $1 | sed "s/^From: //g"
|
||||
}
|
||||
function extract_subject {
|
||||
grep -o '^Subject: \(.*\)$' $1 | sed "s/^Subject: //g"
|
||||
~/.scripts/decode_header.py `grep -o '^Subject: \(.*\)$' $1 | sed "s/^Subject: //g"`
|
||||
}
|
||||
|
||||
prevmsgs=/tmp/oimapprevmsg
|
||||
|
|
13
.scripts/togglenotify.sh
Executable file
13
.scripts/togglenotify.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
if test -e /tmp/dunstpause; then
|
||||
dunstctl set-paused toggle;
|
||||
else
|
||||
dunstctl set-paused false
|
||||
touch /tmp/dunstpause;
|
||||
fi
|
||||
|
||||
if `dunstctl is-paused`; then
|
||||
echo do not disturb
|
||||
else
|
||||
echo available
|
||||
fi
|
Loading…
Reference in a new issue