Void Linux workstation powered by niri, Fish and NeoVim. Contains scripts, browser extensions, custom XBPS packages, and typst plugins. git.anhgelus.world/anhgelus/dotfiles
void niri fish neovim nvim vim dotfiles linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(fish): ask which wm starts

+27 -1
+27 -1
config/fish/config.fish
··· 1 + function start_wm 2 + echo "Quel WM lancer ?" 3 + echo "- 0 TTY" 4 + echo "- 1 Sway" 5 + echo "- 2 niri" 6 + while read --nchars 1 -l response 7 + or return 1 # if the read was aborted with ctrl-c/ctrl-d 8 + switch $response 9 + case 0 10 + break 11 + case 1 12 + dbus-run-session -- sway 13 + break 14 + case 2 15 + dbus-run-session -- niri --session 16 + break 17 + case '*' 18 + echo Invalid input 19 + continue 20 + end 21 + end 22 + end 23 + 1 24 if status is-interactive 2 25 # Commands to run in interactive sessions can go here 3 26 if tty | string match "/dev/tty1" 4 - $HOME/start 27 + start_wm 5 28 end 6 29 end 7 30 ··· 9 32 set --export BUN_INSTALL "$HOME/.bun" 10 33 set --export GOPATH "$HOME/go" 11 34 set --export PATH $BUN_INSTALL/bin $GOPATH/bin $HOME/.local/bin $PATH 35 + 36 + # void 37 + set --export XBPS_DISTDIR "$HOME/.void-packages" 12 38 13 39 # gpg 14 40 export GPG_TTY=$(tty)