summaryrefslogtreecommitdiff
path: root/wm/.ratpoisonrc
blob: eb924c8755a7ab3a9bfa1031b425fe0a34697c44 (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
55
56
57
58
59
60
61
62
# 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=10"
set winliststyle column
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 guix shell --container --network --no-cwd --preserve='^XAUTHORITY$' --expose="${XAUTHORITY}" --preserve='^DISPLAY$' icecat -- icecat
alias chromium exec ratpoison -c "select chromium" || exec guix shell --container --network --no-cwd --preserve='^XAUTHORITY$' --expose="${XAUTHORITY}" --preserve='^DISPLAY$' ungoogled-chromium -- chromium
alias torbrowser exec ratpoison -c "select torbrowser" || exec guix shell --container --network --no-cwd --preserve='^XAUTHORITY$' --expose="${XAUTHORITY}" --preserve='^DISPLAY$' torbrowser -- torbrowser
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 --check
alias shell-container exec guix shell --container --network --no-cwd --preserve='^XAUTHORITY$' --expose="${XAUTHORITY}" --preserve='^DISPLAY$'
alias shell-pure exec guix shell --pure --check
alias mpv exec mpv

# Run or raise Emacs
bind e emacs

# Run or raise Nyxt
bind B palemoon

# Run or raise Icecat
bind I icecat

# Run or raise TorBrowser
bind T torbrowser

# Run or raise Chromium
bind C chromium

# 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%+