forked from pub-solar/os
Benjamin Bädorf
043178172b
This commit shuffles around some sway keybindings and improves the screen recording experience by adding a small wrapper around `slurp` and `wf-recorder` conveniently called `record-screen`. * `$mod+F5` now reload the sway configuration, * `$mod+Ctrl+r` starts a screen recording (to stop it, go to workspace 7 and kill the process), * `record-screen` and the firefox sharing indicator are both on workspace 7 now, making it the "trash" workspace, * `$mod+F1` and `$mod+Shift+h` now open Firefox with the docs of our repository availabe under `help.local`. * To not infuriate `qMasterPassword` users, that is now available under `$mod+Shift+m` instead of `$mod+F1`.
34 lines
864 B
Nix
34 lines
864 B
Nix
self: with self; ''
|
|
case $1 in
|
|
rebuild)
|
|
shift;
|
|
exec sudo nixos-rebuild switch --flake "/etc/nixos#installed-host" $@
|
|
;;
|
|
update)
|
|
shift;
|
|
cd /etc/nixos
|
|
git pull
|
|
exec nix flake update
|
|
;;
|
|
option)
|
|
shift;
|
|
exec nixos-option -I nixpkgs=/etc/nixos/lib/compat $@
|
|
;;
|
|
help)
|
|
shift;
|
|
exec xdg-open http://help.local/
|
|
;;
|
|
*)
|
|
if [[ "$@" != "" ]]; then
|
|
echo "Unknown command: psos $@"
|
|
echo ""
|
|
fi
|
|
echo "Usage: psos [COMMAND]"
|
|
echo " rebuild Rebuild the configuration and switch to it"
|
|
echo " update Pull git and update flake.lock"
|
|
echo " option [path] See the current value for an option in the flake config. Example: psos option nix.nixPath"
|
|
exit 1
|
|
;;
|
|
esac
|
|
''
|