rc: new bash alias and kakoune changes
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -9,6 +9,9 @@ set-option global makecmd 'bash build.sh'
|
||||
map global user n :make-next-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
|
||||
# insert four spaces instead of a tab character while in insert mode.
|
||||
map global insert <tab> '<space><space><space><space>'
|
||||
|
||||
@@ -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.
|
||||
|
||||
15
bin/cafe
Executable file
15
bin/cafe
Executable 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
|
||||
Reference in New Issue
Block a user