1
0
Fork 0

hlwm: use $HOME instead of tpl

This commit is contained in:
Vladimír Dudr 2022-12-20 09:48:13 +01:00
parent 1b0f8a325c
commit 3b66576c5f

View file

@ -8,7 +8,7 @@ hc() {
hc emit_hook reload
# shellcheck source={{.chezmoi.homeDir}}/.config/herbstluftwm/colors.sh
# shellcheck source=${HOME}/.config/herbstluftwm/colors.sh
. "$(dirname "$0")/colors.sh"
### disable touchpad, cuz trackpoint rulezzzz
@ -29,7 +29,7 @@ hc keybind $Mod-Shift-r reload
hc keybind $Mod-Shift-c close
hc keybind $Mod-Return spawn systemd-run --scope --user kitty
hc keybind $Mod-x spawn systemd-run --scope --user rofi -modi drun -show drun
hc keybind $Mod-Shift-x spawn systemd-run --scope --user rofi -show fb -modi fb:{{.chezmoi.homeDir}}/.config/herbstluftwm/file-browser
hc keybind $Mod-Shift-x spawn systemd-run --scope --user rofi -show fb -modi fb:${HOME}/.config/herbstluftwm/file-browser
hc keybind $Mod-z spawn systemd-run --scope --user rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'
hc keybind $Mod-c spawn systemd-run --scope --user rofi -lines 0 -show calc -modi calc -no-show-match -no-sort -no-history
hc keybind $Mod-a spawn systemd-run --scope --user rofi -show pb -modi "pb:$HOME/.config/herbstluftwm/passmenu2"
@ -139,7 +139,7 @@ hc keybind XF86AudioRaiseVolume spawn systemd-run --scope --user sh -c 'pactl se
hc keybind XF86AudioMicMute spawn systemd-run --scope --user rofi -show pulse -modi "pulse:$HOME/.config/herbstluftwm/pulsemenu"
hc keybind XF86AudioNext spawn systemd-run --scope --user cmus-remote -n
hc keybind XF86AudioPrev spawn systemd-run --scope --user cmus-remote -r
hc keybind XF86AudioPlay spawn systemd-run --scope --user cmus-remote -u
hc keybind XF86AudioPlay spawn systemd-run --scope --user "$HOME/bin/mpristoggle"
# shellcheck disable=2016 # needed to pass whole script to keybind...
hc keybind XF86TouchpadToggle spawn systemd-run --scope --user dash -c 'xinput --set-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" $(xinput --list-props "SynPS/2 Synaptics TouchPad" | awk -F ":\t+" "/Device Enabled/ { print (1+\$2)%2}")'
@ -147,9 +147,9 @@ hc keybind XF86TouchpadToggle spawn systemd-run --scope --user dash -c 'xinput -
hc keybind XF86Display spawn systemd-run --scope --user ~/.config/herbstluftwm/monitors
hc keybind XF86ScreenSaver and a spawn systemd-run --scope --user slock a spawn xset dpms force off
# shellcheck disable=2016 # $f is scrot interpolation string, not shells
hc keybind Print spawn systemd-run --scope --user scrot --focused --exec 'imv $f' {{.chezmoi.homeDir}}/Pictures/scrot/%F-scrot.png
hc keybind Print spawn systemd-run --scope --user scrot --focused --exec 'imv $f' ${HOME}/Pictures/scrot/%F-scrot.png
# shellcheck disable=SC2016
hc keybind Shift-Print spawn systemd-run --scope --user scrot --select --exec 'imv $f' {{.chezmoi.homeDir}}/Pictures/scrot/%F-scrot.png
hc keybind Shift-Print spawn systemd-run --scope --user scrot --select --exec 'imv $f' ${HOME}/Pictures/scrot/%F-scrot.png
# theme
hc attr theme.tiling.reset 1
@ -223,9 +223,7 @@ hc set tree_style '╾│ ├└╼─┐'
# unlock, just to be sure
hc unlock
{{ if eq .chezmoi.hostname "ws" }}
xrandr --output HDMI-1 --right-of DVI-D-1
{{end}}
# do multi monitor setup here, e.g.:
# hc set_monitors 1280x1024+0+0 1280x1024+1280+0
# or simply:
@ -256,4 +254,4 @@ xset s off
xset -dpms
### set wallpaper
#feh --bg-center {{.chezmoi.homeDir}}/config/wallpaper/RoyalRadish-Wallpaper_practice_12.png
#feh --bg-center ${HOME}/config/wallpaper/RoyalRadish-Wallpaper_practice_12.png