From c1d7673f42334873ec82444e1b34ce83f006d299 Mon Sep 17 00:00:00 2001 From: Sense T Date: Thu, 29 Jun 2023 10:15:06 +0800 Subject: [PATCH] nwg-launchers files --- home/user/files/nwg-launchers/nwgbar/bar.json | 22 ++++++++++ .../user/files/nwg-launchers/nwgbar/style.css | 30 +++++++++++++ .../files/nwg-launchers/nwgdmenu/style.css | 16 +++++++ .../files/nwg-launchers/nwggird/style.css | 44 +++++++++++++++++++ home/user/home.nix | 2 +- 5 files changed, 113 insertions(+), 1 deletion(-) create mode 100644 home/user/files/nwg-launchers/nwgbar/bar.json create mode 100644 home/user/files/nwg-launchers/nwgbar/style.css create mode 100644 home/user/files/nwg-launchers/nwgdmenu/style.css create mode 100644 home/user/files/nwg-launchers/nwggird/style.css diff --git a/home/user/files/nwg-launchers/nwgbar/bar.json b/home/user/files/nwg-launchers/nwgbar/bar.json new file mode 100644 index 0000000..bc9479f --- /dev/null +++ b/home/user/files/nwg-launchers/nwgbar/bar.json @@ -0,0 +1,22 @@ +[ + { + "name": "Lock screen", + "exec": "swaylock -f -c 000000", + "icon": "system-lock-screen" + }, + { + "name": "Logout", + "exec": "swaymsg exit", + "icon": "system-log-out" + }, + { + "name": "Reboot", + "exec": "systemctl reboot", + "icon": "system-reboot" + }, + { + "name": "Shutdown", + "exec": "systemctl -i poweroff", + "icon": "system-shutdown" + } +] diff --git a/home/user/files/nwg-launchers/nwgbar/style.css b/home/user/files/nwg-launchers/nwgbar/style.css new file mode 100644 index 0000000..4a69c1b --- /dev/null +++ b/home/user/files/nwg-launchers/nwgbar/style.css @@ -0,0 +1,30 @@ +#bar { + margin: 30px /* affects top/bottom & left/right alignment */ +} + +button, image { + background: none; + border-style: none; + box-shadow: none; + color: #999; + text-shadow: none; +} + +button { + padding-left: 10px; + padding-right: 10px; + margin: 5px; + -gtk-icon-shadow: none; +} + +button:hover { + background-color: rgba (255, 255, 255, 0.1) +} + +button:focus { + box-shadow: 0 0 2px; +} + +grid { + /* e.g. for common background to all buttons */ +} diff --git a/home/user/files/nwg-launchers/nwgdmenu/style.css b/home/user/files/nwg-launchers/nwgdmenu/style.css new file mode 100644 index 0000000..7b98df7 --- /dev/null +++ b/home/user/files/nwg-launchers/nwgdmenu/style.css @@ -0,0 +1,16 @@ + +box { + /* Uncomment to set vertical margin + margin-top: 30px; + margin-bottom: 30px; + */ +} + +#searchbox { + /* Adjust to your taste */ +} + +/* Menu items */ +#commands { + padding-left: 5px +} diff --git a/home/user/files/nwg-launchers/nwggird/style.css b/home/user/files/nwg-launchers/nwggird/style.css new file mode 100644 index 0000000..03c1310 --- /dev/null +++ b/home/user/files/nwg-launchers/nwggird/style.css @@ -0,0 +1,44 @@ +button, label, image { + background: none; + border-style: none; + box-shadow: none; + color: #999; +} + +button { + padding: 5px; + margin: 5px; + text-shadow: none; +} + +button:hover { + background-color: rgba (255, 255, 255, 0.1); +} + +button:focus { + box-shadow: 0 0 10px; +} + +button:checked { + background-color: rgba (255, 255, 255, 0.1); +} + +#searchbox { + background: none; + border-color: #999; + color: #ccc; + margin-top: 20px; + margin-bottom: 20px +} + +#separator { + background-color: rgba(200, 200, 200, 0.5); + margin-left: 500px; + margin-right: 500px; + margin-top: 10px; + margin-bottom: 10px +} + +#description { + margin-bottom: 20px +} diff --git a/home/user/home.nix b/home/user/home.nix index f4f8cbb..a0ae470 100644 --- a/home/user/home.nix +++ b/home/user/home.nix @@ -44,7 +44,7 @@ ".config/ranger/rc.conf".source = ./files/ranger-rc.conf; # nwg - #".config/nwg-launchers".source = ./files/nwg-launchers; + ".config/nwg-launchers".source = ./files/nwg-launchers; # Use flatseal to change permissions. #".local/share/fonts".source = /run/current-system/sw/share/X11/fonts;