Add rofi menus to global shortcuts

Accessible through Super+Space for the quickrun menu (essentially
emulates dmenu, just with a nice colorscheme); Super+r for a more
extensive options menu: window switching, clipboard history, ssh
(accessible with Shift-right). First step toward streamlined rofi
config.
This commit is contained in:
Marty Oehme 2019-09-05 21:41:07 +02:00
parent 8b7de007e9
commit da5cd9ef1f
3 changed files with 18 additions and 12 deletions

View file

@ -159,7 +159,7 @@ mode "resize" {
bindsym $mod+r mode "default" bindsym $mod+r mode "default"
} }
bindsym $mod+r mode "resize" bindsym $mod+shift+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status # Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available) # finds out, if available)
@ -177,7 +177,7 @@ bar {
# reload the configuration file # reload the configuration file
bindsym $mod+Shift+y reload bindsym $mod+Shift+y reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart # bindsym $mod+Shift+r restart
# set a pretty wallpaper # set a pretty wallpaper
exec_always --no-startup-id feh --bg-scale ~/pictures/wall.jpg exec_always --no-startup-id feh --bg-scale ~/pictures/wall.jpg

View file

@ -8,6 +8,10 @@ super + Return
super + space super + space
exec rofi -show drun -theme /themes/dmenu exec rofi -show drun -theme /themes/dmenu
# open more extensive run menu
super + r
exec rofi -modi combi,ssh -show combi -combi-modi "window,clipboard:greenclip print,run"
# System functionality # System functionality
# Enable lock screen (TODO does not stop music, etc yet # Enable lock screen (TODO does not stop music, etc yet

View file

@ -8,28 +8,28 @@ sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps # merge in defaults and keymaps
if [ -f $sysresources ]; then if [ -f $sysresources ]; then
xrdb -merge $sysresources xrdb -merge $sysresources
fi fi
if [ -f $sysmodmap ]; then if [ -f $sysmodmap ]; then
xmodmap $sysmodmap xmodmap $sysmodmap
fi fi
if [ -f "$userresources" ]; then if [ -f "$userresources" ]; then
xrdb -merge "$userresources" xrdb -merge "$userresources"
fi fi
if [ -f "$usermodmap" ]; then if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap" xmodmap "$usermodmap"
fi fi
# start some nice programs # start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do for f in /etc/X11/xinit/xinitrc.d/?*.sh; do
[ -x "$f" ] && . "$f" [ -x "$f" ] && . "$f"
done done
unset f unset f
fi fi
# Remaps Capslock key to control. # Remaps Capslock key to control.
@ -60,9 +60,11 @@ type flashfocus >/dev/null 2>&1 && flashfocus -l never &
# if sxhkd - the key-binding daemon is installed, start it up # if sxhkd - the key-binding daemon is installed, start it up
type sxhkd >/dev/null 2>&1 && sxhkd & type sxhkd >/dev/null 2>&1 && sxhkd &
# if greenclip - a clipboard manager, integrated with rofi, is installed, start it up
type greenclip >/dev/null 2>&1 && greenclip daemon &
# additional config options for Touchpad devices ONLY # additional config options for Touchpad devices ONLY
if [ $(dmesg | grep "Touchpad" | wc -l) > 0 ]; then if [ $(dmesg | grep -c "Touchpad") -gt 0 ]; then
# enable touch tapping for XPS13 touchpad - for different devices get the touchpad name with xinput list-prop <TAB> # enable touch tapping for XPS13 touchpad - for different devices get the touchpad name with xinput list-prop <TAB>
xinput set-prop "DLL075B:01 06CB:76AF Touchpad" "libinput Tapping Enabled" 1 xinput set-prop "DLL075B:01 06CB:76AF Touchpad" "libinput Tapping Enabled" 1
fi fi