Compare commits
3 commits
130003e0ae
...
5e924d2280
Author | SHA1 | Date | |
---|---|---|---|
5e924d2280 | |||
534e493d7e | |||
10ad7f9004 |
6 changed files with 65 additions and 2 deletions
|
@ -141,12 +141,12 @@ hc keybind XF86AudioPlay spawn systemd-run --scope --user "$HOME/bin/mprisctl" t
|
|||
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
|
||||
hc keybind XF86ScreenSaver spawn systemd-run --scope --user xscreensaver-command -lock
|
||||
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 Ctrl-Print spawn systemd-run --scope --user sh -c 'maim -i $(xdotool getactivewindow) | xclip -t image/png -selection clip'
|
||||
hc keybind Ctrl-Print spawn systemd-run --scope --user sh -c "$HOME/bin/recordcurrwin"f=documents recordmydesktop --windowid=$(xdotool getactivewindow) | xclip -t image/png -selection clip
|
||||
hc keybind Ctrl-Print spawn systemd-run --scope --user "$HOME/bin/recordcurrwin"
|
||||
|
||||
# theme
|
||||
hc attr theme.tiling.reset 1
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
log() {
|
||||
# echo "$@" >&2
|
||||
notify-send -t 1000 "Gopass form filler" "$*"
|
||||
}
|
||||
|
||||
qute-command() {
|
||||
echo "$@" >> "$QUTE_FIFO"
|
||||
}
|
||||
|
||||
send-key() {
|
||||
qute-command fake-key "$@"
|
||||
}
|
||||
|
||||
insert-text() {
|
||||
qute-command insert-text "$@"
|
||||
}
|
||||
|
||||
domain="$(echo "$QUTE_URL" | sed -E 's|^https?://||;s|/.*||')"
|
||||
|
||||
mapfile -t secrets < <(gopass find "$domain")
|
||||
|
||||
mode=${1:-"login-password"}
|
||||
|
||||
if (( ${#secrets[@]} > 1 ))
|
||||
then
|
||||
secret="$(printf "%s\n" "${secrets[@]}" | rofi -dmenu)"
|
||||
elif (( ${#secrets[@]} < 1 ))
|
||||
then
|
||||
log "No secret found!"
|
||||
exit 0
|
||||
else
|
||||
secret="${secrets[0]}"
|
||||
fi
|
||||
|
||||
if [[ -z "$secret" ]]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [[ "$mode" = *login* ]] ; then insert-text "$(gopass show -o "$secret" login)" && sleep 0.1 ; fi
|
||||
if [[ "$mode" = "login-password" ]] ; then send-key "<Tab>" ; fi
|
||||
if [[ "$mode" = *password* ]] ; then insert-text "$(gopass show -o "$secret")" ; fi
|
||||
if [[ "$mode" = "otp" ]] ; then insert-text "$(gopass otp -o "$secret")" ; fi
|
|
@ -0,0 +1 @@
|
|||
/home/vladimir/.config/systemd/user/xscreensaver.service
|
|
@ -0,0 +1 @@
|
|||
/dev/null
|
10
dot_config/systemd/user/xscreensaver.service
Normal file
10
dot_config/systemd/user/xscreensaver.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Screensaver
|
||||
PartOf=hlwm.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/xscreensaver --no-splash
|
||||
|
||||
[Install]
|
||||
WantedBy=hlwm.target
|
|
@ -78,6 +78,10 @@ packages=(
|
|||
nodejs
|
||||
unzip
|
||||
recordmydesktop
|
||||
difftastic
|
||||
xorg-xinput
|
||||
acpi
|
||||
yt-dlp
|
||||
)
|
||||
|
||||
sudo pacman -Syu --needed "${packages[@]}"
|
||||
|
|
Loading…
Add table
Reference in a new issue