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:
parent
8b7de007e9
commit
da5cd9ef1f
3 changed files with 18 additions and 12 deletions
22
.xinitrc
22
.xinitrc
|
|
@ -8,28 +8,28 @@ sysmodmap=/etc/X11/xinit/.Xmodmap
|
|||
# merge in defaults and keymaps
|
||||
|
||||
if [ -f $sysresources ]; then
|
||||
xrdb -merge $sysresources
|
||||
xrdb -merge $sysresources
|
||||
fi
|
||||
|
||||
if [ -f $sysmodmap ]; then
|
||||
xmodmap $sysmodmap
|
||||
xmodmap $sysmodmap
|
||||
fi
|
||||
|
||||
if [ -f "$userresources" ]; then
|
||||
xrdb -merge "$userresources"
|
||||
xrdb -merge "$userresources"
|
||||
fi
|
||||
|
||||
if [ -f "$usermodmap" ]; then
|
||||
xmodmap "$usermodmap"
|
||||
xmodmap "$usermodmap"
|
||||
fi
|
||||
|
||||
# start some nice programs
|
||||
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
|
||||
# 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
|
||||
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
|
||||
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>
|
||||
xinput set-prop "DLL075B:01 06CB:76AF Touchpad" "libinput Tapping Enabled" 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue