diff options
-rw-r--r-- | .bash_profile | 1 | ||||
-rw-r--r-- | .config/sxhkd/sxhkdrc | 2 | ||||
-rwxr-xr-x | .local/bin/set_dwm_status_bar (renamed from programs/my_scripts/set_dwm_status_bar.sh) | 2 | ||||
-rwxr-xr-x | .local/bin/time.uuid (renamed from programs/my_scripts/time.uuid.sh) | 2 | ||||
-rw-r--r-- | .xinitrc | 2 |
5 files changed, 7 insertions, 2 deletions
diff --git a/.bash_profile b/.bash_profile index c875ab0d..fef1368d 100644 --- a/.bash_profile +++ b/.bash_profile @@ -13,6 +13,7 @@ export EDITOR=nvim export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc" #export QT_QPA_PLATFORMTHEME=qt5ct export QT_STYLE_OVERRIDE=kvantum +export PATH="$(find ~/.local/bin -type d -printf %p:)$PATH" # startx when login, should be put after environmental variables for .xinitrc to use if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 471ffc63..3fc79624 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -1,2 +1,2 @@ alt + Print - ffmpeg -f x11grab -i $DISPLAY -vframes 1 $HOME/pictures/screenshots/$($HOME/programs/my_scripts/time.uuid.sh).png + ffmpeg -f x11grab -i $DISPLAY -vframes 1 $HOME/pictures/screenshots/$(time.uuid).png diff --git a/programs/my_scripts/set_dwm_status_bar.sh b/.local/bin/set_dwm_status_bar index 035adff4..2c0bad68 100755 --- a/programs/my_scripts/set_dwm_status_bar.sh +++ b/.local/bin/set_dwm_status_bar @@ -1,3 +1,5 @@ +#!/bin/sh + xsetroot -name "$(date "+%a %m/%d %H:%M") \ | $(if xset q | grep -q "Caps Lock: *on"; then echo A; else echo a; fi) \ | $(cat /sys/class/net/wlp6s0/operstate) \ diff --git a/programs/my_scripts/time.uuid.sh b/.local/bin/time.uuid index 438499a8..f8d42d4d 100755 --- a/programs/my_scripts/time.uuid.sh +++ b/.local/bin/time.uuid @@ -1,3 +1,5 @@ +#!/bin/sh + # echo current nanosecond since epoch and alpha-numerically ordered UUID # https://stackoverflow.com/questions/28681650/generate-alpha-numerically-ordered-uuids-over-time?noredirect=1&lq=1 # https://askubuntu.com/questions/342842/what-does-this-command-mean-awk-f-print-4 @@ -37,7 +37,7 @@ export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx while true; do - $HOME/programs/my_scripts/set_dwm_status_bar.sh + set_dwm_status_bar sleep 1 done & |