1
0
Fork 0

Compare commits

...

3 commits

Author SHA1 Message Date
5e924d2280 install: new packages 2024-10-31 15:31:43 +01:00
534e493d7e qute: gopass filler 2024-10-31 15:31:34 +01:00
10ad7f9004 herbs: add xscreensaver 2024-10-31 15:31:24 +01:00
6 changed files with 65 additions and 2 deletions

View file

@ -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

View file

@ -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

View file

@ -0,0 +1 @@
/home/vladimir/.config/systemd/user/xscreensaver.service

View file

@ -0,0 +1 @@
/dev/null

View file

@ -0,0 +1,10 @@
[Unit]
Description=Screensaver
PartOf=hlwm.target
[Service]
Type=simple
ExecStart=/usr/bin/xscreensaver --no-splash
[Install]
WantedBy=hlwm.target

View file

@ -78,6 +78,10 @@ packages=(
nodejs
unzip
recordmydesktop
difftastic
xorg-xinput
acpi
yt-dlp
)
sudo pacman -Syu --needed "${packages[@]}"