aboutsummaryrefslogtreecommitdiff
path: root/fuzzel
diff options
context:
space:
mode:
authoreric.marin <maarin.eric@gmail.com>2024-12-18 21:06:41 +0100
committereric.marin <maarin.eric@gmail.com>2024-12-18 21:06:41 +0100
commit000a7c2a4c4bda36f655f6489b5bac3211515a5d (patch)
tree8a5fe85f0632fcca678f0204a4288e6b3423f772 /fuzzel
parentb0cfdab1e93f660fda8f9398e30c9c996a1760f3 (diff)
downloaddotfiles-000a7c2a4c4bda36f655f6489b5bac3211515a5d.tar.gz
dotfiles-000a7c2a4c4bda36f655f6489b5bac3211515a5d.zip
niri and fuzzel
Diffstat (limited to 'fuzzel')
-rw-r--r--fuzzel/fuzzel.ini116
-rwxr-xr-xfuzzel/powermenu.sh18
2 files changed, 134 insertions, 0 deletions
diff --git a/fuzzel/fuzzel.ini b/fuzzel/fuzzel.ini
new file mode 100644
index 0000000..a50f09b
--- /dev/null
+++ b/fuzzel/fuzzel.ini
@@ -0,0 +1,116 @@
+output=eDP-1
+font=Hack Nerd Font
+dpi-aware=yes
+use-bold=yes
+prompt=" "
+placeholder="..."
+icon-theme=Papirus
+# icons-enabled=yes
+# hide-before-typing=no
+# fields=filename,name,generic
+# password-character=*
+# filter-desktop=no
+# match-mode=fzf
+# sort-result=yes
+# match-counter=no
+# delayed-filter-ms=300
+# delayed-filter-limit=20000
+# show-actions=no
+terminal=footclient -o pad=0x0
+# launch-prefix=<not set>
+# list-executables-in-path=no
+
+# anchor=center
+# x-margin=0
+# y-margin=0
+lines=10
+width=35
+# tabs=8
+horizontal-pad=10
+vertical-pad=6
+inner-pad=5
+
+image-size-ratio=0
+
+# line-height=<use font metrics>
+# letter-spacing=0
+
+# layer=overlay
+# exit-on-keyboard-focus-loss=yes
+
+# cache=<not set>
+
+# render-workers=<number of logical CPUs>
+# match-workers=<number of logical CPUs>
+
+[colors]
+background=1e2030ff
+text=cad3f5ff
+prompt=ed8796ff
+placeholder=a5adcbff
+input=cad3f5ff
+match=ed8796ff
+selection=ed8796ff
+selection-text=24273aff
+selection-match=24273aff
+counter=a5adcbff
+border=363a4fff
+
+[border]
+width=2
+radius=10
+
+[dmenu]
+# mode=text # text|index
+# exit-immediately-if-empty=no
+
+[key-bindings]
+# cancel=Escape Control+g Control+c Control+bracketleft
+# execute=Return KP_Enter Control+y
+# execute-or-next=Tab
+# execute-input=Shift+Return Shift+KP_Enter
+# cursor-left=Left Control+b
+# cursor-left-word=Control+Left Mod1+b
+# cursor-right=Right Control+f
+# cursor-right-word=Control+Right Mod1+f
+# cursor-home=Home Control+a
+# cursor-end=End Control+e
+# delete-prev=BackSpace Control+h
+# delete-prev-word=Mod1+BackSpace Control+BackSpace Control+w
+# delete-line-backward=Control+u
+# delete-next=Delete KP_Delete Control+d
+# delete-next-word=Mod1+d Control+Delete Control+KP_Delete
+# delete-line-forward=Control+k
+# prev=Up Control+p
+# prev-with-wrap=ISO_Left_Tab
+# prev-page=Page_Up KP_Page_Up
+# next=Down Control+n
+# next-with-wrap=none
+# next-page=Page_Down KP_Page_Down
+# expunge=Shift+Delete
+# clipboard-paste=Control+v XF86Paste
+# primary-paste=Shift+Insert Shift+KP_Insert
+
+# custom-N: *dmenu mode only*. Like execute, but with a non-zero
+# exit-code; custom-1 exits with code 10, custom-2 with 11, custom-3
+# with 12, and so on.
+
+# custom-1=Mod1+1
+# custom-2=Mod1+2
+# custom-3=Mod1+3
+# custom-4=Mod1+4
+# custom-5=Mod1+5
+# custom-6=Mod1+6
+# custom-7=Mod1+7
+# custom-8=Mod1+8
+# custom-9=Mod1+9
+# custom-10=Mod1+0
+# custom-11=Mod1+exclam
+# custom-12=Mod1+at
+# custom-13=Mod1+numbersign
+# custom-14=Mod1+dollar
+# custom-15=Mod1+percent
+# custom-16=Mod1+dead_circumflex
+# custom-17=Mod1+ampersand
+# custom-18=Mod1+asterix
+# custom-19=Mod1+parentleft
diff --git a/fuzzel/powermenu.sh b/fuzzel/powermenu.sh
new file mode 100755
index 0000000..22b17c3
--- /dev/null
+++ b/fuzzel/powermenu.sh
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+poweroff=" Poweroff"
+reboot=" Reboot"
+lock=" Lock"
+exit="󰗼 Exit"
+
+chosen=$(echo -e "$poweroff\n$reboot\n$lock\n$exit" | fuzzel --dmenu --lines 4 --width 15)
+
+case "$chosen" in
+ "$poweroff") shutdown now ;;
+ "$reboot") reboot ;;
+ "$lock") loginctl lock-session ;;
+ # "$exit") hyprctl dispatch exit ;;
+ "$exit") niri msg action quit ;;
+ *) exit 1 ;;
+esac
+