diff --git a/.gitignore b/.gitignore index a09c2a0..49da333 100644 --- a/.gitignore +++ b/.gitignore @@ -216,3 +216,4 @@ qBittorrent/ retroarch/ gcolor3/ pcmanfm-qt/ +cni/ diff --git a/dunst/dunstrc b/dunst/dunstrc index 82cc2dc..bb330b1 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -4,8 +4,8 @@ width = (200, 300) height = 200 - origin = top-center - offset = 0x32 + origin = top-right + offset = 32x32 scale = 0 notification_limit = 0 diff --git a/scripts/firmador b/scripts/firmador new file mode 100755 index 0000000..2170adb --- /dev/null +++ b/scripts/firmador @@ -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" diff --git a/scripts/menu/menu-bookmarks b/scripts/menu/menu-bookmarks index e3c3dd0..e064964 100755 --- a/scripts/menu/menu-bookmarks +++ b/scripts/menu/menu-bookmarks @@ -7,4 +7,4 @@ name="$(sed '/^Watch\slater:\s/d;/^\s*$/d;/^#/d;s/-.*$//g' "$BOOKMARKS" | menu " [ -z "$name" ] && exit 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" diff --git a/shell/aliasrc b/shell/aliasrc index 2baaf18..e407321 100644 --- a/shell/aliasrc +++ b/shell/aliasrc @@ -33,6 +33,7 @@ alias \ 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.*$'" \ wacom-setup-menu="wacom-setup menu" \ + swayimg="swayimg -s fit -w 000000 -m" \ qr-png="qrencode -s 16 -o qr.png" \ qr="qrencode -t ansiutf8" \ notes="note list" \ diff --git a/sway/config b/sway/config index 661aa00..1c15580 100644 --- a/sway/config +++ b/sway/config @@ -24,7 +24,11 @@ set $left h set $down j set $up k set $right l +# - set $term foot +set $filemgr thunar +set $browser firefox +# - set $menu ~/.config/scripts/menu/menu "Run:" run | xargs swaymsg exec -- set $passmgr ~/.config/scripts/sway/swaypass set $passotp ~/.config/scripts/sway/swayotp @@ -37,7 +41,7 @@ set $micmute ~/.config/scripts/micmute set $brightup ~/.config/scripts/brightup set $brightdown ~/.config/scripts/brightdown set $powermenu ~/.config/scripts/menu/menu-power -set $prtscr grim -g "$(slurp)" -o ~/screen.png +set $bookmenu ~/.config/scripts/menu/menu-bookmarks # Keybinds floating_modifier $mod normal @@ -46,6 +50,9 @@ bindsym $mod+Return exec $term bindsym $mod+r exec $menu bindsym $mod+Shift+p exec $passmgr 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 XF86AudioLowerVolume exec $voldown bindsym XF86AudioMute exec $mute @@ -54,7 +61,7 @@ bindsym Shift+XF86AudioLowerVolume exec $micdown bindsym Shift+XF86AudioMute exec $micmute bindsym XF86MonBrightnessUp exec $brightup 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+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+period workspace prev_on_output # - -bindsym $mod+b splith -bindsym $mod+v splitv bindsym $mod+Shift+t layout tabbed -bindsym $mod+e layout toggle split bindsym $mod+f fullscreen bindsym $mod+Shift+f floating toggle