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:
38
.config/nwg-drawer/drawer.css
Normal file
38
.config/nwg-drawer/drawer.css
Normal 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
|
||||
}
|
||||
@@ -35,3 +35,6 @@ exec eos-welcome --startdelay=3
|
||||
|
||||
# Sway Fader
|
||||
# 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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
},
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ htop
|
||||
jq
|
||||
mako
|
||||
network-manager-applet
|
||||
nwg-drawer
|
||||
nwg-look
|
||||
pamixer
|
||||
polkit-gnome
|
||||
|
||||
Reference in New Issue
Block a user