replace wofi by fuzzel
This commit is contained in:
parent
535f9fe03d
commit
ee3ea9e4ae
|
@ -68,7 +68,7 @@ OLD (EXPAND)
|
|||
| --------------------------- | :---------------------------------------------------------------------------------------------:
|
||||
| **Window Manager** | [Hyprland][Hyprland] |
|
||||
| **Bar** | [Waybar][Waybar] |
|
||||
| **Application Launcher** | [wofi][wofi] |
|
||||
| **Application Launcher** | [fuzzel][fuzzel] |
|
||||
| **Notification Daemon** | [Mako][Mako] |
|
||||
| **Terminal Emulator** | [Kitty][Kitty] |
|
||||
| **Shell** | [zsh][zsh] + [oh-my-zsh][oh-my-zsh] + [Starship][Starship] |
|
||||
|
@ -239,7 +239,7 @@ Keybindings
|
|||
- ```bind = $mainMod, F, fullscreen, 0```
|
||||
- ```bind = $mainMod SHIFT, F, fullscreen, 1```
|
||||
- ```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 SHIFT, Escape, exec, shutdown-script```
|
||||
- ```bind = $mainMod, P, pseudo,```
|
||||
|
@ -248,7 +248,7 @@ Keybindings
|
|||
- ```bind = $mainMod SHIFT, B, exec, pkill -SIGUSR1 .waybar-wrapped```
|
||||
- ```bind = $mainMod, C ,exec, hyprpicker -a```
|
||||
- ```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>
|
||||
|
@ -468,7 +468,7 @@ Other dotfiles that I learned / copy from:
|
|||
[Kitty]: https://github.com/kovidgoyal/kitty
|
||||
[Starship]: https://github.com/starship/starship
|
||||
[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
|
||||
[nemo]: https://github.com/linuxmint/nemo
|
||||
[yazi]: https://github.com/sxyazi/yazi
|
||||
|
|
|
@ -23,6 +23,5 @@
|
|||
++ [(import ./swaylock.nix)] # lock screen
|
||||
++ [(import ./vscodium.nix)] # vscode forck
|
||||
++ [(import ./waybar)] # status bar
|
||||
++ [(import ./wofi.nix)] # launcher
|
||||
++ [(import ./zsh.nix)]; # shell
|
||||
}
|
||||
|
|
|
@ -138,7 +138,7 @@
|
|||
"$mainMod, F, fullscreen, 0"
|
||||
"$mainMod SHIFT, F, fullscreen, 1"
|
||||
"$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, S, exec, hyprctl dispatch exec '[workspace 5 silent] SoundWireServer'"
|
||||
"$mainMod, Escape, exec, swaylock"
|
||||
|
@ -149,7 +149,7 @@
|
|||
"$mainMod SHIFT, B, exec, pkill -SIGUSR1 .waybar-wrapped"
|
||||
"$mainMod, C ,exec, hyprpicker -a"
|
||||
"$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"
|
||||
|
||||
# screenshot
|
||||
|
@ -219,7 +219,7 @@
|
|||
"$mainMod, XF86MonBrightnessDown, exec, brightnessctl set 100%-"
|
||||
|
||||
# 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
|
||||
|
@ -242,9 +242,9 @@
|
|||
"size 950 600,title:^(float_kitty)$"
|
||||
"float,audacious"
|
||||
"workspace 8 silent, audacious"
|
||||
"pin,wofi"
|
||||
"float,wofi"
|
||||
"noborder,wofi"
|
||||
# "pin,wofi"
|
||||
# "float,wofi"
|
||||
# "noborder,wofi"
|
||||
"tile, neovide"
|
||||
"idleinhibit focus,mpv"
|
||||
"float,udiskie"
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
config_file=~/.config/hypr/hyprland.conf
|
||||
keybinds=$(grep -oP '(?<=bind=).*' $config_file)
|
||||
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
|
||||
|
||||
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
|
||||
echo "shutdown"
|
||||
shutdown now
|
||||
elif [ $respond = '------------- Restart ---------------' ]
|
||||
# shutdown now
|
||||
elif [ $respond = ' Restart' ]
|
||||
then
|
||||
echo "restart"
|
||||
reboot
|
||||
# reboot
|
||||
else
|
||||
notify-send "cancel shutdown"
|
||||
fi
|
||||
|
|
|
@ -108,8 +108,8 @@
|
|||
};
|
||||
"custom/launcher"= {
|
||||
format= "";
|
||||
on-click= "pkill wofi || wofi --show drun";
|
||||
on-click-right= "pkill wofi || wallpaper-picker";
|
||||
on-click= "pkill fuzzel || fuzzel";
|
||||
on-click-right= "pkill fuzzel || wallpaper-picker";
|
||||
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