replace wofi by fuzzel
This commit is contained in:
parent
535f9fe03d
commit
ee3ea9e4ae
|
@ -68,7 +68,7 @@ OLD (EXPAND)
|
||||||
| --------------------------- | :---------------------------------------------------------------------------------------------:
|
| --------------------------- | :---------------------------------------------------------------------------------------------:
|
||||||
| **Window Manager** | [Hyprland][Hyprland] |
|
| **Window Manager** | [Hyprland][Hyprland] |
|
||||||
| **Bar** | [Waybar][Waybar] |
|
| **Bar** | [Waybar][Waybar] |
|
||||||
| **Application Launcher** | [wofi][wofi] |
|
| **Application Launcher** | [fuzzel][fuzzel] |
|
||||||
| **Notification Daemon** | [Mako][Mako] |
|
| **Notification Daemon** | [Mako][Mako] |
|
||||||
| **Terminal Emulator** | [Kitty][Kitty] |
|
| **Terminal Emulator** | [Kitty][Kitty] |
|
||||||
| **Shell** | [zsh][zsh] + [oh-my-zsh][oh-my-zsh] + [Starship][Starship] |
|
| **Shell** | [zsh][zsh] + [oh-my-zsh][oh-my-zsh] + [Starship][Starship] |
|
||||||
|
@ -239,7 +239,7 @@ Keybindings
|
||||||
- ```bind = $mainMod, F, fullscreen, 0```
|
- ```bind = $mainMod, F, fullscreen, 0```
|
||||||
- ```bind = $mainMod SHIFT, F, fullscreen, 1```
|
- ```bind = $mainMod SHIFT, F, fullscreen, 1```
|
||||||
- ```bind = $mainMod, Space, togglefloating,```
|
- ```bind = $mainMod, Space, togglefloating,```
|
||||||
- ```bind = $mainMod, D, exec, pkill wofi || wofi --show drun```
|
- ```bind = $mainMod, D, exec, pkill fuzzel || fuzzel```
|
||||||
- ```bind = $mainMod, Escape, exec, swaylock```
|
- ```bind = $mainMod, Escape, exec, swaylock```
|
||||||
- ```bind = $mainMod SHIFT, Escape, exec, shutdown-script```
|
- ```bind = $mainMod SHIFT, Escape, exec, shutdown-script```
|
||||||
- ```bind = $mainMod, P, pseudo,```
|
- ```bind = $mainMod, P, pseudo,```
|
||||||
|
@ -248,7 +248,7 @@ Keybindings
|
||||||
- ```bind = $mainMod SHIFT, B, exec, pkill -SIGUSR1 .waybar-wrapped```
|
- ```bind = $mainMod SHIFT, B, exec, pkill -SIGUSR1 .waybar-wrapped```
|
||||||
- ```bind = $mainMod, C ,exec, hyprpicker -a```
|
- ```bind = $mainMod, C ,exec, hyprpicker -a```
|
||||||
- ```bind = $mainMod, G,exec, $HOME/.local/bin/toggle_layout```
|
- ```bind = $mainMod, G,exec, $HOME/.local/bin/toggle_layout```
|
||||||
- ```bind = $mainMod, W,exec, pkill wofi || wallpaper-picker```
|
- ```bind = $mainMod, W,exec, pkill fuzzel || wallpaper-picker```
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
@ -468,7 +468,7 @@ Other dotfiles that I learned / copy from:
|
||||||
[Kitty]: https://github.com/kovidgoyal/kitty
|
[Kitty]: https://github.com/kovidgoyal/kitty
|
||||||
[Starship]: https://github.com/starship/starship
|
[Starship]: https://github.com/starship/starship
|
||||||
[Waybar]: https://github.com/Alexays/Waybar
|
[Waybar]: https://github.com/Alexays/Waybar
|
||||||
[wofi]: https://hg.sr.ht/~scoopta/wofi
|
[fuzzel]: https://codeberg.org/dnkl/fuzzel>
|
||||||
[Btop]: https://github.com/aristocratos/btop
|
[Btop]: https://github.com/aristocratos/btop
|
||||||
[nemo]: https://github.com/linuxmint/nemo
|
[nemo]: https://github.com/linuxmint/nemo
|
||||||
[yazi]: https://github.com/sxyazi/yazi
|
[yazi]: https://github.com/sxyazi/yazi
|
||||||
|
|
|
@ -23,6 +23,5 @@
|
||||||
++ [(import ./swaylock.nix)] # lock screen
|
++ [(import ./swaylock.nix)] # lock screen
|
||||||
++ [(import ./vscodium.nix)] # vscode forck
|
++ [(import ./vscodium.nix)] # vscode forck
|
||||||
++ [(import ./waybar)] # status bar
|
++ [(import ./waybar)] # status bar
|
||||||
++ [(import ./wofi.nix)] # launcher
|
|
||||||
++ [(import ./zsh.nix)]; # shell
|
++ [(import ./zsh.nix)]; # shell
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
"$mainMod, F, fullscreen, 0"
|
"$mainMod, F, fullscreen, 0"
|
||||||
"$mainMod SHIFT, F, fullscreen, 1"
|
"$mainMod SHIFT, F, fullscreen, 1"
|
||||||
"$mainMod, Space, togglefloating,"
|
"$mainMod, Space, togglefloating,"
|
||||||
"$mainMod, D, exec, pkill wofi || wofi --show drun"
|
"$mainMod, D, exec, pkill fuzzel || fuzzel"
|
||||||
"$mainMod SHIFT, D, exec, hyprctl dispatch exec '[workspace 4 silent] vesktop'"
|
"$mainMod SHIFT, D, exec, hyprctl dispatch exec '[workspace 4 silent] vesktop'"
|
||||||
"$mainMod SHIFT, S, exec, hyprctl dispatch exec '[workspace 5 silent] SoundWireServer'"
|
"$mainMod SHIFT, S, exec, hyprctl dispatch exec '[workspace 5 silent] SoundWireServer'"
|
||||||
"$mainMod, Escape, exec, swaylock"
|
"$mainMod, Escape, exec, swaylock"
|
||||||
|
@ -149,7 +149,7 @@
|
||||||
"$mainMod SHIFT, B, exec, pkill -SIGUSR1 .waybar-wrapped"
|
"$mainMod SHIFT, B, exec, pkill -SIGUSR1 .waybar-wrapped"
|
||||||
"$mainMod, C ,exec, hyprpicker -a"
|
"$mainMod, C ,exec, hyprpicker -a"
|
||||||
"$mainMod, G,exec, $HOME/.local/bin/toggle_layout"
|
"$mainMod, G,exec, $HOME/.local/bin/toggle_layout"
|
||||||
"$mainMod, W,exec, pkill wofi || wallpaper-picker"
|
"$mainMod, W,exec, pkill fuzzel || wallpaper-picker"
|
||||||
"$mainMod SHIFT, W, exec, vm-start"
|
"$mainMod SHIFT, W, exec, vm-start"
|
||||||
|
|
||||||
# screenshot
|
# screenshot
|
||||||
|
@ -219,7 +219,7 @@
|
||||||
"$mainMod, XF86MonBrightnessDown, exec, brightnessctl set 100%-"
|
"$mainMod, XF86MonBrightnessDown, exec, brightnessctl set 100%-"
|
||||||
|
|
||||||
# clipboard manager
|
# clipboard manager
|
||||||
"$mainMod, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy"
|
"$mainMod, V, exec, cliphist list | fuzzel --dmenu | cliphist decode | wl-copy"
|
||||||
];
|
];
|
||||||
|
|
||||||
# mouse binding
|
# mouse binding
|
||||||
|
@ -242,9 +242,9 @@
|
||||||
"size 950 600,title:^(float_kitty)$"
|
"size 950 600,title:^(float_kitty)$"
|
||||||
"float,audacious"
|
"float,audacious"
|
||||||
"workspace 8 silent, audacious"
|
"workspace 8 silent, audacious"
|
||||||
"pin,wofi"
|
# "pin,wofi"
|
||||||
"float,wofi"
|
# "float,wofi"
|
||||||
"noborder,wofi"
|
# "noborder,wofi"
|
||||||
"tile, neovide"
|
"tile, neovide"
|
||||||
"idleinhibit focus,mpv"
|
"idleinhibit focus,mpv"
|
||||||
"float,udiskie"
|
"float,udiskie"
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
config_file=~/.config/hypr/hyprland.conf
|
config_file=~/.config/hypr/hyprland.conf
|
||||||
keybinds=$(grep -oP '(?<=bind=).*' $config_file)
|
keybinds=$(grep -oP '(?<=bind=).*' $config_file)
|
||||||
keybinds=$(echo "$keybinds" | sed 's/,\([^,]*\)$/ = \1/' | sed 's/, exec//g' | sed 's/^,//g')
|
keybinds=$(echo "$keybinds" | sed 's/,\([^,]*\)$/ = \1/' | sed 's/, exec//g' | sed 's/^,//g')
|
||||||
wofi -W 750 -dmenu -p "Keybinds" <<< "$keybinds"
|
fuzzel --width 75 --dmenu <<< "$keybinds"
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
respond="$(echo "------------- Shutdown --------------\n------------- Restart ---------------\n-------------- Cancel ---------------" | wofi --show dmenu -k /dev/null)"
|
respond="$(echo " Shutdown\n Restart\n Cancel" | fuzzel --dmenu --lines=3 --width=10 --prompt='')"
|
||||||
|
|
||||||
if [ $respond = '------------- Shutdown --------------' ]
|
if [ $respond = ' Shutdown' ]
|
||||||
then
|
then
|
||||||
echo "shutdown"
|
echo "shutdown"
|
||||||
shutdown now
|
# shutdown now
|
||||||
elif [ $respond = '------------- Restart ---------------' ]
|
elif [ $respond = ' Restart' ]
|
||||||
then
|
then
|
||||||
echo "restart"
|
echo "restart"
|
||||||
reboot
|
# reboot
|
||||||
else
|
else
|
||||||
notify-send "cancel shutdown"
|
notify-send "cancel shutdown"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -108,8 +108,8 @@
|
||||||
};
|
};
|
||||||
"custom/launcher"= {
|
"custom/launcher"= {
|
||||||
format= "";
|
format= "";
|
||||||
on-click= "pkill wofi || wofi --show drun";
|
on-click= "pkill fuzzel || fuzzel";
|
||||||
on-click-right= "pkill wofi || wallpaper-picker";
|
on-click-right= "pkill fuzzel || wallpaper-picker";
|
||||||
tooltip= "false";
|
tooltip= "false";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,118 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
programs.wofi = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
width = 400;
|
|
||||||
height = 350;
|
|
||||||
location = "center";
|
|
||||||
show = "drun";
|
|
||||||
prompt = "Search...";
|
|
||||||
allow_markup = true;
|
|
||||||
no_actions = true;
|
|
||||||
halign = "fill";
|
|
||||||
orientation = "vertical";
|
|
||||||
content_halign = "fill";
|
|
||||||
insensitive = true;
|
|
||||||
allow_images = true;
|
|
||||||
image_size = 40;
|
|
||||||
gtk_dark = true;
|
|
||||||
};
|
|
||||||
style =''
|
|
||||||
/* Mocha Mauve */
|
|
||||||
@define-color accent #cba6f7;
|
|
||||||
@define-color txt #cad3f5;
|
|
||||||
@define-color bg #24273a;
|
|
||||||
@define-color bg2 #494d64;
|
|
||||||
|
|
||||||
* {
|
|
||||||
font-family: 'JetBrains Mono Nerd Font', monospace;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Window */
|
|
||||||
window {
|
|
||||||
margin: 0px;
|
|
||||||
padding: 10px;
|
|
||||||
border: 3px solid @accent;
|
|
||||||
border-radius: 7px;
|
|
||||||
background-color: @bg;
|
|
||||||
animation: slideIn 0.5s ease-in-out both;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Slide In */
|
|
||||||
@keyframes slideIn {
|
|
||||||
0% {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Inner Box */
|
|
||||||
#inner-box {
|
|
||||||
margin: 5px;
|
|
||||||
padding: 10px;
|
|
||||||
border: none;
|
|
||||||
background-color: @bg;
|
|
||||||
animation: fadeIn 0.5s ease-in-out both;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Fade In */
|
|
||||||
@keyframes fadeIn {
|
|
||||||
0% {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
100% {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Outer Box */
|
|
||||||
#outer-box {
|
|
||||||
margin: 5px;
|
|
||||||
padding: 10px;
|
|
||||||
border: none;
|
|
||||||
background-color: @bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Scroll */
|
|
||||||
#scroll {
|
|
||||||
margin: 0px;
|
|
||||||
padding: 10px;
|
|
||||||
border: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Input */
|
|
||||||
#input {
|
|
||||||
margin: 5px;
|
|
||||||
padding: 10px;
|
|
||||||
border: none;
|
|
||||||
color: @accent;
|
|
||||||
background-color: @bg2;
|
|
||||||
animation: fadeIn 0.5s ease-in-out both;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Text */
|
|
||||||
#text {
|
|
||||||
margin: 5px;
|
|
||||||
padding: 10px;
|
|
||||||
border: none;
|
|
||||||
color: @txt;
|
|
||||||
animation: fadeIn 0.5s ease-in-out both;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Selected Entry */
|
|
||||||
#entry:selected {
|
|
||||||
background-color: @accent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#entry:selected #text {
|
|
||||||
color: @bg2;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue