diff --git a/.config/bash_aliases b/.config/bash_aliases index 0e35fef..b381e53 100644 --- a/.config/bash_aliases +++ b/.config/bash_aliases @@ -2,3 +2,4 @@ alias ls='ls -lahtr' alias vi='kak' alias df='/usr/bin/git --git-dir=$HOME/.dotfilesrepo/ --work-tree=$HOME' alias unpack='dtrx' +alias imv='imv-wayland' diff --git a/.config/kak/kakrc b/.config/kak/kakrc index 499a9f0..8b84a3b 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -9,6 +9,9 @@ set-option global makecmd 'bash build.sh' map global user n :make-next-error map global user p :make-previous-error +# Toggle line comments for the current selection/line. +map global user / ': comment-line' + # Kakoune does not have a Vim-style 'expandtab' option. Make a literal Tab key # insert four spaces instead of a tab character while in insert mode. map global insert '' diff --git a/README.md b/README.md index 53a8531..bd0e8c9 100644 --- a/README.md +++ b/README.md @@ -185,6 +185,7 @@ sudo apt install -y \ wireplumber \ pavucontrol \ grim \ + imv \ ffmpeg libavcodec-extra ``` @@ -202,6 +203,7 @@ Package notes: - `xwayland` - compatibility layer that allows older X11 applications to run inside the Wayland/Sway session. - `wl-clipboard` - Wayland clipboard tools, mainly `wl-copy` and `wl-paste`. Needed by scripts and editor integrations. - `fonts-jetbrains-mono` - nice monospace font for terminal/editor use. + - `imv` - image viewer - xdg, a standard required by some apps (shared enviroment variables and such): - `xdg-desktop-portal-wlr` - desktop portal backend for wlroots compositors like Sway. Needed for screen sharing, screenshots, file pickers, and other app integrations. - `xdg-desktop-portal-gtk` - GTK portal backend/fallback. Helps with file picker dialogs and desktop integration for some applications. diff --git a/bin/cafe b/bin/cafe new file mode 100755 index 0000000..11eacca --- /dev/null +++ b/bin/cafe @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -euo pipefail + +reason="caffe: keep system awake until this process exits" + +echo "Caffe active. This terminal is inhibiting suspend." +echo "Press Ctrl+C or close this terminal to return to normal." +echo + +exec systemd-inhibit \ + --what=sleep:shutdown:idle \ + --who="caffe" \ + --why="$reason" \ + --mode=block \ + sleep infinity