aliases, notifs, firmador
This commit is contained in:
parent
3c592a20c1
commit
12ac74e2ca
6 changed files with 40 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -216,3 +216,4 @@ qBittorrent/
|
||||||
retroarch/
|
retroarch/
|
||||||
gcolor3/
|
gcolor3/
|
||||||
pcmanfm-qt/
|
pcmanfm-qt/
|
||||||
|
cni/
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
width = (200, 300)
|
width = (200, 300)
|
||||||
height = 200
|
height = 200
|
||||||
origin = top-center
|
origin = top-right
|
||||||
offset = 0x32
|
offset = 32x32
|
||||||
scale = 0
|
scale = 0
|
||||||
|
|
||||||
notification_limit = 0
|
notification_limit = 0
|
||||||
|
|
26
scripts/firmador
Executable file
26
scripts/firmador
Executable file
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/sh
|
||||||
|
PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
|
||||||
|
FIRMADOR="$HOME/.local/share/firmador/firmador.jar"
|
||||||
|
CACHE_FIRMADOR="$HOME/.local/share/firmador/cache"
|
||||||
|
DOCUMENTOS="$@"
|
||||||
|
|
||||||
|
firmar() {
|
||||||
|
DOC="$1"
|
||||||
|
NOM="${DOC%.*}"
|
||||||
|
EXT="${DOC##*.}"
|
||||||
|
|
||||||
|
PIN="$(pass personal/firma-digital | head -n 1)"
|
||||||
|
[ -z "$PIN" ] && exit 1
|
||||||
|
|
||||||
|
echo "$PIN" | java -jar "$FIRMADOR" \
|
||||||
|
-dargs "$DOC" "$NOM-firmado.$EXT"
|
||||||
|
|
||||||
|
PIN=""
|
||||||
|
}
|
||||||
|
|
||||||
|
for DOC in $DOCUMENTOS ; do
|
||||||
|
firmar "$DOC" > "$CACHE_FIRMADOR"
|
||||||
|
done
|
||||||
|
|
||||||
|
PIN=""
|
||||||
|
rm -rf "$HOME/.pdfbox.cache" "$HOME/.ase"
|
|
@ -7,4 +7,4 @@ name="$(sed '/^Watch\slater:\s/d;/^\s*$/d;/^#/d;s/-.*$//g' "$BOOKMARKS" | menu "
|
||||||
[ -z "$name" ] && exit
|
[ -z "$name" ] && exit
|
||||||
|
|
||||||
grep "$name" $BOOKMARKS | sed -z 's/^.*-//g;s/\n//g' |
|
grep "$name" $BOOKMARKS | sed -z 's/^.*-//g;s/\n//g' |
|
||||||
xsel -ib && notify-send " Bookmarks" "'$name' copied to clipboard"
|
wl-copy && notify-send " Bookmarks" "'$name' copied to clipboard"
|
||||||
|
|
|
@ -33,6 +33,7 @@ alias \
|
||||||
apt-upgrade="sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y" \
|
apt-upgrade="sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y" \
|
||||||
df-short="df -h | grep -v '\s/dev.*$\|\s/run.*$\|\s/boot.*$'" \
|
df-short="df -h | grep -v '\s/dev.*$\|\s/run.*$\|\s/boot.*$'" \
|
||||||
wacom-setup-menu="wacom-setup menu" \
|
wacom-setup-menu="wacom-setup menu" \
|
||||||
|
swayimg="swayimg -s fit -w 000000 -m" \
|
||||||
qr-png="qrencode -s 16 -o qr.png" \
|
qr-png="qrencode -s 16 -o qr.png" \
|
||||||
qr="qrencode -t ansiutf8" \
|
qr="qrencode -t ansiutf8" \
|
||||||
notes="note list" \
|
notes="note list" \
|
||||||
|
|
14
sway/config
14
sway/config
|
@ -24,7 +24,11 @@ set $left h
|
||||||
set $down j
|
set $down j
|
||||||
set $up k
|
set $up k
|
||||||
set $right l
|
set $right l
|
||||||
|
# -
|
||||||
set $term foot
|
set $term foot
|
||||||
|
set $filemgr thunar
|
||||||
|
set $browser firefox
|
||||||
|
# -
|
||||||
set $menu ~/.config/scripts/menu/menu "Run:" run | xargs swaymsg exec --
|
set $menu ~/.config/scripts/menu/menu "Run:" run | xargs swaymsg exec --
|
||||||
set $passmgr ~/.config/scripts/sway/swaypass
|
set $passmgr ~/.config/scripts/sway/swaypass
|
||||||
set $passotp ~/.config/scripts/sway/swayotp
|
set $passotp ~/.config/scripts/sway/swayotp
|
||||||
|
@ -37,7 +41,7 @@ set $micmute ~/.config/scripts/micmute
|
||||||
set $brightup ~/.config/scripts/brightup
|
set $brightup ~/.config/scripts/brightup
|
||||||
set $brightdown ~/.config/scripts/brightdown
|
set $brightdown ~/.config/scripts/brightdown
|
||||||
set $powermenu ~/.config/scripts/menu/menu-power
|
set $powermenu ~/.config/scripts/menu/menu-power
|
||||||
set $prtscr grim -g "$(slurp)" -o ~/screen.png
|
set $bookmenu ~/.config/scripts/menu/menu-bookmarks
|
||||||
|
|
||||||
# Keybinds
|
# Keybinds
|
||||||
floating_modifier $mod normal
|
floating_modifier $mod normal
|
||||||
|
@ -46,6 +50,9 @@ bindsym $mod+Return exec $term
|
||||||
bindsym $mod+r exec $menu
|
bindsym $mod+r exec $menu
|
||||||
bindsym $mod+Shift+p exec $passmgr
|
bindsym $mod+Shift+p exec $passmgr
|
||||||
bindsym $mod+Shift+o exec $passotp
|
bindsym $mod+Shift+o exec $passotp
|
||||||
|
bindsym $mod+e exec $filemgr
|
||||||
|
bindsym $mod+w exec $browser
|
||||||
|
bindsym $mod+b exec $bookmenu
|
||||||
bindsym XF86AudioRaiseVolume exec $volup
|
bindsym XF86AudioRaiseVolume exec $volup
|
||||||
bindsym XF86AudioLowerVolume exec $voldown
|
bindsym XF86AudioLowerVolume exec $voldown
|
||||||
bindsym XF86AudioMute exec $mute
|
bindsym XF86AudioMute exec $mute
|
||||||
|
@ -54,7 +61,7 @@ bindsym Shift+XF86AudioLowerVolume exec $micdown
|
||||||
bindsym Shift+XF86AudioMute exec $micmute
|
bindsym Shift+XF86AudioMute exec $micmute
|
||||||
bindsym XF86MonBrightnessUp exec $brightup
|
bindsym XF86MonBrightnessUp exec $brightup
|
||||||
bindsym XF86MonBrightnessDown exec $brightdown
|
bindsym XF86MonBrightnessDown exec $brightdown
|
||||||
bindsym Print exec $prtscr
|
bindsym Print exec grim -g "$(slurp)" -o ~/screen.png
|
||||||
# -
|
# -
|
||||||
bindsym $mod+Shift+q exec swaymsg exit
|
bindsym $mod+Shift+q exec swaymsg exit
|
||||||
bindsym $mod+p exec $powermenu
|
bindsym $mod+p exec $powermenu
|
||||||
|
@ -101,10 +108,7 @@ bindsym $mod+Shift+9 move container to workspace " 9 "
|
||||||
bindsym $mod+comma workspace next_on_output
|
bindsym $mod+comma workspace next_on_output
|
||||||
bindsym $mod+period workspace prev_on_output
|
bindsym $mod+period workspace prev_on_output
|
||||||
# -
|
# -
|
||||||
bindsym $mod+b splith
|
|
||||||
bindsym $mod+v splitv
|
|
||||||
bindsym $mod+Shift+t layout tabbed
|
bindsym $mod+Shift+t layout tabbed
|
||||||
bindsym $mod+e layout toggle split
|
|
||||||
bindsym $mod+f fullscreen
|
bindsym $mod+f fullscreen
|
||||||
bindsym $mod+Shift+f floating toggle
|
bindsym $mod+Shift+f floating toggle
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue