aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fuzzel/fuzzel.ini17
-rwxr-xr-xinstall.sh3
-rwxr-xr-xkanshi/dual.sh2
-rwxr-xr-xkanshi/single.sh2
-rw-r--r--niri/config.kdl20
-rwxr-xr-xniri/run-niri.sh4
-rw-r--r--sway/config4
-rwxr-xr-xsway/run-sway.sh3
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
diff --git a/install.sh b/install.sh
index 363367a..85cfe44 100755
--- a/install.sh
+++ b/install.sh
@@ -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