feat: add nwg-drawer

* Add nwg-drawer application menu
* Add keybinding, custom css file, and an autostart entry
* Update Waybar to use nwg-drawer for the custom launcher module
This commit is contained in:
BluishHumility
2024-09-22 19:03:28 -04:00
parent 329f845773
commit cadb254a75
5 changed files with 56 additions and 8 deletions

View File

@@ -0,0 +1,38 @@
window {
background-color: rgba (38, 18, 57, 0.9);
color: #eceff4;
border-radius: 30px
}
/* search entry */
entry {
box-shadow: 0 0 6px 5px #2e3440;
background-color: rgba (0, 0, 0, 0.5)
}
button, image {
background-color: #3b4252;
background: none;
border: none;
margin: 10px
}
button:hover {
background-color: rgba (127, 63, 191, .4);
box-shadow: 0 0 6px 5px #190C26
}
/* in case you wanted to give category buttons a different look */
#category-button {
margin: 0 0px 0 0px
}
#pinned-box {
padding-bottom: 1px;
border-bottom: 1px solid gray
}
#files-box {
padding: 1px;
border: 1px solid gray
}

View File

@@ -34,4 +34,7 @@ exec QT_QPA_PLATFORM=xcb firewall-applet
exec eos-welcome --startdelay=3
# Sway Fader
# exec python3 ~/.config/sway/scripts/swayfader.py
# exec python3 ~/.config/sway/scripts/swayfader.py
# nwg-drawer
exec_always nwg-drawer -r -c 7 -is 90 -mb 10 -ml 50 -mr 50 -mt 10

View File

@@ -13,6 +13,9 @@ set $term footclient
# Application launcher
set $launcher fuzzel
# Application menu
set $menu nwg-drawer
# Power Menu
set $powermenu ~/.config/sway/scripts/power_menu.sh
@@ -37,6 +40,9 @@ set $lock swaylock -C ~/.config/swaylock/config
# Start your launcher
bindsym $mod+d exec $launcher
# Menu
bindsym $mod+Shift+d exec $menu
# Lock screen
bindsym $mod+f1 exec $lock

View File

@@ -17,7 +17,7 @@
"custom/launcher": {
"format":"<span size='x-large'></span>",
"on-click": "exec fuzzel",
"on-click": "exec nwg-drawer",
"tooltip": false
},
@@ -38,7 +38,7 @@
},
"sway/mode": {
"format": "{}",
"format": "<span style=\"italic\">{}</span>",
"tooltip": false
},
@@ -62,7 +62,7 @@
"tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr}",
"format-disconnected": " Disconnected",
"on-click": "footclient -T waybar_nmtui -e nmtui",
"interval": 2,
"interval": 2
},
// Configuration - modules-right
@@ -87,7 +87,7 @@
"interval": 30,
// See example config for sending signal to Waybar in ~/.config/sway/config.d/input
"signal": 1,
"on-click": "~/.config/waybar/scripts/keyhint.sh",
"on-click": "~/.config/waybar/scripts/keyhint.sh"
},
"idle_inhibitor": {
@@ -107,7 +107,7 @@
"warning": 70,
"critical": 90,
},
"on-click": "footclient -T waybar_htop -e htop",
"on-click": "footclient -T waybar_htop -e htop"
},
"memory": {
@@ -175,12 +175,12 @@
"tray": {
"icon-size": 16,
"spacing":10,
"spacing":10
},
"custom/power": {
"format":"⏻",
"on-click": "exec ~/.config/sway/scripts/power_menu.sh",
"tooltip": false,
"tooltip": false
},
}

View File

@@ -18,6 +18,7 @@ htop
jq
mako
network-manager-applet
nwg-drawer
nwg-look
pamixer
polkit-gnome