This commit is contained in:
tavo-wasd 2023-08-04 15:43:03 -06:00
parent 7a81623e8d
commit 435282b523
4 changed files with 9 additions and 6 deletions

View file

@ -20,7 +20,7 @@ sysmodmap=/etc/X11/xinit/.Xmodmap
systemctl --user import-environment DISPLAY &
setxkbmap en &
xset r rate 300 50 &
hsetroot -cover /home/tavo/Media/Pictures/Backgrounds/71.jpg &
hsetroot -cover /home/tavo/Media/Pictures/Backgrounds/70.png
dwmblocks &
clipmenud &
ps -C dunst | grep -q dunst || dunst &

View file

@ -1,12 +1,14 @@
#!/bin/sh
# Script for 'pass'
PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
# Ask for password name in vault
password=$(find $XDG_DATA_HOME/password-store/ -type f -name '*.gpg' |
sed 's/.*\/\(.*\)\.gpg$/\1/' | menu "Password:")
password="$(find "$PASSWORD_STORE_DIR" -type f -name '*.gpg' |
sed 's/.*\/\(.*\)\.gpg$/\1/' | menu "Password:")"
# Exit if none chosen
[ -z "$password" ] && exit
# If chosen, use xdotool to type it
xdotool type "$(pass $password | head -1)" && [ -e /usr/bin/notify-send ] && notify-send " $password" "Successfully decrypted"
xdotool type "$(pass $password | head -1)" &&
[ -e /usr/bin/notify-send ] && notify-send " $password" "Successfully decrypted"

View file

@ -9,7 +9,7 @@ img=$(find ~/Media/Pictures/Backgrounds/* | shuf | sxiv -itoq | tail -1)
[ -z "$img" ] && exit
# Find previous startup background command
prev=$(grep hsetroot ~/.xinitrc)
prev=$(grep hsetroot "$XINITRC")
# Define wether or not hsetroot should
# set per monitor or treat multiple monitors as one
@ -22,4 +22,4 @@ esac
# Set background and change
# startup configuration with new one
$new && sed -i "s|$prev|$new|g" ~/.xinitrc
$new && sed -i "s|$prev|$new|g" "$XINITRC"

View file

@ -7,6 +7,7 @@ export \
XDG_DATA_HOME="$HOME/.local/share" \
XDG_CONFIG_HOME="$HOME/.config" \
GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0" \
PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store" \
VIMINIT="source $XDG_CONFIG_HOME/vim/vimrc" \
XSERVERRC="$XDG_CONFIG_HOME/X11/xserverrc" \
XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" \