From ffeaf344c429ab195160be967a5fb62346f3eed9 Mon Sep 17 00:00:00 2001 From: krolxon Date: Mon, 25 Aug 2025 15:44:14 +0530 Subject: move to fuzzel from rofi rofi is bad when it comes to fuzzy matching and also you cannot execute command as it is, for example you cannot pass arguements to commands like "setwall -m". Fuzzel is way simpler, natively supports wayland and is a drop in replacement for dmenu. --- .config/fuzzel/fuzzel.ini | 29 +++++ .config/newsboat/urls | 1 + .config/rofi/config.rasi | 209 ----------------------------------- .config/shell/profile | 2 +- .config/waybar/scripts/envyswitch.sh | 2 +- .config/yazi/keymap.toml | 5 +- 6 files changed, 35 insertions(+), 213 deletions(-) create mode 100644 .config/fuzzel/fuzzel.ini delete mode 100644 .config/rofi/config.rasi (limited to '.config') diff --git a/.config/fuzzel/fuzzel.ini b/.config/fuzzel/fuzzel.ini new file mode 100644 index 0000000..5142263 --- /dev/null +++ b/.config/fuzzel/fuzzel.ini @@ -0,0 +1,29 @@ +[main] +dpi-aware=no +lines=10 +filter-desktop=yes +icon-theme=Papirus-Dark +font=Fira Code:size=12 +terminal=foot -e +list-executables-in-path=yes +password-character=* +width=80 +horizontal-pad=10 +vertical-pad=10 +inner-pad=5 + +[colors] +background=1e1e2edd +text=cdd6f4ff +prompt=bac2deff +placeholder=7f849cff +input=cdd6f4ff +match=89b4faff +selection=585b70ff +selection-text=cdd6f4ff +selection-match=89b4faff +counter=7f849cff +border=89b4faff + +[key-bindings] +execute-input=Control+Return Shift+KP_Enter diff --git a/.config/newsboat/urls b/.config/newsboat/urls index e37f992..71e0880 100644 --- a/.config/newsboat/urls +++ b/.config/newsboat/urls @@ -15,3 +15,4 @@ https://lukesmith.xyz/rss.xml https://landchad.net/rss https://togglebit.io/atom.xml https://ben.page/rss +https://albert.nz/rss.xml diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi deleted file mode 100644 index 0ce9901..0000000 --- a/.config/rofi/config.rasi +++ /dev/null @@ -1,209 +0,0 @@ -configuration { - modi: "run,drun,window"; - matching: "fuzzy"; - terminal: "foot"; - sort: true; - case-sensitive: false; - disable-history: true; - font: "Fira Code 11"; - window-format: "{w} · {c} · {t}"; -} - -* { - rosewater: #f5e0dc; - flamingo: #f2cdcd; - pink: #f5c2e7; - mauve: #cba6f7; - red: #f38ba8; - maroon: #eba0ac; - peach: #fab387; - yellow: #f9e2af; - green: #a6e3a1; - teal: #94e2d5; - sky: #89dceb; - sapphire: #74c7ec; - blue: #89b4fa; - lavender: #b4befe; - text: #cdd6f4; - subtext1: #bac2de; - subtext0: #a6adc8; - overlay2: #9399b2; - overlay1: #7f849c; - overlay0: #6c7086; - surface2: #585b70; - surface1: #45475a; - surface0: #313244; - base: #1e1e2e; - mantle: #181825; - crust: #11111b; -} - -* { - selected-active-foreground: @background; - lightfg: @text; - separatorcolor: @foreground; - urgent-foreground: @red; - alternate-urgent-background: @lightbg; - lightbg: @mantle; - background-color: transparent; - border-color: @foreground; - normal-background: @background; - selected-urgent-background: @red; - alternate-active-background: @lightbg; - spacing: 2; - alternate-normal-foreground: @foreground; - urgent-background: @background; - selected-normal-foreground: @lightbg; - active-foreground: @blue; - background: @base; - selected-active-background: @blue; - active-background: @background; - selected-normal-background: @lightfg; - alternate-normal-background: @lightbg; - foreground: @text; - selected-urgent-foreground: @background; - normal-foreground: @foreground; - alternate-urgent-foreground: @red; - alternate-active-foreground: @blue; - -} -element { - cursor: pointer; - spacing: 5px ; - border: 0; -} -element normal.normal { - background-color: @normal-background; - text-color: @normal-foreground; -} -element normal.urgent { - background-color: @urgent-background; - text-color: @urgent-foreground; -} -element normal.active { - background-color: @active-background; - text-color: @active-foreground; -} -element selected.normal { - background-color: @selected-normal-background; - text-color: @selected-normal-foreground; -} -element selected.urgent { - background-color: @selected-urgent-background; - text-color: @selected-urgent-foreground; -} -element selected.active { - background-color: @selected-active-background; - text-color: @selected-active-foreground; -} -element alternate.normal { - background-color: @alternate-normal-background; - text-color: @alternate-normal-foreground; -} -element alternate.urgent { - background-color: @alternate-urgent-background; - text-color: @alternate-urgent-foreground; -} -element alternate.active { - background-color: @alternate-active-background; - text-color: @alternate-active-foreground; -} -element-text { - background-color: transparent; - cursor: inherit; - highlight: inherit; - text-color: inherit; -} -element-icon { - background-color: transparent; - size: 1.0000em ; - cursor: inherit; - text-color: inherit; -} -window { - padding: 5; - background-color: @background; - border: 1; - // width: 100%; -} -mainbox { - padding: 0; - border: 0; -} -message { - padding: 1px ; - border-color: @separatorcolor; - border: 2px dash 0px 0px ; -} -textbox { - text-color: @foreground; -} -listview { - padding: 2px 0px 0px ; - scrollbar: true; - border-color: @separatorcolor; - spacing: 2px ; - fixed-height: 0; - border: 2px 0px 0px ; -} -scrollbar { - width: 4px ; - padding: 0; - handle-width: 8px ; - border: 0; - handle-color: @normal-foreground; -} -sidebar { - border-color: @separatorcolor; - border: 2px dash 0px 0px ; -} -button { - cursor: pointer; - spacing: 0; - text-color: @normal-foreground; -} -button selected { - background-color: @selected-normal-background; - text-color: @selected-normal-foreground; -} -num-filtered-rows { - expand: false; - text-color: Gray; -} -num-rows { - expand: false; - text-color: Gray; -} -textbox-num-sep { - expand: false; - str: "/"; - text-color: Gray; -} -inputbar { - padding: 1px ; - spacing: 0px ; - text-color: @normal-foreground; - children: [ "prompt","textbox-prompt-colon","entry","num-filtered-rows","textbox-num-sep","num-rows","case-indicator" ]; -} -case-indicator { - spacing: 0; - text-color: @normal-foreground; -} -entry { - text-color: @normal-foreground; - cursor: text; - spacing: 0; - placeholder-color: Gray; - placeholder: "Type to filter"; -} -prompt { - spacing: 0; - text-color: @normal-foreground; -} -textbox-prompt-colon { - margin: 0px 0.3000em 0.0000em 0.0000em ; - expand: false; - str: ":"; - text-color: inherit; -} - diff --git a/.config/shell/profile b/.config/shell/profile index a3cb026..3901d4a 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -32,7 +32,7 @@ export MYSQL_HISTFILE="$XDG_CACHE_HOME/.mariadb_history" export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv" # Other program settings -export SUDO_ASKPASS="$HOME/.local/bin/rofipass" +export SUDO_ASKPASS="$HOME/.local/bin/askpass-fuzzel" export FZF_DEFAULT_OPTS="--layout=reverse --height 40%" export ANDROID_SDK_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/android" export ANDROID_HOME="$HOME/Android/Sdk/" diff --git a/.config/waybar/scripts/envyswitch.sh b/.config/waybar/scripts/envyswitch.sh index 60c09a4..e1d9933 100755 --- a/.config/waybar/scripts/envyswitch.sh +++ b/.config/waybar/scripts/envyswitch.sh @@ -1,6 +1,6 @@ #!/bin/env bash -mode="$(printf "Integrated\nHybrid\nNvidia" | rofi -dmenu -case-smart -matching "fuzzy" -p "Select the graphics mode:")" +mode="$(printf "Integrated\nHybrid\nNvidia" | fuzzel --dmenu -p "Select the graphics mode:")" # Exit if no selection was made [ -z "$mode" ] && exit 1 diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml index 0c09881..4a99125 100644 --- a/.config/yazi/keymap.toml +++ b/.config/yazi/keymap.toml @@ -128,8 +128,9 @@ keymap = [ # Goto { on = [ "g", "h" ], run = "cd ~", desc = "Go home" }, { on = [ "g", "c" ], run = "cd ~/.config", desc = "Go ~/.config" }, - { on = [ "g", "d" ], run = "cd ~/dl", desc = "Go ~/dl" }, - { on = [ "g", "d" ], run = "cd ~/pix", desc = "Go ~/pix" }, + { on = [ "g", "d" ], run = "cd ~/dox", desc = "Go ~/dox" }, + { on = [ "g", "D" ], run = "cd ~/dl", desc = "Go ~/dl" }, + { on = [ "g", "p" ], run = "cd ~/pix", desc = "Go ~/pix" }, { on = [ "g", "C" ], run = "cd ~/.cache", desc = "Go ~/.cache" }, { on = [ "g", "r" ], run = "cd ~/code/repos", desc = "Go ~/code/repos" }, { on = [ "g", "v" ], run = "cd ~/vids", desc = "Go ~/vids" }, -- cgit v1.2.3