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