Qutebrowser, CUDA, pass & more
This commit is contained in:
parent
441bd6b9a3
commit
f513500c29
8 changed files with 1095 additions and 14 deletions
|
@ -38,7 +38,7 @@ bindsym button2 kill
|
|||
bindsym $mod+F2 exec --no-startup-id ~/.config/i3/dmenu_run
|
||||
bindsym Mod1+F2 exec --no-startup-id ~/.config/i3/dmenu_run
|
||||
|
||||
bindsym $mod+c exec --no-startup-id ~/.config/i3/passmenu
|
||||
bindsym $mod+c exec --no-startup-id ~/.config/i3/passmenu --type
|
||||
#bindsym $mod+x exec --no-startup-id ~/.config/i3/clipmenu
|
||||
bindsym $mod+asterisk exec --no-startup-id ~/.config/i3/sshmenu
|
||||
bindsym $mod+dollar exec --no-startup-id ~/.config/i3/sshmenu root
|
||||
|
@ -356,7 +356,6 @@ bindsym $mod+F5 exec --no-startup-id xautolock -enable
|
|||
|
||||
|
||||
# Autostart applications
|
||||
exec --no-startup-id autorandr --change # Screen configuration and everything that depends on it
|
||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # Password remembering
|
||||
exec --no-startup-id gnome-keyring-daemon # Password remembering
|
||||
exec --no-startup-id numlockx on # Activate Num lock
|
||||
|
@ -367,6 +366,7 @@ exec --no-startup-id dunst # Notifications
|
|||
exec --no-startup-id keynav # Keyboard cursor controller
|
||||
#exec --no-startup-id $HOME/.config/i3/clipmenud # Clipboard manager
|
||||
exec --no-startup-id mpd # Music Player Daemon
|
||||
exec --no-startup-id autorandr --change # Screen configuration and everything that depends on it
|
||||
|
||||
set $ignore #ff00000
|
||||
|
||||
|
|
|
@ -8,17 +8,23 @@ if [[ $1 == "--type" ]]; then
|
|||
shift
|
||||
fi
|
||||
|
||||
prefix=${PASSWORD_STORE_DIR-~/.password-store}
|
||||
password_files=( "$prefix"/**/*.gpg )
|
||||
password_files=( "${password_files[@]#"$prefix"/}" )
|
||||
password_files=( "${password_files[@]%.gpg}" )
|
||||
if PASS=$(which gopass 2> /dev/null); then
|
||||
password_files="$($PASS ls --flat)"
|
||||
elif PASS=$(which pass 2> /dev/null); then
|
||||
prefix=${PASSWORD_STORE_DIR-~/.password-store}
|
||||
password_files=( "$prefix"/**/*.gpg )
|
||||
password_files=( "${password_files[@]#"$prefix"/}" )
|
||||
password_files=( "${password_files[@]%.gpg}" )
|
||||
else
|
||||
exit
|
||||
fi
|
||||
|
||||
password=$(printf '%s\n' "${password_files[@]}" | $HOME/.config/i3/dmenu_cmd -p "Passwords" "$@")
|
||||
|
||||
[[ -n $password ]] || exit
|
||||
|
||||
if [[ $typeit -eq 0 ]]; then
|
||||
pass show -c "$password" 2>/dev/null
|
||||
$PASS show -c "$password"
|
||||
else
|
||||
xdotool - <<<"type --clearmodifiers -- $(pass show "$password" | head -n 1)"
|
||||
xdotool - <<<"type --clearmodifiers -- $($PASS show "$password" | head -n 1)"
|
||||
fi
|
||||
|
|
5
config/i3/test
Normal file
5
config/i3/test
Normal file
|
@ -0,0 +1,5 @@
|
|||
prefix=${PASSWORD_STORE_DIR-~/.password-store}
|
||||
password_files=( "$prefix"/**/*.gpg )
|
||||
password_files=( "${password_files[@]#"$prefix"/}" )
|
||||
password_files=( "${password_files[@]%.gpg}" )
|
||||
echo -e "${password_files[@]}"
|
Loading…
Add table
Add a link
Reference in a new issue