diff options
| author | Mitsuo Tokumori <[email protected]> | 2022-09-07 15:51:34 -0500 |
|---|---|---|
| committer | Mitsuo Tokumori <[email protected]> | 2022-09-07 15:51:34 -0500 |
| commit | 9047154ea855c7afa6881f62a39e39e6b834b107 (patch) | |
| tree | 60b900824036d9ced068cfdaa6ed9ee1f57eaf86 | |
| parent | ba899bb957936871d5c0f22ef837f8c3d52a7e15 (diff) | |
| download | dotfiles-9047154ea855c7afa6881f62a39e39e6b834b107.tar.gz dotfiles-9047154ea855c7afa6881f62a39e39e6b834b107.tar.bz2 dotfiles-9047154ea855c7afa6881f62a39e39e6b834b107.zip | |
Add keybindings for mpd (multimedia keys)
| -rw-r--r-- | Xorg/xbindkeysrc | 88 | ||||
| -rw-r--r-- | Xorg/xinitrc | 37 |
2 files changed, 101 insertions, 24 deletions
diff --git a/Xorg/xbindkeysrc b/Xorg/xbindkeysrc new file mode 100644 index 0000000..8379138 --- /dev/null +++ b/Xorg/xbindkeysrc @@ -0,0 +1,88 @@ +# For the benefit of emacs users: -*- shell-script -*- +########################### +# xbindkeys configuration # +########################### +# +# Version: 1.8.7 +# +# If you edit this file, do not forget to uncomment any lines +# that you change. +# The pound(#) symbol may be used anywhere for comments. +# +# To specify a key, you can use 'xbindkeys --key' or +# 'xbindkeys --multikey' and put one of the two lines in this file. +# +# The format of a command line is: +# "command to start" +# associated key +# +# +# A list of keys is in /usr/include/X11/keysym.h and in +# /usr/include/X11/keysymdef.h +# The XK_ is not needed. +# +# List of modifier: +# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock), +# Mod3 (CapsLock), Mod4, Mod5 (Scroll). +# + +# The release modifier is not a standard X modifier, but you can +# use it if you want to catch release events instead of press events + +# By defaults, xbindkeys does not pay attention with the modifiers +# NumLock, CapsLock and ScrollLock. +# Uncomment the lines above if you want to pay attention to them. + +#keystate_numlock = enable +#keystate_capslock = enable +#keystate_scrolllock= enable + +# Examples of commands: + +#"xbindkeys_show" +# control+shift + q + +## set directly keycode (here control + f with my keyboard) +#"xterm" +# c:41 + m:0x4 + +## specify a mouse button +#"xterm" +# control + b:2 + +#"xterm -geom 50x20+20+20" +# Shift+Mod2+alt + s +# +## set directly keycode (here control+alt+mod2 + f with my keyboard) +#"xterm" +# alt + c:0x29 + m:4 + mod2 +# +## Control+Shift+a release event starts rxvt +#"rxvt" +# release+control+shift + a +# +## Control + mouse button 2 release event starts rxvt +#"rxvt" +# Control + b:2 + Release + +## Increase volume +#"pactl set-sink-volume @DEFAULT_SINK@ +1000" +# XF86AudioRaiseVolume + +## Decrease volume +#"pactl set-sink-volume @DEFAULT_SINK@ -1000" +# XF86AudioLowerVolume + +# mpd +"mpc toggle" + XF86AudioPlay +"mpc stop" + XF86AudioStop +"mpc prev" + XF86AudioPrev +"mpc next" + XF86AudioNext + +################################## +# End of xbindkeys configuration # +################################## diff --git a/Xorg/xinitrc b/Xorg/xinitrc index bb056a5..da6c95b 100644 --- a/Xorg/xinitrc +++ b/Xorg/xinitrc @@ -13,15 +13,7 @@ sysmodmap=/etc/X11/xinit/.Xmodmap # merge in defaults and keymaps if [ -f $sysresources ]; then - - - - - - - xrdb -merge $sysresources - fi if [ -f $sysmodmap ]; then @@ -29,30 +21,24 @@ if [ -f $sysmodmap ]; then fi if [ -f "$userresources" ]; then - - - - - - - xrdb -merge "$userresources" - fi if [ -f "$usermodmap" ]; then xmodmap "$usermodmap" fi -# start some nice programs +# Load necessary X11 configuration if [ -d /etc/X11/xinit/xinitrc.d ] ; then - for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do - [ -x "$f" ] && . "$f" - done - unset f + for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do + [ -x "$f" ] && . "$f" + done + unset f fi +# start some nice programs + #twm & #xclock -geometry 50x50-1+1 & #xterm -geometry 80x50+494+51 & @@ -60,14 +46,17 @@ fi #exec xterm -geometry 80x66+0+0 -name login -# My stuff +# Setup and start Desktop Environment # ====================================================================== -# fcitx +# fcitx (CLJ and emoji input method) export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx -# KDE Plasma +# xbindkeys (keyboard shortcuts) +xbindkeys + +# KDE Plasma (DE) export DESKTOP_SESSION=plasma exec startplasma-x11 |
