-
Notifications
You must be signed in to change notification settings - Fork 0
/
xbindkeysrc
119 lines (96 loc) · 2.41 KB
/
xbindkeysrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
###########################
# xbindkeys configuration #
###########################
#
# Version: 0.1.3
#
# If you edit this, do not forget to uncomment any lines that you change.
# The pound(#) symbol may be used anywhere for comments.
#
# 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 (on my keyboard):
# Control, Shift, Mod1 (Alt), Mod2 (NumLock),
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
#
# Another way to specifie a key is to use 'xev' and set the
# keycode with c:nnn or the modifier with m:nnn where nnn is
# the keycode or the state returned by xev
#
# This file is created by xbindkey_config
# The structure is :
# # Remark
# "command"
# m:xxx + c:xxx
# Shift+...
#keystate_numlock = enable
#keystate_scrolllock = enable
#keystate_capslock = enable
#View Keybindings
"~/dotfiles/utils/view-keybindings"
m:0x40 + c:61
Mod4 + slash
#Screen Lock
"~/dotfiles/utils/screen-lock"
m:0x40 + c:53
Mod4 + x
#Open Application as Administrator
"rofi -show drun -run-command 'gksudo {cmd}' "
m:0x44 + c:38
Control+Mod4 + a
#Open Editor
"wmctrl -x -a emacs || wmctrl -F -x -a sun-awt-X11-XFramePeer.jetbrains-studio || emacsclient -c --alternate-editor """
m:0x40 + c:26
Mod4 + e
#Open Chrome
"wmctrl -x -F -a "google-chrome.Google-chrome" || google-chrome"
m:0x40 + c:27
Mod4 + r
#Open Tmux
"wmctrl -x -a "Terminal" || gnome-terminal -e "tmux new -A -s persistent""
m:0x40 + c:28
Mod4 + t
#Open copyq
"copyq show"
m:0x40 + c:54
Mod4 + c
#Run keepmenu
"~/.local/bin/keepmenu"
m:0x40 + c:33
Mod4 + p
#Switch to window-Copy
"notify-send "hello there" && ~/goosey/goose &"
m:0x40 + c:38
Mod4 + a
#Switch with selector
"~/goosey/goose -s &"
m:0x41 + c:65
Shift+Mod4 + space
#Switch to Firefox
"wmctrl -x -a firefox || firefox"
m:0x40 + c:41
Mod4 + f
#Increase brightness
"xbacklight -inc 5"
m:0x0 + c:233
XF86MonBrightnessUp
#Decrease brightness
"xbacklight -dec 5"
m:0x0 + c:232
XF86MonBrightnessDown
#Mute
"pactl set-sink-mute @DEFAULT_SINK@ toggle"
m:0x0 + c:121
XF86AudioMute
#Increase volume
"pactl set-sink-volume @DEFAULT_SINK@ "+5%""
m:0x0 + c:123
XF86AudioRaiseVolume
#Decrease volume
"pactl set-sink-volume @DEFAULT_SINK@ "-5%""
m:0x0 + c:122
XF86AudioLowerVolume
#
# End of xbindkeys configuration