Add theming for wlogout

This commit is contained in:
iFargle 2023-08-30 23:35:25 +09:00
parent c7b04bda2c
commit e0a5155df4
3 changed files with 102 additions and 6 deletions

View file

@ -8,28 +8,29 @@ nixos-rebuild switch --flake '/etc/nixos#<HOSTNAME>'
---
# To Do List
* [ ] ranger
* [ ] Set up `kitten icat` as the image viewer program
* [ ] cronjob
* [ ] Change wallpaper at a certain time of day
* [x] ranger
* [x] Set up `kitten icat` as the image viewer program
* [ ] emacs
* [ ] Add bracket auto-completion
* [ ] Find a way to have magit save login credentials
* [ ] Hyprland
* [ ] Add a button for wlogout to waybar
* [x] Add a button for wlogout to waybar
[x] Waybar inhibit button
* [ ] set up pinentry on awesome-hyprland
* [ ] wayprompt
* [x] Needs an overlay? Can't find it in search
* [ ] wlogout theming
* [ ] wlogout themingd
* [ ] Try disko - [Link](https://github.com/nix-community/disko)
* [ ] btrfs snapshots
* [ ] vscodium and user-config.js file?
* [ ] rofi - bitwarden-cli / bitwarden-menu ([Link](https://search.nixos.org/packages?channel=23.05&show=bitwarden-menu&from=0&size=50&sort=relevance&type=packages&query=bitwarden))
* [ ] Try and submit this as a nixpkg - [Link](https://github.com/SylEleuth/gruvbox-plus-icon-pack)
---
# Done
* [x] neovim
* [x] Figure out how to install vim-fugitive in nvcmad
* [x] Figure out how to install vim-fugitive in nvchad
* [x] weechat / weechat-matrix
* [x] weechat overlay - [Link](https://nixos.wiki/wiki/Weechat) - for weechat-matrix
* [x] Laptop-specific

View file

@ -6,5 +6,6 @@
./gruvbox/swaylock-conf.nix
./gruvbox/waybar/waybar-conf.nix
./gruvbox/swayosd-conf.nix
./gruvbox/wlogout.nix
];
}

View file

@ -0,0 +1,94 @@
{ ... }: {
xdg.configFile."wlogout/layout" = {
enable = true;
target = "./wlogout/layout";
text = ''
{
"label" : "lock",
"action" : "swaylock",
"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"
}
'';
};
xdg.configFile."wlogout/style.css" = {
enable = true;
target = "./wlogout/style.css";
text = ''
* {
background-image: none;
}
window {
background-color: rgba(50, 48, 47, 0.8);
}
button {
color: #d5c4a1;
background-color: #1E1E1E;
border-style: solid;
border-width: 2px;
background-repeat: no-repeat;
background-position: center;
background-size: 25%;
}
button:focus, button:active, button:hover {
background-color: #a89984;
outline-style: none;
}
#lock {
background-image: image(url("/nix/store/azgw2sjb3zrzl83qckc2gxbfq5p74j3m-wlogout-1.1.1/share/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png"));
}
#logout {
background-image: image(url("/nix/store/azgw2sjb3zrzl83qckc2gxbfq5p74j3m-wlogout-1.1.1/share/wlogout/icons/logout.png"), url("/usr/local/share/wlogout/icons/logout.png"));
}
#suspend {
background-image: image(url("/nix/store/azgw2sjb3zrzl83qckc2gxbfq5p74j3m-wlogout-1.1.1/share/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png"));
}
#hibernate {
background-image: image(url("/nix/store/azgw2sjb3zrzl83qckc2gxbfq5p74j3m-wlogout-1.1.1/share/wlogout/icons/hibernate.png"), url("/usr/local/share/wlogout/icons/hibernate.png"));
}
#shutdown {
background-image: image(url("/nix/store/azgw2sjb3zrzl83qckc2gxbfq5p74j3m-wlogout-1.1.1/share/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png"));
}
#reboot {
background-image: image(url("/nix/store/azgw2sjb3zrzl83qckc2gxbfq5p74j3m-wlogout-1.1.1/share/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png"));
}
'';
};
}