Remove rofi-pass, rofi-power-menu; Restore wlogout
This commit is contained in:
parent
bbc9d68bbe
commit
0bdd5d8140
|
@ -10,6 +10,7 @@
|
|||
./default.nix
|
||||
./email/default.nix
|
||||
./password-store/default.nix
|
||||
./wlogout/default.nix
|
||||
./waybar/default.nix
|
||||
./rofi/default.nix
|
||||
./swaylock/default.nix
|
||||
|
|
|
@ -12,16 +12,9 @@
|
|||
font = fonts.monospace.name;
|
||||
location = "center";
|
||||
plugins = with pkgs; [rofi-emoji];
|
||||
pass = {
|
||||
enable = true;
|
||||
# package = pkgs.rofi-wayland;
|
||||
extraConfig = ''
|
||||
USERNAME_field='login'
|
||||
'';
|
||||
};
|
||||
extraConfig = {
|
||||
modi = "drun,ssh,window,combi";
|
||||
combi-modi = "window,drun,ssh";
|
||||
modi = "run,drun,ssh,window,emoji,combi";
|
||||
combi-modi = "drun,ssh,window,emoji";
|
||||
sidebar-mode = true;
|
||||
sort = true;
|
||||
sorting-method = "fzf";
|
||||
|
@ -32,10 +25,11 @@
|
|||
drun-display-format = "{icon} {name} ({categories})";
|
||||
disable-history = false;
|
||||
hide-scrollbar = true;
|
||||
display-window = " Move ";
|
||||
display-run = " Run ";
|
||||
display-drun = " Apps ";
|
||||
display-ssh = " SSH ";
|
||||
display-window = " Move ";
|
||||
display-emoji = " Emoji ";
|
||||
display-combi = " Combi ";
|
||||
};
|
||||
theme = with builtins;
|
||||
|
|
|
@ -150,16 +150,10 @@
|
|||
|
||||
# System utilities
|
||||
"${modifier}+F1" = "exec ${programs.swaylock.package}/bin/swaylock --screenshots --clock --indicator --grace-no-mouse";
|
||||
"${modifier}+p" = "exec ${programs.rofi.pass.package}/bin/rofi-pass";
|
||||
"${modifier}+Shift+p" = "exec ${programs.rofi.finalPackage}/bin/rofi -show powermenu -modi powermenu:${pkgs.rofi-power-menu}/bin/rofi-power-menu";
|
||||
"${modifier}+p" = "exec ${programs.wlogout.package}/bin/wlogout";
|
||||
"${modifier}+z" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw";
|
||||
"${modifier}+Shift+z" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client -d -sw";
|
||||
"${modifier}+Shift+Return" = "exec ${programs.emacs.finalPackage}/bin/emacsclient -c";
|
||||
# "${modifier}+s" = "exec ${withTerm {
|
||||
# progname = "btm";
|
||||
# args = "--autohide_time --battery --celsius --enable_cache_memory --enable_gpu_memory --group --hide_avg_cpu --hide_table_gap --retention=3m --show_table_scroll_position";
|
||||
# }}";
|
||||
# "${modifier}+c" = "exec ${withTerm {progname = "cava";}}"
|
||||
};
|
||||
};
|
||||
extraConfig = ''
|
||||
|
|
79
home/wlogout/default.nix
Normal file
79
home/wlogout/default.nix
Normal file
|
@ -0,0 +1,79 @@
|
|||
{
|
||||
fonts,
|
||||
scheme,
|
||||
accentColour ? "base07",
|
||||
...
|
||||
}: {
|
||||
programs.wlogout = {
|
||||
enable = true;
|
||||
layout = [
|
||||
{
|
||||
label = "reboot";
|
||||
action = "systemctl reboot";
|
||||
text = "Reboot";
|
||||
keybind = "r";
|
||||
}
|
||||
{
|
||||
label = "shutdown";
|
||||
action = "systemctl poweroff";
|
||||
text = "Shutdown";
|
||||
keybind = "s";
|
||||
}
|
||||
{
|
||||
label = "logout";
|
||||
action = "swaymsg exit";
|
||||
text = "Logout";
|
||||
keybind = "l";
|
||||
}
|
||||
];
|
||||
style = with scheme.withHashtag; let
|
||||
accent = scheme.withHashtag.${accentColour};
|
||||
shutdownIcon = ./icons/shutdown.png;
|
||||
rebootIcon = ./icons/reboot.png;
|
||||
logoutIcon = ./icons/logout.png;
|
||||
in ''
|
||||
* {
|
||||
font-size: ${toString fonts.sizes.popups}px;
|
||||
font-family: "${fonts.sansSerif.name}";
|
||||
}
|
||||
|
||||
window {
|
||||
border: none;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
button {
|
||||
border: ${accent};
|
||||
background-color: ${base00};
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 25%;
|
||||
box-shadow: none;
|
||||
margin: 5px;
|
||||
color: ${base05};
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: ${base01};
|
||||
color: ${base05};
|
||||
}
|
||||
|
||||
button:focus {
|
||||
background-color: ${base03};
|
||||
color: ${base05};
|
||||
}
|
||||
|
||||
#shutdown {
|
||||
background-image: url("${shutdownIcon}");
|
||||
}
|
||||
|
||||
#reboot {
|
||||
background-image: url("${rebootIcon}");
|
||||
}
|
||||
|
||||
#logout {
|
||||
background-image: url("${logoutIcon}");
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
BIN
home/wlogout/icons/hibernate.png
Normal file
BIN
home/wlogout/icons/hibernate.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
home/wlogout/icons/lock.png
Normal file
BIN
home/wlogout/icons/lock.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.9 KiB |
BIN
home/wlogout/icons/logout.png
Normal file
BIN
home/wlogout/icons/logout.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.2 KiB |
BIN
home/wlogout/icons/reboot.png
Normal file
BIN
home/wlogout/icons/reboot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
home/wlogout/icons/shutdown.png
Normal file
BIN
home/wlogout/icons/shutdown.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
home/wlogout/icons/suspend.png
Normal file
BIN
home/wlogout/icons/suspend.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
Loading…
Reference in a new issue