Switch to rofi from dmenu

This commit is contained in:
Ian Adam Naval 2015-04-24 13:12:01 -04:00
parent 8e618a7a31
commit 60ec1a2b7e
3 changed files with 50 additions and 10 deletions

View File

@ -45,6 +45,42 @@ xterm*toolBar: false
xterm*metaSendsEscape: true xterm*metaSendsEscape: true
xterm*borderWidth: 0 xterm*borderWidth: 0
rofi.modi: window,run,ssh
rofi.opacity: 100
rofi.width: 720
rofi.lines: 5
rofi.columns: 1
rofi.font: Meslo LG S DZ 10
rofi.fg: #f8f8f2
rofi.bg: #252525
rofi.bgalt: #252525
rofi.hlfg: #f8f8f2
rofi.hlbg: #600
rofi.bc: #252525
rofi.bw: 0
rofi.location: 2
rofi.padding: 0
rofi.yoffset: 26
rofi.xoffset: 0
rofi.fixed-num-lines: false
rofi.terminal: urxvt
rofi.ssh-client: ssh
rofi.ssh-command: {terminal} -e {ssh-client} {host}
rofi.run-command: {cmd}
rofi.run-list-command:
rofi.run-shell-command: {terminal} -e {cmd}
rofi.disable-history: false
rofi.levenshtein-sort: false
rofi.case-sensitive: false
rofi.sidebar-mode: false
rofi.lazy-filter-limit: 5000
rofi.eh: 1
rofi.auto-select: false
rofi.pid: /run/user/1000/rofi.pid
rofi.key-window:
rofi.key-run:
rofi.key-ssh:
*.cursorBlink: true *.cursorBlink: true
*.foreground: #f8f8f2 *.foreground: #f8f8f2
*.background: #252525 *.background: #252525

View File

@ -10,7 +10,6 @@
set $mod Mod4 set $mod Mod4
set $lock lock set $lock lock
set $run_passmenu ~/.i3/passmenu --type -i -sb '#800' -nb '#252525' -fn 'Meslo LG S DZ-10' -hist ~/.passmenu_history -h 26
# Font for window titles. Will also be used by the bar unless a different font # Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. ISO 10646 = Unicode # is used in the bar {} block below. ISO 10646 = Unicode
@ -33,10 +32,12 @@ bindsym $mod+Shift+Return exec terminator
bindsym $mod+q kill bindsym $mod+q kill
# start dmenu (a program launcher) # start dmenu (a program launcher)
#bindsym $mod+d exec dmenu_run -sb "#880000" #bindsym $mod+d exec dmenu_run -sb "#880000"
bindsym $mod+d exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -i -sb '#800' -nb '#252525' -fn 'Meslo LG S DZ-10' -hist ~/.dmenu_history -h 26" #bindsym $mod+d exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -i -sb '#800' -nb '#252525' -fn 'Meslo LG S DZ-10' -hist ~/.dmenu_history -h 26"
bindsym $mod+Shift+d exec --no-startup-id dmenu_run -i -sb '#800' -nb '#252525' -fn 'Meslo LG S DZ-10' -hist ~/.dmenu_history -h 26 bindsym $mod+d exec --no-startup-id rofi -show run
bindsym $mod+p exec --no-startup-id $run_passmenu bindsym $mod+Shift+d exec --no-startup-id j4-dmenu-desktop --dmenu="rofi -dmenu -p run"
bindsym $mod+Shift+p exec --no-startup-id ~/.i3/passmenu -i -sb '#800' -nb '#252525' -fn 'Meslo LG S DZ-10' -hist ~/.passmenu_history -h 26 bindsym $mod+p exec --no-startup-id ~/.i3/passmenu --type
bindsym $mod+Shift+p exec --no-startup-id ~/.i3/passmenu
bindsym $mod+n exec --no-startup-id nmcli_dmenu -i -sb '#800' -nb '#252525' -fn 'Meslo LG S DZ-10' -h 26
# There also is the (new) i3-dmenu-desktop which only displays applications # There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that # shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed. # installed.
@ -137,10 +138,11 @@ bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightnes
bindsym Shift+XF86MonBrightnessUp exec xbacklight -inc 1 # increase screen brightness bindsym Shift+XF86MonBrightnessUp exec xbacklight -inc 1 # increase screen brightness
bindsym Shift+XF86MonBrightnessDown exec xbacklight -dec 1 # decrease screen brightness bindsym Shift+XF86MonBrightnessDown exec xbacklight -dec 1 # decrease screen brightness
bindsym XF86Tools exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -i -sb '#800' -nb '#252525' -fn 'Meslo LG S DZ-8' -hist ~/.dmenu_history -h 24" bindsym XF86Tools exec --no-startup-id rofi -show ssh
bindsym XF86Search exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -i -sb '#800' -nb '#252525' -fn 'Meslo LG S DZ-8' -hist ~/.dmenu_history -h 24" bindsym XF86Search exec --no-startup-id rofi -show fm -switchers 'fm:fmenu-rofi'
bindsym XF86LaunchA exec --no-startup-id $run_passmenu bindsym XF86LaunchA exec --no-startup-id rofi -show window
bindsym XF86Explorer exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -i -sb '#800' -nb '#252525' -fn 'Meslo LG S DZ-8' -hist ~/.dmenu_history -h 24" bindsym XF86Explorer exec --no-startup-id rofi -show run
bindsym Mod1+Tab exec --no-startup-id rofi -show window
bindsym Print exec gnome-screenshot -i bindsym Print exec gnome-screenshot -i

View File

@ -8,12 +8,14 @@ if [[ $1 == "--type" ]]; then
shift shift
fi fi
prompt="pass"
prefix=${PASSWORD_STORE_DIR-~/.password-store} prefix=${PASSWORD_STORE_DIR-~/.password-store}
password_files=( "$prefix"/**/*.gpg ) password_files=( "$prefix"/**/*.gpg )
password_files=( "${password_files[@]#"$prefix"/}" ) password_files=( "${password_files[@]#"$prefix"/}" )
password_files=( "${password_files[@]%.gpg}" ) password_files=( "${password_files[@]%.gpg}" )
password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@") password=$(printf '%s\n' "${password_files[@]}" | rofi -dmenu -p "$prompt" "$@")
[[ -n $password ]] || exit [[ -n $password ]] || exit