small pixel drawing of a pufferfish dotfiles

Add pa-rofi
j3s j3s@c3f.net
Thu, 04 Feb 2021 22:30:55 -0600
commit

cc48b842ddac9b6d4e80a63dc49e31ae912c5fbe

parent

54f91044a8fc98885836d6f6cde297741c863431

2 files changed, 17 insertions(+), 5 deletions(-)

jump to
M .config/i3/config.config/i3/config

@@ -47,7 +47,8 @@ # kill focused window

bindsym $mod+Shift+q kill # start dmenu (a program launcher) -bindsym $mod+d exec --no-startup-id dmenu_run +bindsym $mod+d exec "rofi -modi drun,run -show drun" +bindsym $mod+Shift+s exec "rofi -show ssh" # A more modern dmenu replacement is rofi: # bindcode $mod+40 exec rofi -modi drun,run -show drun # There also is i3-dmenu-desktop which only displays applications shipping a

@@ -67,10 +68,10 @@ bindsym $mod+Up focus up

bindsym $mod+Right focus right # move focused window -bindsym $mod+Shift+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+semicolon move right +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right # alternatively, you can use the cursor keys: bindsym $mod+Shift+Left move left

@@ -94,6 +95,9 @@ bindsym $mod+e layout toggle split

# toggle tiling / floating bindsym $mod+Shift+space floating toggle + +# do the password thang +bindsym $mod+Shift+p exec --no-startup-id pa-rofi # change focus between tiling / floating windows bindsym $mod+space focus mode_toggle
A bin/pa-rofi

@@ -0,0 +1,8 @@

+#!/bin/sh + +cd "${PA_DIR:-$HOME/.local/share/pa}" +password_files="$(find * -type f | grep -v '/.git')" +password=$(printf '%s\n' "$password_files" | sed 's/.age//' | rofi -dmenu "$@") + +pa show "$password" | head -n 1 | + xdotool type --clearmodifiers --file -