diff options
| author | eric.marin <maarin.eric@gmail.com> | 2024-12-26 14:33:06 +0100 |
|---|---|---|
| committer | eric.marin <maarin.eric@gmail.com> | 2024-12-30 21:07:42 +0100 |
| commit | 4de5a217c25fe83bb54063f8d842b78c9e6d7fb3 (patch) | |
| tree | 0460bc0600492324f111524dfdff1ef85c9fbf8e /fish/config.fish | |
| parent | ee2b01a3fff043a8b977385227c2659bbcf2e59a (diff) | |
| download | dotfiles-4de5a217c25fe83bb54063f8d842b78c9e6d7fb3.tar.gz dotfiles-4de5a217c25fe83bb54063f8d842b78c9e6d7fb3.zip | |
wallust
Diffstat (limited to 'fish/config.fish')
| -rw-r--r-- | fish/config.fish | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/fish/config.fish b/fish/config.fish index 3711bc3..616d877 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -5,32 +5,23 @@ function fish_prompt end function start_niri - # Make sure there's no already running session. if systemctl --user -q is-active niri.service echo 'A Niri session is already running.' exit 1 end - # Reset failed state of all user units systemctl --user reset-failed - # Import the login manager environment. - # systemctl --user import-environment - # DBus activation environment is independent from systemd. While most of - # dbus-activated services are already using `SystemdService` directive, some - # still don't and thus we should set the dbus environment with a separate - # command. dbus-update-activation-environment --all - # Start niri and wait for it to terminate. systemctl --user --wait start niri.service - # Force stop of graphical-session.target. systemctl --user start --job-mode=replace-irreversibly niri-shutdown.target - # Unset environment that we've set. systemctl --user unset-environment WAYLAND_DISPLAY XDG_SESSION_TYPE XDG_CURRENT_DESKTOP NIRI_SOCKET end fish_add_path -p ~/.cargo/bin ~/.ghcup/bin set -U fish_greeting +set EDITOR "neovim" if status is-login start_niri kill $fish_pid end + |
