use fuzzel instead of wofi
This commit is contained in:
parent
3212ca44aa
commit
c3a4fc2bb2
5 changed files with 43 additions and 5 deletions
|
|
@ -99,15 +99,16 @@
|
||||||
{
|
{
|
||||||
xdg.configFile =
|
xdg.configFile =
|
||||||
let
|
let
|
||||||
wpkgs = inputs.self.packages.${pkgs.system};
|
spkgs = inputs.self.packages.${pkgs.system};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
# "autostart/spotify.desktop".source = config.lib.file.mkOutOfStoreSymlink "";
|
||||||
"niri/config.kdl".source = pkgs.substituteAll {
|
"niri/config.kdl".source = pkgs.substituteAll {
|
||||||
src = ../../extra/niri.kdl;
|
src = ../../extra/niri.kdl;
|
||||||
env = {
|
env = {
|
||||||
kitty = "${pkgs.kitty}/bin/kitty";
|
kitty = "${pkgs.kitty}/bin/kitty";
|
||||||
launcher = "${wpkgs.wofi-launch}/bin/wofi-launch";
|
launcher = "${spkgs.fuzzel-launch}/bin/fuzzel-launch";
|
||||||
powermenu = "${wpkgs.wofi-power}/bin/wofi-power";
|
powermenu = "${spkgs.fuzzel-power}/bin/fuzzel-power";
|
||||||
swaylock = "${pkgs.swaylock}/bin/swaylock";
|
swaylock = "${pkgs.swaylock}/bin/swaylock";
|
||||||
automapaper = lib.strings.concatMapStringsSep "\n" (
|
automapaper = lib.strings.concatMapStringsSep "\n" (
|
||||||
command:
|
command:
|
||||||
|
|
|
||||||
|
|
@ -163,8 +163,6 @@ in
|
||||||
"${pkgs.waybar}/bin/waybar"
|
"${pkgs.waybar}/bin/waybar"
|
||||||
"${pkgs.dunst}/bin/dunst"
|
"${pkgs.dunst}/bin/dunst"
|
||||||
"${cfg.package}/bin/hyprctl dispatcher focusmonitor 1"
|
"${cfg.package}/bin/hyprctl dispatcher focusmonitor 1"
|
||||||
"${pkgs.keepassxc}/bin/keepassxc"
|
|
||||||
"${pkgs.spotify}/bin/spotify"
|
|
||||||
];
|
];
|
||||||
general = {
|
general = {
|
||||||
gaps_in = "2";
|
gaps_in = "2";
|
||||||
|
|
|
||||||
|
|
@ -24,5 +24,7 @@ forAllSystems (
|
||||||
{
|
{
|
||||||
wofi-launch = call ./wofi-launch.nix;
|
wofi-launch = call ./wofi-launch.nix;
|
||||||
wofi-power = call ./wofi-power.nix;
|
wofi-power = call ./wofi-power.nix;
|
||||||
|
fuzzel-launch = call ./fuzzel-launch.nix;
|
||||||
|
fuzzel-power = call ./fuzzel-power.nix;
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
|
||||||
4
packages/fuzzel-launch.nix
Normal file
4
packages/fuzzel-launch.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
pkgs.writeShellScriptBin "fuzzel-launch" ''
|
||||||
|
${pkgs.fuzzel}/bin/fuzzel
|
||||||
|
''
|
||||||
33
packages/fuzzel-power.nix
Normal file
33
packages/fuzzel-power.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
pkgs.writeShellScriptBin "fuzzel-power" ''
|
||||||
|
lock="Lock"
|
||||||
|
poweroff="Poweroff"
|
||||||
|
reboot="Reboot"
|
||||||
|
sleep="Suspend"
|
||||||
|
logout="Log out"
|
||||||
|
selected_option=$(echo -e "$lock\n$sleep\n$reboot\n$logout\n$poweroff" | ${pkgs.fuzzel}/bin/fuzzel --dmenu -i -p "Powermenu")
|
||||||
|
|
||||||
|
if [ "$selected_option" == "$lock" ]
|
||||||
|
then
|
||||||
|
echo "lock"
|
||||||
|
swaylock
|
||||||
|
elif [ "$selected_option" == "$poweroff" ]
|
||||||
|
then
|
||||||
|
echo "poweroff"
|
||||||
|
poweroff
|
||||||
|
elif [ "$selected_option" == "$reboot" ]
|
||||||
|
then
|
||||||
|
echo "reboot"
|
||||||
|
reboot
|
||||||
|
elif [ "$selected_option" == "$sleep" ]
|
||||||
|
then
|
||||||
|
echo "sleep"
|
||||||
|
suspend
|
||||||
|
elif [ "$selected_option" == "$logout" ]
|
||||||
|
then
|
||||||
|
echo "logout"
|
||||||
|
hyprctl dispatch exit
|
||||||
|
else
|
||||||
|
echo "No match"
|
||||||
|
fi
|
||||||
|
''
|
||||||
Loading…
Add table
Add a link
Reference in a new issue