literate-dotfiles/dotfiles/sxhkd.org

3.0 KiB

Simple X Hotkey Daemon

sxhkd

Start Applications

# Start program launcher
super + d
    rofi -show run

# Start Sound Manager
super + s
    pavucontrol

# Start Bluetooth Manager
super + shift + b
    blueman-manager

# Windows Switch
super + w
    rofi -show window

# Launch categorized menu
super + z
    rofi -show drun

# Bookmarks
super + shift + f
    $HOME/bin/bukurun

# Passwords
super + shift + p
    rofi-pass

# Start Terminal
super + Return
    termite

# Tmux Terminal
super + shift + Return
    termite -e 'tmux'

# Start Command line Calendar
super + c
    termite -e "khal interactive"

# File Manager
super + o
    alacritty -e "ranger"

# Browser
super + i
    qutebrowser

Multimedia keys

Sound

# Sound
XF86AudioMute
    amixer -D pulse sset Master toggle
XF86AudioRaiseVolume
    amixer -D pulse sset Master 2%+
XF86AudioLowerVolume
    amixer -D pulse sset Master 2%-
# Backlight
# XF86MonBrightnessUp
#    xbacklight -inc 10
# XF86MonBrightnessDown
#    xbacklight -dec 10

Change Tracks

super + period
    mpc toggle
super + {greater,less}
    mpc {next,prev}
XF86AudioPlay
    mpc toggle
XF86AudioNext
    mpc next
XF86AudioPrev
    mpc prev

Print Screen

Print
    ~/bin/screenshot
XF86Display
    rofi -show window

Other

XF86Search
    rofi -show run
XF86PowerOff
    $HOME/scripts/quit.sh

Set shut down, restart and locking features

super + 0
    $HOME/scripts/quit.sh

Command Mode

# Command line Calendar Client (khal)
super + space ; c
    termite -e "khal interactive";

# GUI Calendar (Google Calendar)
super + space ; shift + c
    qutebrowser https://calendar.google.com/;

# Ranger
super + space ; r
    alacritty -e "ranger";

# pcmanfm: GUI file manager
super + space ; shift + r
    pcmanfm;

# Mails with neomutt
super + space ; m
    termite -e "tmux -L neomutt attach";

super + space ; shift + m
    termite -e "neomutt -R";

# Weechat
super + space ; w
    termite -e "tmux -L weechat attach";

# News with newsboat
super + space ; n
    termite -e "tmux -L newsboat attach";

# Music with ncmpcpp
super + space ; p
    termite -e "tmux -L ncmpcpp attach";

# Print Screen
super + space ; shift + p
    ~/bin/screenshot

# Browser with qutebrowser
super + space ; i
    qutebrowser;

# Browser with firefox
super + space ; shift + i
    firefox;

# Emacs Client
super + space ; e
    emacsclient -create-frame --alternate-editor="";

# Full Emacs - Usefull when installing packages
super + space ; shift + e
    emacs;
super + ctrl + x
    xkill

Change Keyboard Layout

super + ctrl + d
    setxkbmap -layout us -variant intl -option caps:escape
super + shift + d
    setxkbmap -layout us -option caps:escape