summaryrefslogtreecommitdiff
path: root/wm/.ratpoisonrc
blob: 037901f61cdf43aadc09fcaeb7b378fc7b906b8a (plain)
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
# Change default ratpoison bind
escape C-Tab

# Hide the cursor on window switch
# addhook switchwin banish

# Window numbering
set framesels 1234567890abcdefg

set font "Courier:size=12"
set bargravity n
defborder 0 
set winname class
set wingravity n

# Commands to run-or-raise programs
alias icecat exec ratpoison -c "select icecat" || exec icecat
alias nyxt exec ratpoison -c "select nyxt" || exec nyxt
alias workrave exec ratpoison -c "select workrave" || exec workrave
alias emacs exec ratpoison -c "select emacs" || exec emacs
alias xterm exec ratpoison -c "select xterm" || exec xterm
alias firefox exec ratpoison -c "select firefox" || exec flatpak run org.mozilla.firefox
alias dbeaver exec dbeaver -c "select dbeaver" || exec flatpak run io.dbeaver.DBeaverCommunity
alias guix exec guix
alias shell exec guix shell
alias mpv exec mpv

# Run or raise Emacs
bind e emacs

# Run or raise Nyxt
bind B nyxt

# Run or raise Icecat
bind I icecat

# Run or raise Xterm
bind c xterm

# Run or raise workrave
bind W workrave

# Emacs-like switching windows
bind o focus
bind O focusprev

# Emacs like help
bind h help
bind h help

definekey top XF86AudioLowerVolume exec amixer -q sset Master 3%-
definekey top XF86AudioRaiseVolume exec amixer -q sset Master 3%+

#exec wmname LG3D