diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2026-10-28 23:12:20 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2026-10-28 23:12:20 +0100 |
| commit | d35bd1184bbe4b67c3dc9d8bcc661bbd4cd391be (patch) | |
| tree | 2cea093bd86b60275809dc8fb16deef5eaae5227 | |
| parent | 890e05c939d161e9135e2330e0c3837837897511 (diff) | |
.
| -rw-r--r-- | fuzzel/fuzzel.ini | 17 | ||||
| -rwxr-xr-x | install.sh | 3 | ||||
| -rwxr-xr-x | kanshi/dual.sh | 2 | ||||
| -rwxr-xr-x | kanshi/single.sh | 2 | ||||
| -rw-r--r-- | niri/config.kdl | 20 | ||||
| -rwxr-xr-x | niri/run-niri.sh | 4 | ||||
| -rw-r--r-- | sway/config | 4 | ||||
| -rwxr-xr-x | sway/run-sway.sh | 3 |
8 files changed, 46 insertions, 9 deletions
diff --git a/fuzzel/fuzzel.ini b/fuzzel/fuzzel.ini new file mode 100644 index 0000000..b6e0417 --- /dev/null +++ b/fuzzel/fuzzel.ini @@ -0,0 +1,17 @@ +font = sans-serif:size=14 +dpi-aware = no +width = 80 +horizontal-pad = 10 +vertical-pad = 10 +inner-pad = 10 +line-height = 28 + +[colors] +background = 323232d0 +text = e0e0e0ff +input = e0e0e0ff +selection = 155b9cff +selection-text = e0e0e0ff + +[border] +width = 0 @@ -62,6 +62,9 @@ symlink $DOTFILES_DIR/fontconfig $CONFIG_DIR/fontconfig # foot symlink $DOTFILES_DIR/foot $CONFIG_DIR/foot +# fuzzel +symlink $DOTFILES_DIR/fuzzel $CONFIG_DIR/fuzzel + # gdb symlink $DOTFILES_DIR/gdb/.gdbinit $HOME/.gdbinit diff --git a/kanshi/dual.sh b/kanshi/dual.sh index bda0ff0..76ec7b3 100755 --- a/kanshi/dual.sh +++ b/kanshi/dual.sh @@ -7,7 +7,7 @@ secondary=$(display_names ".name != \"$primary\"") wlr-randr --output $primary --pos 0,0 wlr-randr --output $secondary --right-of $primary -killall swaybg >/dev/null +pkill -x swaybg >/dev/null swaybg -o $primary -i $bg1 \ -o $secondary -i $bg2 & diff --git a/kanshi/single.sh b/kanshi/single.sh index 016b133..748c681 100755 --- a/kanshi/single.sh +++ b/kanshi/single.sh @@ -2,7 +2,7 @@ . $(dirname "$(realpath "$0")")/env.sh -killall swaybg >/dev/null +pkill -x swaybg >/dev/null swaybg -o $primary -i $bg1 & if [ "$XDG_CURRENT_DESKTOP" = "sway" ]; then diff --git a/niri/config.kdl b/niri/config.kdl index 7620449..5c8728b 100644 --- a/niri/config.kdl +++ b/niri/config.kdl @@ -9,6 +9,9 @@ input { warp-mouse-to-focus focus-follows-mouse max-scroll-amount="0%" + // focus-follows-mouse + + disable-power-key-handling } cursor { @@ -41,6 +44,21 @@ layout { inactive-color "#505050" urgent-color "#9b0000" } + + tab-indicator { + on + hide-when-single-tab + place-within-column + gap 5 + width 4 + length total-proportion=1.0 + position "right" + gaps-between-tabs 2 + corner-radius 8 + active-color "red" + inactive-color "gray" + urgent-color "blue" + } } prefer-no-csd @@ -88,7 +106,7 @@ binds { F12 { spawn "~/.config/niri/terminal.sh"; } Mod+Return { spawn "foot"; } - Mod+Space { spawn "wofi"; } + Mod+Space { spawn "fuzzel"; } Mod+Tab { toggle-column-tabbed-display; } diff --git a/niri/run-niri.sh b/niri/run-niri.sh index eae7cec..fda4289 100755 --- a/niri/run-niri.sh +++ b/niri/run-niri.sh @@ -4,10 +4,10 @@ exec >~/.niri.log 2>&1 export QT_QPA_PLATFORM=wayland -if ( command -v systemctl && systemctl --user is-system-running ) >/dev/null; then +if [ "$(ps -p 1 -o comm=)" = "systemd" ]; then exec niri-session -elif pgrep -U $(id -u) dbus-daemon >/dev/null; then +elif [ -n "$DBUS_SESSION_BUS_ADDRESS" ]; then exec niri --session else diff --git a/sway/config b/sway/config index a8b0b02..ad17c25 100644 --- a/sway/config +++ b/sway/config @@ -20,8 +20,8 @@ bindsym { XF86MonBrightnessDown exec brightnessctl set 5%- $mod+Return exec foot - $mod+space exec wofi - $mod+Tab layout toggle + $mod+space exec fuzzel + $mod+Tab layout toggle all $mod+Shift+q kill $mod+Shift+r reload diff --git a/sway/run-sway.sh b/sway/run-sway.sh index 3b7b01b..6f6fcfb 100755 --- a/sway/run-sway.sh +++ b/sway/run-sway.sh @@ -5,8 +5,7 @@ exec >~/.sway.log 2>&1 export QT_QPA_PLATFORM=wayland export XDG_CURRENT_DESKTOP=sway -if ( ( command -v systemctl && systemctl --user is-system-running ) || - pgrep -U $(id -u) dbus-daemon ) >/dev/null; then +if [ "$(ps -p 1 -o comm=)" = "systemd" ] || [ -n "$DBUS_SESSION_BUS_ADDRESS" ]; then exec sway else |
