I need to switch Rofi with Wofi or better. Added wlogout.

This commit is contained in:
uzy lol 2024-12-27 23:01:58 -08:00
parent a184270677
commit aaa70ddf69
6 changed files with 95 additions and 52 deletions

View File

@ -1,5 +1,5 @@
{
services.cliphist = {
enable = true;
};
services.cliphist = {
enable = true;
};
}

View File

@ -10,6 +10,7 @@
./network-manager.nix
./rofi.nix
./cliphist.nix
./wlogout.nix
];
programs.kitty.enable = true;
@ -18,10 +19,10 @@
inputs.hyprland-qtutils.packages."${pkgs.system}".default
pkgs.brightnessctl
pkgs.kdePackages.xwaylandvideobridge
pkgs.wl-clipboard
pkgs.wl-clipboard
pkgs.libsForQt5.qt5ct
pkgs.kdePackages.qt6ct
pkgs.libsForQt5.qt5ct
pkgs.kdePackages.qt6ct
];
wayland.windowManager.hyprland = {
@ -33,13 +34,13 @@
bind =
[
"$mod, Return, exec, kitty"
"$mod, SPACE, exec, rofi -show run"
"$mod, E, exec, dolphin"
"$mod, SPACE, exec, rofi -show run"
"$mod, E, exec, dolphin"
"$mod SHIFT, V, togglefloating,"
"$mod SHIFT, Q, killactive,"
"$mod SHIFT, V, togglefloating,"
"$mod SHIFT, Q, killactive,"
"$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
"$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
]
++ (
# workspaces
@ -55,32 +56,31 @@
9)
);
bindm = [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
bindm = [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
bindel = [
",XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
",XF86MonBrightnessUp, exec, brightnessctl s 10%+"
",XF86MonBrightnessDown, exec, brightnessctl s 10%-"
];
bindel = [
",XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 2%+"
",XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"
",XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
",XF86MonBrightnessUp, exec, brightnessctl s 2%+"
",XF86MonBrightnessDown, exec, brightnessctl s 2%-"
];
input = {
touchpad = {
natural_scroll = true;
};
};
input = {
touchpad = {
natural_scroll = true;
};
};
general = {
resize_on_border = true;
};
general = {
resize_on_border = true;
};
decoration = {
};
decoration = {
};
};
extraConfig = ''

View File

@ -1,5 +1,5 @@
{
services.network-manager-applet = {
enable = true;
};
services.network-manager-applet = {
enable = true;
};
}

View File

@ -1,13 +1,13 @@
{pkgs, ... }: {
programs.rofi = {
enable = true;
cycle = false;
plugins = with pkgs; [
rofi-emoji-wayland
rofi-calc
rofi-bluetooth
rofi-screenshot
rofi-power-menu
];
};
{pkgs, ...}: {
programs.rofi = {
enable = true;
cycle = false;
plugins = with pkgs; [
rofi-emoji-wayland
rofi-calc
rofi-bluetooth
rofi-screenshot
rofi-power-menu
];
};
}

View File

@ -1,6 +1,6 @@
{
programs.walker = {
enable = true;
runAsService = true;
};
programs.walker = {
enable = true;
runAsService = true;
};
}

43
home/modules/wlogout.nix Normal file
View File

@ -0,0 +1,43 @@
{
programs.wlogout = {
enable = true;
layout = [
{
label = "lock";
action = "loginctl lock-session";
text = "Lock";
keybind = "l";
}
{
label = "hibernate";
action = "systemctl hibernate";
text = "Hibernate";
keybind = "h";
}
{
label = "logout";
action = "loginctl terminate-user $USER";
text = "Logout";
keybind = "e";
}
{
label = "shutdown";
action = "systemctl poweroff";
text = "Shutdown";
keybind = "s";
}
{
label = "suspend";
action = "systemctl suspend";
text = "Suspend";
keybind = "u";
}
{
label = "reboot";
action = "systemctl reboot";
text = "Reboot";
keybind = "r";
}
];
};
}