Update nwg-panel default

This commit is contained in:
natemaia 2021-12-31 14:02:59 -08:00
parent 8aaeaa0ac6
commit 9103b0c0b0
2 changed files with 202 additions and 276 deletions

View File

@ -1,278 +1,197 @@
[ [
{ {
"name": "top", "name": "top",
"output": "", "output": "",
"layer": "bottom", "layer": "bottom",
"position": "top", "position": "top",
"width": "auto", "width": "auto",
"height": 30, "height": 30,
"homogeneous": true, "homogeneous": true,
"margin-top": 0, "margin-top": 0,
"margin-bottom": 0, "margin-bottom": 0,
"padding-horizontal": 0, "padding-horizontal": 0,
"padding-vertical": 0, "padding-vertical": 0,
"spacing": 2, "spacing": 2,
"items-padding": 0, "items-padding": 0,
"css-name": "panel-top", "css-name": "panel-top",
"icons": "light", "icons": "light",
"menu-start": "off", "menu-start": "off",
"modules-left": [ "modules-left": [
"playerctl" "sway-workspaces"
],
"modules-center": [
"clock"
],
"modules-right": [
"scratchpad",
"executor-arch"
],
"controls": "right",
"controls-settings": {
"alignment": "right",
"components": [
"brightness",
"battery",
"volume",
"bluetooth",
"net"
], ],
"commands": { "modules-center": [
"battery": "", "clock"
"net": "",
"bluetooth": "blueman-manager"
},
"custom-items": [
{
"name": "Wallpapers",
"icon": "azote",
"cmd": "azote"
},
{
"name": "Look & Feel",
"icon": "preferences-desktop-theme",
"cmd": "lxappearance"
},
{
"name": "Outputs",
"icon": "wdisplays",
"cmd": "wdisplays && sway-save-outputs"
},
{
"name": "Panel settings",
"icon": "nwg-panel",
"cmd": "nwg-panel-config"
}
], ],
"menu": { "modules-right": [
"name": "Exit", "executor-updates",
"icon": "system-shutdown-symbolic", "executor-cpuav",
"items": [ "executor-cpubar",
{ "executor-temp",
"name": "Lock", "executor-memory"
"cmd": "swaylock -f -c 000000" ],
"controls": "right",
"controls-settings": {
"alignment": "right",
"components": [
"brightness",
"battery",
"volume",
"bluetooth",
"net"
],
"commands": {
"battery": "",
"net": "",
"bluetooth": "blueman-manager"
}, },
{ "custom-items": [
"name": "Logout", {
"cmd": "swaymsg exit" "name": "Wallpapers",
"icon": "azote",
"cmd": "azote"
},
{
"name": "Look & Feel",
"icon": "preferences-desktop-theme",
"cmd": "lxappearance"
},
{
"name": "Outputs",
"icon": "wdisplays",
"cmd": "wdisplays && sway-save-outputs"
},
{
"name": "Panel settings",
"icon": "nwg-panel",
"cmd": "nwg-panel-config"
}
],
"menu": {
"name": "Exit",
"icon": "system-shutdown-symbolic",
"items": [
{
"name": "Lock",
"cmd": "swaylock -f -c 000000"
},
{
"name": "Logout",
"cmd": "swaymsg exit"
},
{
"name": "Restart",
"cmd": "systemctl reboot"
},
{
"name": "Shutdown",
"cmd": "systemctl -i poweroff"
}
]
}, },
{ "show-values": false,
"name": "Restart", "interval": 1,
"cmd": "systemctl reboot" "icon-size": 18,
}, "hover-opens": false,
{ "leave-closes": true,
"name": "Shutdown", "css-name": "panel-top",
"cmd": "systemctl -i poweroff" "net-interface": "wlan0",
} "Exit": "Exittt",
"system-shutdown-symbolic": "system-shutdown",
"output-switcher": true,
"window-width": 320,
"window-margin": 0,
"root-css-name": "controls-overview"
},
"sway-workspaces": {
"show-layout": false,
"numbers": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
] ]
}, },
"show-values": false, "clock": {
"interval": 1, "format": "%a, %d. %b %H:%M:%S",
"icon-size": 18, "interval": 1,
"hover-opens": false, "on-right-click": "",
"leave-closes": true, "tooltip-text": "",
"css-name": "controls-window", "on-left-click": "gsimplecal",
"net-interface": "wlan0", "on-middle-click": "",
"Exit": "Exittt", "on-scroll-up": "",
"system-shutdown-symbolic": "system-shutdown", "on-scroll-down": "",
"output-switcher": true, "css-name": "clock",
"window-width": 320, "root-css-name": "root-clock"
"window-margin": 0, },
"root-css-name": "controls-overview" "executor-updates": {
}, "script": "baph -c",
"playerctl": { "interval": 900,
"interval": 1, "icon-size": 16,
"buttons": true, "on-left-click": "foot bash -c 'baph -unN ; read -p \"Press Enter to finish\"'",
"buttons-position": "left", "tooltip-text": "",
"chars": 50, "on-middle-click": "",
"css-name": "button-grid", "on-right-click": "",
"icon-size": 16, "on-scroll-up": "",
"button-css-name": "button-custom", "on-scroll-down": "",
"label-css-name": "panel-top" "css-name": "",
}, "root-css-name": "",
"clock": { "icon-placement": "left"
"format": "%a, %d. %b %H:%M:%S", },
"interval": 1, "executor-cpubar": {
"on-right-click": "", "script": "gopsuinfo -c g",
"tooltip-text": "", "interval": 2,
"on-left-click": "/home/piotr/PycharmProjects/swayinfo/calendar.py", "tooltip-text": "",
"on-middle-click": "", "on-left-click": "",
"on-scroll-up": "", "on-middle-click": "",
"on-scroll-down": "", "on-right-click": "",
"css-name": "clock", "on-scroll-up": "",
"root-css-name": "root-clock" "on-scroll-down": "",
}, "css-name": "",
"executor-arch": { "icon-size": 16,
"script": "baph -c", "icon-placement": "left"
"interval": 900, },
"icon-size": 16, "executor-cpuav": {
"on-left-click": "foot baph -unN", "script": "gopsuinfo -i a",
"tooltip-text": "", "interval": 2,
"on-middle-click": "", "tooltip-text": "CPU average load",
"on-right-click": "", "on-left-click": "foot htop",
"on-scroll-up": "", "on-middle-click": "",
"on-scroll-down": "", "on-right-click": "",
"css-name": "", "on-scroll-up": "",
"root-css-name": "", "on-scroll-down": "",
"icon-placement": "left" "css-name": "",
}, "icon-size": 16,
"sway-taskbar": {}, "icon-placement": "right"
"sway-workspaces": {}, },
"scratchpad": {} "executor-temp": {
}, "script": "gopsuinfo -i t",
{ "interval": 5,
"name": "bottom", "tooltip-text": "",
"output": "", "on-left-click": "",
"layer": "bottom", "on-middle-click": "",
"position": "bottom", "on-right-click": "",
"height": 30, "on-scroll-up": "",
"margin-top": 0, "on-scroll-down": "",
"margin-bottom": 0, "css-name": "",
"padding-horizontal": 6, "icon-size": 16,
"padding-vertical": 0, "icon-placement": "left"
"spacing": 10, },
"items-padding": 0, "executor-memory": {
"css-name": "panel-bottom", "script": "gopsuinfo -i m",
"icons": "", "interval": 5,
"menu-start": "off", "tooltip-text": "",
"width": "auto", "on-left-click": "",
"controls": "off", "on-middle-click": "",
"controls-settings": {}, "on-right-click": "",
"scratchpad": {}, "on-scroll-up": "",
"clock": {}, "on-scroll-down": "",
"menu-start-settings": {}, "css-name": "",
"playerctl": {}, "icon-size": 16,
"sway-workspaces": {}, "icon-placement": "left"
"modules-left": [ }
"sway-taskbar"
],
"modules-center": [],
"modules-right": [
"executor-cpuav",
"executor-cpubar",
"executor-temp",
"executor-memory",
"executor-drives",
"executor-uptime"
],
"sway-taskbar": {
"workspace-buttons": false,
"show-app-icon": true,
"show-layout": true,
"show-app-name": true,
"name-max-len": 10,
"workspaces-spacing": 0,
"task-padding": 0,
"all-outputs": false,
"image-size": 16,
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
],
"all-workspaces": true
},
"executor-cpubar": {
"script": "gopsuinfo -c g",
"interval": 2,
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "",
"icon-size": 16,
"icon-placement": "left"
},
"executor-cpuav": {
"script": "gopsuinfo -i a",
"interval": 2,
"tooltip-text": "CPU average load",
"on-left-click": "alacritty -e htop",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "",
"icon-size": 16,
"icon-placement": "right"
},
"executor-temp": {
"script": "gopsuinfo -i t",
"interval": 5,
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "",
"icon-size": 16,
"icon-placement": "left"
},
"executor-memory": {
"script": "gopsuinfo -i m",
"interval": 5,
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "",
"icon-size": 16,
"icon-placement": "left"
},
"executor-drives": {
"script": "gopsuinfo -i n",
"interval": 15,
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "",
"icon-size": 16,
"icon-placement": "left"
},
"executor-uptime": {
"script": "gopsuinfo -i u",
"interval": 60,
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "",
"icon-size": 16,
"icon-placement": "left"
} }
}
] ]

