aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2025-01-19 15:17:11 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2025-01-19 15:17:11 +0300
commit8003d445c2fdba680aac7d927ea72195cb080f62 (patch)
tree6494ecfbe3539abefc48485264986030c5ff9d6b
parentcc362d3ad8f524eeb234638c5779e50324182567 (diff)
downloadswayrice-8003d445c2fdba680aac7d927ea72195cb080f62.tar.gz
swayrice-8003d445c2fdba680aac7d927ea72195cb080f62.zip
niri: config improvements
* Move pipewire start up back to niri's config; niri doesn't require pipewire to be activated beforeheand anymore. * Add in-column window swap bind. * Add startup jingle, because why not.
-rw-r--r--dotfiles/.config/niri/config.kdl7
-rwxr-xr-xdotfiles/.local/bin/pipewire-restart4
-rw-r--r--dotfiles/.profile3
3 files changed, 9 insertions, 5 deletions
diff --git a/dotfiles/.config/niri/config.kdl b/dotfiles/.config/niri/config.kdl
index 5553ee2..9b0a988 100644
--- a/dotfiles/.config/niri/config.kdl
+++ b/dotfiles/.config/niri/config.kdl
@@ -337,7 +337,7 @@ window-rule {
clip-to-geometry true
}
-//spawn-at-startup "pipewire-restart"
+spawn-at-startup "pipewire-restart"
spawn-at-startup "waybar_launch"
spawn-at-startup "playerctld" "daemon"
spawn-at-startup "mpd-restart"
@@ -360,6 +360,9 @@ spawn-at-startup "gsettings" "set" "org.gnome.desktop.interface" "color-scheme"
spawn-at-startup "swaybg" "-i" "/home/yaroslav/.config/wall1.png" "-m" "fill"
+// Just a nice jingle on startup because why not
+spawn-at-startup "canberra-gtk-play" "-i" "Oxygen-Sys-App-Positive"
+
binds {
// Keys consist of modifiers separated by + signs, followed by an XKB key name
// in the end. To find an XKB name for a particular key, you may use a program
@@ -566,6 +569,8 @@ binds {
// There are also commands that consume or expel a single window to the side.
Mod+BracketLeft { consume-or-expel-window-left; }
Mod+BracketRight { consume-or-expel-window-right; }
+ Mod+Shift+BracketLeft { swap-window-left; }
+ Mod+Shift+BracketRight { swap-window-right; }
Mod+R { switch-preset-column-width; }
Mod+Shift+R { switch-preset-window-height; }
diff --git a/dotfiles/.local/bin/pipewire-restart b/dotfiles/.local/bin/pipewire-restart
index 29309d3..da5721c 100755
--- a/dotfiles/.local/bin/pipewire-restart
+++ b/dotfiles/.local/bin/pipewire-restart
@@ -1,4 +1,6 @@
#!/bin/sh
killall pipewire wireplumber pipewire-pulse pipewire-jack
-pipewire & wireplumber & pipewire-pulse & pipewire-jack
+pipewire > ~/.cache/pw.log 2>&1 &
+wireplumber > ~/.cache/wireplumber.log 2>&1 &
+pipewire-pulse > ~/.cache/pw-pulse.log 2>&1 &
diff --git a/dotfiles/.profile b/dotfiles/.profile
index 0521be1..12dfd13 100644
--- a/dotfiles/.profile
+++ b/dotfiles/.profile
@@ -53,9 +53,6 @@ eval "$(dircolors "$HOME/.config/dir_colors")"
# Start sway automatically upon login on tty1 or tty2
if [ -z $DISPLAY ]; then
if [ $(tty) = /dev/tty1 ] || [ $(tty) = /dev/tty2 ]; then
- pipewire > ~/.cache/pw.log 2>&1 &
- wireplumber > ~/.cache/wireplumber.log 2>&1 &
- pipewire-pulse > ~/.cache/pw-pulse.log 2>&1 &
exec dbus-run-session niri --session > ~/.cache/niri.log 2>&1
elif [ $(tty) = /dev/tty3 ]; then
exec dbus-run-session sway 2> ~/.cache/sway.log