rc: new bash alias and kakoune changes

This commit is contained in:
KK
2026-06-21 22:45:53 +02:00
parent b712c714cf
commit 50fcabcb3f
4 changed files with 21 additions and 0 deletions

View File

@@ -2,3 +2,4 @@ alias ls='ls -lahtr'
alias vi='kak' alias vi='kak'
alias df='/usr/bin/git --git-dir=$HOME/.dotfilesrepo/ --work-tree=$HOME' alias df='/usr/bin/git --git-dir=$HOME/.dotfilesrepo/ --work-tree=$HOME'
alias unpack='dtrx' alias unpack='dtrx'
alias imv='imv-wayland'

View File

@@ -9,6 +9,9 @@ set-option global makecmd 'bash build.sh'
map global user n :make-next-error<ret> map global user n :make-next-error<ret>
map global user p :make-previous-error<ret> map global user p :make-previous-error<ret>
# Toggle line comments for the current selection/line.
map global user / ': comment-line<ret>'
# Kakoune does not have a Vim-style 'expandtab' option. Make a literal Tab key # 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. # insert four spaces instead of a tab character while in insert mode.
map global insert <tab> '<space><space><space><space>' map global insert <tab> '<space><space><space><space>'

View File

@@ -185,6 +185,7 @@ sudo apt install -y \
wireplumber \ wireplumber \
pavucontrol \ pavucontrol \
grim \ grim \
imv \
ffmpeg libavcodec-extra ffmpeg libavcodec-extra
``` ```
@@ -202,6 +203,7 @@ Package notes:
- `xwayland` - compatibility layer that allows older X11 applications to run inside the Wayland/Sway session. - `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. - `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. - `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, 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-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. - `xdg-desktop-portal-gtk` - GTK portal backend/fallback. Helps with file picker dialogs and desktop integration for some applications.

15
bin/cafe Executable file
View File

@@ -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