From d9010729aa0a19a1863df72588b36a904d5baa4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Sun, 31 Jan 2021 22:45:37 +0100 Subject: [PATCH] Add azote and nwg-launchers --- installed_packages/core/AUR | 2 + symlinks/bin/lockscreen | 6 ++- symlinks/config/azote/azoterc | 10 +++++ symlinks/config/gtk-3.0/settings.ini | 1 + symlinks/config/lock-wallpapers/.gitignore | 1 + symlinks/config/nwg-launchers/nwgbar/bar.json | 22 +++++++++++ .../config/nwg-launchers/nwgbar/style.css | 28 +++++++++++++ .../config/nwg-launchers/nwgdmenu/style.css | 22 +++++++++++ .../config/nwg-launchers/nwggrid/style.css | 39 +++++++++++++++++++ .../config/nwg-launchers/nwggrid/terminal | 1 + symlinks/config/sway/config | 2 +- symlinks/config/waybar/config | 2 +- 12 files changed, 133 insertions(+), 3 deletions(-) create mode 100644 symlinks/config/azote/azoterc create mode 100644 symlinks/config/lock-wallpapers/.gitignore create mode 100644 symlinks/config/nwg-launchers/nwgbar/bar.json create mode 100644 symlinks/config/nwg-launchers/nwgbar/style.css create mode 100644 symlinks/config/nwg-launchers/nwgdmenu/style.css create mode 100644 symlinks/config/nwg-launchers/nwggrid/style.css create mode 100644 symlinks/config/nwg-launchers/nwggrid/terminal diff --git a/installed_packages/core/AUR b/installed_packages/core/AUR index 7ff3d2d..03f5291 100644 --- a/installed_packages/core/AUR +++ b/installed_packages/core/AUR @@ -1,6 +1,8 @@ +azote bitwarden-bin libspotify nerd-fonts-source-code-pro +nwg-launchers python-pyspotify slack-desktop spotify diff --git a/symlinks/bin/lockscreen b/symlinks/bin/lockscreen index 86614a9..45cdc9b 100755 --- a/symlinks/bin/lockscreen +++ b/symlinks/bin/lockscreen @@ -1,5 +1,9 @@ #!/bin/sh -WALLPAPER=~/.config/lock-wallpapers/oscar-wallpaper.jpg +if test -f ~/.config/lock-wallpapers/override; then + WALLPAPER=~/.config/lock-wallpapers/override +else + WALLPAPER=~/.config/lock-wallpapers/oscar-wallpaper.jpg +fi swaylock -f -i $WALLPAPER -s fill diff --git a/symlinks/config/azote/azoterc b/symlinks/config/azote/azoterc new file mode 100644 index 0000000..bf260cf --- /dev/null +++ b/symlinks/config/azote/azoterc @@ -0,0 +1,10 @@ +{ + "thumb_width": "240", + "columns": "3", + "color_icon_w": "100", + "color_icon_h": "50", + "clip_prev_size": "30", + "palette_quality": "10", + "tracking_interval_seconds": "5", + "screen_measurement_delay": "300" +} diff --git a/symlinks/config/gtk-3.0/settings.ini b/symlinks/config/gtk-3.0/settings.ini index 29322c1..4725f3a 100644 --- a/symlinks/config/gtk-3.0/settings.ini +++ b/symlinks/config/gtk-3.0/settings.ini @@ -1,2 +1,3 @@ [Settings] gtk-application-prefer-dark-theme=1 +gtk-button-images=1 diff --git a/symlinks/config/lock-wallpapers/.gitignore b/symlinks/config/lock-wallpapers/.gitignore new file mode 100644 index 0000000..9ab91d2 --- /dev/null +++ b/symlinks/config/lock-wallpapers/.gitignore @@ -0,0 +1 @@ +override diff --git a/symlinks/config/nwg-launchers/nwgbar/bar.json b/symlinks/config/nwg-launchers/nwgbar/bar.json new file mode 100644 index 0000000..a2189fc --- /dev/null +++ b/symlinks/config/nwg-launchers/nwgbar/bar.json @@ -0,0 +1,22 @@ +[ + { + "name": "Lock screen", + "exec": "~/bin/lockscreen", + "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/symlinks/config/nwg-launchers/nwgbar/style.css b/symlinks/config/nwg-launchers/nwgbar/style.css new file mode 100644 index 0000000..871ec03 --- /dev/null +++ b/symlinks/config/nwg-launchers/nwgbar/style.css @@ -0,0 +1,28 @@ +#bar { + margin: 30px /* affects top/bottom & left/right alignment */ +} + +button, image { + background: none; + border-style: none; + box-shadow: none; + color: #999 +} + +button { + padding-left: 10px; + padding-right: 10px; + margin: 5px +} + +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/symlinks/config/nwg-launchers/nwgdmenu/style.css b/symlinks/config/nwg-launchers/nwgdmenu/style.css new file mode 100644 index 0000000..fd063d6 --- /dev/null +++ b/symlinks/config/nwg-launchers/nwgdmenu/style.css @@ -0,0 +1,22 @@ +/* Don't delete, just in case: the menu anchor is a button */ +button { + background: none; + border-style: none; + box-shadow: none; +} + +box { + /* Uncomment to set vertical margin + margin-top: 30px; + margin-bottom: 30px; + */ +} + +#searchbox { + /* Adjust to your taste */ +} + +/* Menu items */ +label { + padding-left: 5px +} diff --git a/symlinks/config/nwg-launchers/nwggrid/style.css b/symlinks/config/nwg-launchers/nwggrid/style.css new file mode 100644 index 0000000..ba8c143 --- /dev/null +++ b/symlinks/config/nwg-launchers/nwggrid/style.css @@ -0,0 +1,39 @@ +button, label, image { + background: none; + border-style: none; + box-shadow: none; + color: #999; +} + +button { + padding: 5px; + margin: 5px +} + +button:hover { + background-color: rgba (255, 255, 255, 0.1); +} + +button:focus { + box-shadow: 0 0 2px; +} + +#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/symlinks/config/nwg-launchers/nwggrid/terminal b/symlinks/config/nwg-launchers/nwggrid/terminal new file mode 100644 index 0000000..af3808e --- /dev/null +++ b/symlinks/config/nwg-launchers/nwggrid/terminal @@ -0,0 +1 @@ +alacritty -e \ No newline at end of file diff --git a/symlinks/config/sway/config b/symlinks/config/sway/config index 28937e4..fc42510 100644 --- a/symlinks/config/sway/config +++ b/symlinks/config/sway/config @@ -1,7 +1,7 @@ # Read `man 5 sway` for a complete reference. # Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) -output * bg ~/.config/wallpapers/gruvbox-dark/gruvbox-gadgets.png fill +exec ~/.azotebg # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. diff --git a/symlinks/config/waybar/config b/symlinks/config/waybar/config index 85addf1..059e75e 100644 --- a/symlinks/config/waybar/config +++ b/symlinks/config/waybar/config @@ -177,7 +177,7 @@ "custom/power-menu": { "tooltip": false, "format": "", - "on-click": "echo -e 'Shutdown\nReboot\nSleep\nHibernate\nExit' | wofi -d -i -p 'System menu:' -L 10 | sed 's/Shutdown/systemctl poweroff/g;s/Reboot/systemctl reboot/g;s/Sleep/systemctl suspend/g;s/Hibernate/systemctl hibernate/g;s/Exit/swaymsg exit/g' | xargs -r0 sh -c" + "on-click": "nwgbar" } }