View File

@ -4,6 +4,7 @@
# border & title # border & title
for_window [class="^.*"] border pixel 1, title_format "<b> %class >> %title </b>" for_window [class="^.*"] border pixel 1, title_format "<b> %class >> %title </b>"
default_border pixel 1
# gaps # gaps
gaps inner 8 gaps inner 8
@ -64,10 +65,10 @@ bindswitch lid:off output $laptop enable
### Idle configuration ### Idle configuration
exec swayidle -w \ exec swayidle -w \
timeout 3000 'swaylock -f -c 000000' \ timeout 3000 'swaylock -f -c 212121' \
timeout 3300 'swaymsg "output * dpms off"' \ timeout 3300 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \ resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000' before-sleep 'swaylock -f -c 212121'
# #
# This will lock your screen after 3000 seconds of inactivity, then turn off # This will lock your screen after 3000 seconds of inactivity, then turn off
# your displays after another 3300 seconds, and turn your screens back on when # your displays after another 3300 seconds, and turn your screens back on when
@ -85,18 +86,26 @@ exec swayidle -w \
# You can get the names of your inputs by running: swaymsg -t get_inputs # You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section. # Read `man 5 sway-input` for more information about this section.
# enable touchpad speed and features
input "type:touchpad" { input "type:touchpad" {
tap enabled tap enabled
dwt enabled dwt enabled
drag enabled drag enabled
scroll_factor 0.7 scroll_factor 0.7
pointer_accel 0.5 pointer_accel 0.2
accel_profile adaptive
}
# disable acceleration for mice
input "type:mouse" {
accel_profile flat accel_profile flat
} }
# keyboard layout # keyboard layout and repeat settings
input "type:keyboard" { input "type:keyboard" {
xkb_layout $lang xkb_layout $lang
repeat_delay 300
repeat_rate 70
} }
# numlock on/off # numlock on/off
@ -115,7 +124,7 @@ bindsym Mod1+F1 exec $launcher
# core # core
bindsym $Mod+Return exec $term bindsym $Mod+Return exec $term
bindsym Mod4+Shift+Return exec $term bindsym Mod1+Shift+Return exec $term
bindsym Control+Shift+t exec $term bindsym Control+Shift+t exec $term
bindsym $Mod+t exec $term bindsym $Mod+t exec $term
bindsym $Mod+w exec $browser bindsym $Mod+w exec $browser
@ -294,8 +303,6 @@ bindsym $Mod+Shift+f fullscreen
############### Border & Gaps ############### ############### Border & Gaps ###############
hide_edge_borders both
# changing border style # changing border style
bindsym $Mod+n border normal bindsym $Mod+n border normal
bindsym $Mod+y border pixel 1 bindsym $Mod+y border pixel 1