hlwm: scrot -> maim
This commit is contained in:
parent
4a4ed736fb
commit
be296837aa
1 changed files with 5 additions and 7 deletions
|
@ -143,14 +143,14 @@ hc keybind XF86AudioPrev spawn systemd-run --scope --user "$HOME/bin/mprisctl" p
|
|||
hc keybind XF86AudioPlay spawn systemd-run --scope --user "$HOME/bin/mprisctl" toggle
|
||||
|
||||
# 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}")'
|
||||
hc keybind XF86TouchpadToggle spawn systemd-run --scope --user sh -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}")'
|
||||
|
||||
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' "${HOME}/Pictures/scrot/%F-scrot.png"
|
||||
hc keybind Print spawn systemd-run --scope --user sh -c 'maim --hidecursor | xclip -t image/png -selection clip'
|
||||
hc keybind Shift-Print spawn systemd-run --scope --user sh -c 'maim --select --hidecursor | xclip -t image/png -selection clip'
|
||||
# shellcheck disable=SC2016
|
||||
hc keybind Shift-Print spawn systemd-run --scope --user scrot --select --exec 'imv $f' "${HOME}/Pictures/scrot/%F-scrot.png"
|
||||
hc keybind Ctrl-Print spawn systemd-run --scope --user sh -c 'maim -i $(xdotool getactivewindow) | xclip -t image/png -selection clip'
|
||||
|
||||
# theme
|
||||
hc attr theme.tiling.reset 1
|
||||
|
@ -222,9 +222,7 @@ hc rule class='mpv' floating=on
|
|||
hc set tree_style '╾│ ├└╼─┐'
|
||||
|
||||
|
||||
{{ 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
|
||||
|
|
Loading…
Add table
Reference in a new issue