sample dotfiles

This commit is contained in:
piotr 2021-06-09 02:01:55 +02:00
parent 264c25a220
commit 9c0dd8862d
14 changed files with 2126 additions and 0 deletions

3
contrib/README.md Normal file
View File

@ -0,0 +1,3 @@
# Contributions
Feel free to share your dot files (or something else) here.

View File

@ -0,0 +1,50 @@
window {
background-color: rgba (36, 47, 79, 0.92);
/*background: #242f4f;*/
/*opacity: 0.9;*/
border-radius: 5px;
border-style: none;
border-width: 1px;
border-color: rgba (156, 142, 122, 0.7)
}
#box {
/* Define attributes of the box surrounding icons here */
padding: 1px
}
button, image {
background: none;
border-style: none;
box-shadow: none;
color: #999
}
button {
/*padding-left: 4px;
padding-right: 4px;*/
padding: 2px;
margin: 6px;
color: #eee;
font-size: 12px
}
button:hover {
background-color: rgba (255, 255, 255, 0.15);
border-radius: 2px;
}
button:focus {
box-shadow: 0 0 2px;
}
grid {
background-color: rgba (0, 0, 0, 0.7);
/*background-image: url("/home/piotr/.config/nwg-launchers/nwgbar/bricks.png");*/
/* background-repeat: no-repeat; */
padding: 6px;
border-radius: 10px;
border-style: solid;
border-width: 1px;
border-color: rgba (156, 142, 122, 0.7)
}

View File

@ -0,0 +1,258 @@
[
{
"name": "panel-top",
"output": "",
"layer": "bottom",
"position": "top",
"controls": "right",
"width": "auto",
"height": 30,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 0,
"padding-vertical": 0,
"spacing": 0,
"items-padding": 0,
"icons": "light",
"css-name": "panel-top",
"modules-left": [
"button-sample",
"playerctl"
],
"modules-center": [
"clock"
],
"modules-right": [],
"controls-settings": {
"components": [
"brightness",
"volume",
"battery"
],
"commands": {
"net": "",
"bluetooth": "",
"battery": ""
},
"show-values": false,
"interval": 1,
"icon-size": 16,
"hover-opens": true,
"leave-closes": true,
"css-name": "controls-window",
"net-interface": "",
"custom-items": [
{
"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": "Reboot",
"cmd": "systemctl reboot"
},
{
"name": "Shutdown",
"cmd": "systemctl -i poweroff"
}
]
}
},
"sway-taskbar": {
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
],
"name-max-len": 20,
"image-size": 16,
"workspaces-spacing": 0,
"task-padding": 0,
"show-app-icon": true,
"show-app-name": true,
"show-layout": true,
"workspace-buttons": false,
"all-workspaces": true,
"all-outputs": true
},
"sway-workspaces": {
"numbers": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
]
},
"clock": {
"format": "%a, %d. %b %H:%M:%S",
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "clock",
"interval": 1
},
"playerctl": {
"buttons-position": "left",
"icon-size": 16,
"chars": 30,
"button-css-name": "",
"label-css-name": "",
"interval": 1
},
"button-sample": {
"command": "notify-send 'sample button'",
"icon": "view-grid",
"label": "",
"label-position": "right",
"css-name": "button-custom",
"icon-size": 16
}
},
{
"name": "panel-bottom",
"output": "",
"layer": "bottom",
"position": "bottom",
"controls": "off",
"width": "auto",
"height": 30,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 6,
"padding-vertical": 0,
"spacing": 0,
"items-padding": 0,
"icons": "",
"css-name": "panel-bottom",
"modules-left": [
"sway-taskbar"
],
"modules-center": [],
"modules-right": [
"executor-weather"
],
"controls-settings": {
"components": [
"net",
"brightness",
"volume",
"battery"
],
"commands": {
"net": "",
"bluetooth": "",
"battery": ""
},
"show-values": false,
"interval": 1,
"icon-size": 16,
"hover-opens": true,
"leave-closes": true,
"css-name": "controls-window",
"net-interface": "",
"custom-items": [
{
"name": "Panel settings",
"icon": "nwg-panel",
"cmd": "nwg-panel-config"
}
],
"menu": {
"name": "unnamed",
"icon": "",
"items": []
}
},
"sway-taskbar": {
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
],
"name-max-len": 20,
"image-size": 16,
"workspaces-spacing": 0,
"task-padding": 0,
"show-app-icon": true,
"show-app-name": true,
"show-layout": true,
"workspace-buttons": false,
"all-workspaces": true,
"all-outputs": false
},
"sway-workspaces": {
"numbers": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
]
},
"clock": {
"format": "%a, %d. %b %H:%M:%S",
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "clock",
"interval": 1
},
"playerctl": {
"buttons-position": "left",
"icon-size": 16,
"chars": 30,
"button-css-name": "",
"label-css-name": "",
"interval": 1
},
"executor-weather": {
"script": "curl https://wttr.in/?format=1 -s",
"interval": 1800,
"css-name": "weather",
"on-right-click": "",
"icon-size": 16,
"show-icon": true,
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-scroll-up": "",
"on-scroll-down": ""
}
}
]

View File

@ -0,0 +1,380 @@
[
{
"name": "primary-top",
"output": "eDP-1",
"layer": "bottom",
"position": "top",
"height": 30,
"homogeneous": true,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 0,
"padding-vertical": 0,
"spacing": 2,
"controls": "right",
"items-padding": 0,
"css-name": "panel-top",
"icons": "",
"modules-left": [
"sway-workspaces"
],
"modules-center": [
"clock"
],
"modules-right": [
"scratchpad",
"executor-github",
"executor-arch"
],
"sway-taskbar": {
"workspace-buttons": false,
"show-app-icon": true,
"show-layout": true,
"show-app-name": true,
"name-max-len": 24,
"workspaces-spacing": 0,
"task-spacing": 0,
"all-outputs": false,
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
],
"image-size": 16,
"task-padding": 0
},
"controls-settings": {
"alignment": "right",
"components": [
"brightness",
"battery",
"volume",
"bluetooth",
"net"
],
"commands": {
"battery": "",
"net": "",
"bluetooth": "blueman-manager"
},
"custom-items": [
{
"name": "Wallpapers",
"icon": "azote",
"cmd": "azote"
},
{
"name": "Look & Feel",
"icon": "preferences-desktop-theme",
"cmd": "lxappearance"
},
{
"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,
"interval": 1,
"icon-size": 18,
"hover-opens": false,
"leave-closes": true,
"css-name": "controls-window",
"net-interface": "wlo1",
"Exit": "Exittt",
"system-shutdown-symbolic": "system-shutdown",
"output-switcher": true,
"window-width": 320,
"window-margin": 6
},
"playerctl": {
"interval": 1,
"buttons": true,
"buttons-position": "left",
"chars": 50,
"css-name": "button-grid",
"icon-size": 16,
"button-css-name": "button-custom",
"label-css-name": "panel-top"
},
"clock": {
"format": "%a, %d. %b %H:%M:%S",
"interval": 1,
"on-right-click": "",
"tooltip-text": "",
"on-left-click": "/home/piotr/PycharmProjects/swayinfo/calendar.py",
"on-middle-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "clock"
},
"executor-weather": {
"script": "curl https://wttr.in/sokolow_podlaski?format=1",
"interval": 1800,
"css-name": "weather",
"on-right-click": "",
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"icon-size": 16
},
"executor-arch": {
"script": "/home/piotr/.config/nwg-panel/executors/arch_updates.py",
"interval": 900,
"icon-size": 16,
"on-left-click": "lxterminal -e \"au.sh; swaymsg reload\"",
"tooltip-text": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": ""
},
"executor-github": {
"script": "/home/piotr/.config/nwg-panel/executors/github.sh",
"interval": 60,
"icon-size": 16,
"on-left-click": "firefox https://github.com/notifications; swaymsg reload",
"tooltip-text": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "",
"icon-placement": "left"
},
"width": "auto",
"button-config": {
"command": "nwg-panel-config",
"icon": "nwg-panel",
"label": "",
"label-position": "right",
"css-name": "button-custom",
"icon-size": 16
},
"sway-workspaces": {
"numbers": [
"3",
"4"
],
"show-icon": true,
"image-size": 16,
"show-name": true,
"name-length": 40,
"mark-autotiling": true,
"mark-content": true,
"show-layout": true
},
"scratchpad": {
"css-name": "",
"icon-size": 20
},
"menu-start": "off",
"menu-start-settings": {
"cmd-lock": "swaylock -f -c 000000",
"cmd-logout": "swaymsg exit",
"cmd-restart": "systemctl reboot",
"cmd-shutdown": "systemctl -i poweroff",
"autohide": true,
"file-manager": "thunar",
"height": 0,
"icon-size-large": 32,
"icon-size-small": 16,
"icon-size-button": 24,
"margin-bottom": 0,
"margin-left": 0,
"margin-right": 0,
"margin-top": 0,
"padding": 2,
"terminal": "alacritty",
"width": 0
}
},
{
"name": "left",
"output": "DP-1",
"layer": "bottom",
"position": "bottom",
"height": 30,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 4,
"padding-vertical": 0,
"spacing": 6,
"css-name": "panel-top",
"modules-left": [
"sway-taskbar"
],
"modules-center": [],
"modules-right": [
"cpu-avg"
],
"sway-taskbar": {
"workspace-buttons": false,
"show-app-icon": true,
"show-layout": true,
"show-app-name": true,
"name-max-len": 20,
"workspaces-spacing": 0,
"task-spacing": 0,
"all-outputs": false,
"image-size": 16,
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6"
],
"task-padding": 0
},
"sway-workspaces": {
"numbers": [
"1",
"2"
]
},
"executor-traffic": {
"script": "psuinfo -Ik",
"interval": 3
},
"controls": "off",
"width": "auto",
"items-padding": 0,
"icons": "light",
"controls-settings": {
"components": [
"net",
"brightness",
"volume",
"battery"
]
},
"clock": {},
"playerctl": {},
"scratchpad": {}
},
{
"name": "right",
"output": "HDMI-A-1",
"layer": "bottom",
"position": "bottom",
"height": 30,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 6,
"padding-vertical": 0,
"spacing": 0,
"css-name": "panel-top",
"modules-left": [
"sway-taskbar"
],
"modules-center": [
"playerctl"
],
"modules-right": [
"executor-trafiic"
],
"sway-taskbar": {
"workspace-buttons": false,
"show-app-icon": true,
"show-layout": true,
"show-app-name": true,
"name-max-len": 20,
"workspaces-spacing": 0,
"task-spacing": 0,
"all-outputs": false,
"image-size": 16,
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6",
"7"
],
"task-padding": 0,
"all-workspaces": true
},
"sway-workspaces": {
"numbers": [
"5",
"6",
"7"
],
"show-icon": true,
"image-size": 16,
"show-name": true,
"name-length": 40,
"mark-autotiling": true,
"mark-content": true,
"show-layout": true
},
"controls": "off",
"width": "auto",
"items-padding": 0,
"icons": "light",
"controls-settings": {
"components": [
"net",
"brightness",
"volume",
"battery"
]
},
"executor-trafiic": {
"script": "gopsuinfo -i k",
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "",
"icon-size": 16,
"interval": 2,
"icon-placement": "right"
},
"clock": {},
"playerctl": {
"buttons-position": "left",
"icon-size": 16,
"chars": 30,
"button-css-name": "button-custom",
"label-css-name": "",
"interval": 1
},
"scratchpad": {}
}
]

View File

@ -0,0 +1,620 @@
[
{
"name": "primary-top",
"output": "eDP-1",
"layer": "bottom",
"position": "top",
"height": 30,
"homogeneous": true,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 0,
"padding-vertical": 0,
"spacing": 2,
"controls": "right",
"items-padding": 0,
"css-name": "panel-top",
"icons": "",
"modules-left": [],
"modules-center": [
"executor-weather",
"clock"
],
"modules-right": [
"scratchpad",
"executor-github",
"executor-arch"
],
"sway-taskbar": {
"workspace-buttons": false,
"show-app-icon": true,
"show-layout": true,
"show-app-name": true,
"name-max-len": 24,
"workspaces-spacing": 0,
"task-spacing": 0,
"all-outputs": false,
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
],
"image-size": 16,
"task-padding": 0
},
"controls-settings": {
"alignment": "right",
"components": [
"brightness",
"battery",
"volume",
"bluetooth",
"net"
],
"commands": {
"battery": "",
"net": "",
"bluetooth": "blueman-manager"
},
"custom-items": [
{
"name": "Wallpapers",
"icon": "azote",
"cmd": "azote"
},
{
"name": "Look & Feel",
"icon": "preferences-desktop-theme",
"cmd": "lxappearance"
},
{
"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,
"interval": 1,
"icon-size": 18,
"hover-opens": false,
"leave-closes": true,
"css-name": "controls-window",
"net-interface": "wlo1",
"Exit": "Exittt",
"system-shutdown-symbolic": "system-shutdown",
"output-switcher": true,
"window-width": 320
},
"playerctl": {
"interval": 1,
"buttons": true,
"buttons-position": "left",
"chars": 50,
"css-name": "button-grid",
"icon-size": 16,
"button-css-name": "button-custom",
"label-css-name": "panel-top"
},
"clock": {
"format": "%a, %d. %b %H:%M:%S",
"interval": 1,
"on-right-click": "",
"tooltip-text": "",
"on-left-click": "/home/piotr/PycharmProjects/swayinfo/calendar.py",
"on-middle-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "clock"
},
"executor-weather": {
"script": "curl https://wttr.in/sokolow_podlaski?format=1",
"interval": 1800,
"css-name": "weather",
"on-right-click": "",
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"icon-size": 16
},
"executor-arch": {
"script": "/home/piotr/.config/nwg-panel/executors/arch_updates.py",
"interval": 900,
"icon-size": 16,
"on-left-click": "lxterminal -e \"au.sh; swaymsg reload\"",
"tooltip-text": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": ""
},
"executor-github": {
"script": "/home/piotr/.config/nwg-panel/executors/github.sh",
"interval": 60,
"icon-size": 16,
"on-left-click": "firefox https://github.com/notifications; swaymsg reload",
"tooltip-text": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "",
"icon-placement": "left"
},
"width": "auto",
"button-config": {
"command": "nwg-panel-config",
"icon": "nwg-panel",
"label": "",
"label-position": "right",
"css-name": "button-custom",
"icon-size": 16
},
"sway-workspaces": {
"numbers": [
"3",
"4"
],
"show-icon": true,
"image-size": 16,
"show-name": true,
"name-length": 40,
"mark-autotiling": true,
"mark-content": true,
"show-layout": true
},
"scratchpad": {
"css-name": "",
"icon-size": 20
},
"menu-start": "off",
"menu-start-settings": {
"cmd-lock": "swaylock -f -c 000000",
"cmd-logout": "swaymsg exit",
"cmd-restart": "systemctl reboot",
"cmd-shutdown": "systemctl -i poweroff",
"autohide": true,
"file-manager": "thunar",
"height": 0,
"icon-size-large": 32,
"icon-size-small": 16,
"icon-size-button": 24,
"margin-bottom": 0,
"margin-left": 0,
"margin-right": 0,
"margin-top": 0,
"padding": 2,
"terminal": "alacritty",
"width": 0
}
},
{
"name": "primary-bottom",
"output": "eDP-1",
"layer": "bottom",
"position": "bottom",
"height": 30,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 6,
"padding-vertical": 0,
"spacing": 10,
"items-padding": 0,
"css-name": "panel-top",
"icons": "light",
"menu-start": "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": 15,
"workspaces-spacing": 0,
"task-padding": 0,
"all-outputs": false,
"image-size": 16,
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6",
"7"
],
"all-workspaces": true
},
"sway-workspaces": {
"numbers": [
"1",
"2",
"3",
"4"
]
},
"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"
},
"controls": "off",
"width": "auto",
"controls-settings": {
"components": [
"net",
"brightness",
"volume",
"battery"
],
"commands": {
"battery": "",
"net": "",
"bluetooth": ""
},
"show-values": false,
"interval": 1,
"icon-size": 16,
"hover-opens": true,
"leave-closes": true,
"css-name": "controls-window",
"net-interface": "",
"custom-items": [
{
"name": "Panel settings",
"icon": "nwg-panel",
"cmd": "nwg-panel-config"
},
{
"name": "Wallpapers",
"icon": "azote",
"cmd": "azote"
}
],
"menu": {
"name": "Exit",
"icon": "system-shutdown-symbolic",
"items": [
{
"name": "Lock",
"cmd": "swaylock -f -c 000000"
},
{
"name": "Logout",
"cmd": "swaymsg exit"
},
{
"name": "Reboot",
"cmd": "systemctl reboot"
},
{
"name": "Shutdown",
"cmd": "systemctl -i poweroff"
}
]
}
},
"clock": {
"format": "%a, %d. %b %H:%M:%S",
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "clock",
"interval": 1
},
"playerctl": {
"buttons-position": "left",
"icon-size": 16,
"chars": 30,
"button-css-name": "",
"label-css-name": "",
"interval": 1
},
"executor-uname": {
"script": "uname -sr",
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "",
"icon-size": 16,
"interval": 3599
},
"scratchpad": {},
"menu-start-settings": {
"cmd-lock": "swaylock -f -c 000000",
"cmd-logout": "swaymsg exit",
"cmd-restart": "systemctl reboot",
"cmd-shutdown": "systemctl -i poweroff",
"autohide": true,
"file-manager": "thunar",
"height": 0,
"icon-size-large": 32,
"icon-size-small": 16,
"icon-size-button": 16,
"margin-bottom": 0,
"margin-left": 0,
"margin-right": 0,
"margin-top": 0,
"padding": 2,
"terminal": "alacritty",
"width": 0
}
},
{
"name": "left",
"output": "DP-1",
"layer": "bottom",
"position": "bottom",
"height": 30,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 4,
"padding-vertical": 0,
"spacing": 6,
"css-name": "panel-top",
"modules-left": [
"sway-taskbar"
],
"modules-center": [],
"modules-right": [
"cpu-avg"
],
"sway-taskbar": {
"workspace-buttons": false,
"show-app-icon": true,
"show-layout": true,
"show-app-name": true,
"name-max-len": 20,
"workspaces-spacing": 0,
"task-spacing": 0,
"all-outputs": false,
"image-size": 16,
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6"
],
"task-padding": 0
},
"sway-workspaces": {
"numbers": [
"1",
"2"
]
},
"executor-traffic": {
"script": "psuinfo -Ik",
"interval": 3
},
"controls": "off",
"width": "auto",
"items-padding": 0,
"icons": "light",
"controls-settings": {
"components": [
"net",
"brightness",
"volume",
"battery"
]
},
"clock": {},
"playerctl": {},
"scratchpad": {}
},
{
"name": "right",
"output": "HDMI-A-1",
"layer": "bottom",
"position": "bottom",
"height": 30,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 6,
"padding-vertical": 0,
"spacing": 0,
"css-name": "panel-top",
"modules-left": [
"sway-taskbar"
],
"modules-center": [
"playerctl"
],
"modules-right": [
"executor-trafiic"
],
"sway-taskbar": {
"workspace-buttons": false,
"show-app-icon": true,
"show-layout": true,
"show-app-name": true,
"name-max-len": 20,
"workspaces-spacing": 0,
"task-spacing": 0,
"all-outputs": false,
"image-size": 16,
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6",
"7"
],
"task-padding": 0,
"all-workspaces": true
},
"sway-workspaces": {
"numbers": [
"5",
"6",
"7"
],
"show-icon": true,
"image-size": 16,
"show-name": true,
"name-length": 40,
"mark-autotiling": true,
"mark-content": true,
"show-layout": true
},
"controls": "off",
"width": "auto",
"items-padding": 0,
"icons": "light",
"controls-settings": {
"components": [
"net",
"brightness",
"volume",
"battery"
]
},
"executor-trafiic": {
"script": "gopsuinfo -i k",
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "",
"icon-size": 16,
"interval": 2,
"icon-placement": "right"
},
"clock": {},
"playerctl": {
"buttons-position": "left",
"icon-size": 16,
"chars": 30,
"button-css-name": "button-custom",
"label-css-name": "",
"interval": 1
},
"scratchpad": {}
}
]

View File

@ -0,0 +1,487 @@
[
{
"name": "primary",
"output": "eDP-1",
"layer": "bottom",
"position": "bottom",
"height": 36,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 4,
"padding-vertical": 0,
"spacing": 2,
"controls": "right",
"items-padding": 0,
"css-name": "panel-bottom",
"icons": "light",
"modules-left": [
"sway-taskbar"
],
"modules-center": [],
"modules-right": [
"scratchpad",
"executor-github",
"executor-arch",
"clock"
],
"sway-taskbar": {
"workspace-buttons": false,
"show-app-icon": true,
"show-layout": true,
"show-app-name": true,
"name-max-len": 20,
"workspaces-spacing": 0,
"task-spacing": 0,
"all-outputs": false,
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6",
"7"
],
"image-size": 24,
"task-padding": 0,
"all-workspaces": true
},
"controls-settings": {
"alignment": "right",
"components": [
"brightness",
"battery",
"volume",
"bluetooth"
],
"commands": {
"battery": "",
"net": "",
"bluetooth": "blueman-manager"
},
"custom-items": [
{
"name": "Wallpapers",
"icon": "azote",
"cmd": "azote"
},
{
"name": "Look & Feel",
"icon": "preferences-desktop-theme",
"cmd": "lxappearance"
},
{
"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,
"interval": 1,
"icon-size": 18,
"hover-opens": false,
"leave-closes": true,
"css-name": "controls-window",
"net-interface": "wlan0",
"Exit": "Exittt",
"system-shutdown-symbolic": "system-shutdown",
"output-switcher": true,
"window-width": 320,
"window-margin": 0
},
"playerctl": {
"interval": 1,
"buttons": true,
"buttons-position": "left",
"chars": 50,
"css-name": "button-grid",
"icon-size": 16,
"button-css-name": "button-custom",
"label-css-name": "panel-top"
},
"clock": {
"format": "%a, %d. %b %H:%M:%S",
"interval": 1,
"on-right-click": "",
"tooltip-text": "",
"on-left-click": "/home/piotr/PycharmProjects/swayinfo/calendar.py",
"on-middle-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "clock"
},
"executor-weather": {
"script": "curl https://wttr.in/sokolow_podlaski?format=1",
"interval": 1800,
"css-name": "weather",
"on-right-click": "",
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"icon-size": 16
},
"executor-arch": {
"script": "/home/piotr/.config/nwg-panel/executors/arch_updates.py",
"interval": 900,
"icon-size": 16,
"on-left-click": "lxterminal -e \"au.sh; swaymsg reload\"",
"tooltip-text": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": ""
},
"executor-github": {
"script": "/home/piotr/.config/nwg-panel/executors/github.sh",
"interval": 60,
"icon-size": 16,
"on-left-click": "firefox https://github.com/notifications; swaymsg reload",
"tooltip-text": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "",
"icon-placement": "left"
},
"width": "auto",
"button-config": {
"command": "nwg-panel-config",
"icon": "nwg-panel",
"label": "",
"label-position": "right",
"css-name": "button-custom",
"icon-size": 16
},
"sway-workspaces": {
"numbers": [
"3",
"4"
],
"show-name": true,
"name-length": 30,
"show-icon": true,
"image-size": 16,
"mark-autotiling": true,
"mark-content": true,
"show-layout": true
},
"scratchpad": {
"css-name": "",
"icon-size": 20
},
"menu-start": "left",
"menu-start-settings": {
"cmd-lock": "swaylock -f -c 000000",
"cmd-logout": "swaymsg exit",
"cmd-restart": "systemctl reboot",
"cmd-shutdown": "systemctl -i poweroff",
"autohide": true,
"file-manager": "thunar",
"height": 0,
"icon-size-large": 32,
"icon-size-small": 16,
"icon-size-button": 18,
"margin-bottom": 0,
"margin-left": 0,
"margin-right": 8,
"margin-top": 8,
"padding": 2,
"terminal": "alacritty",
"width": 0
}
},
{
"name": "left",
"output": "DP-1",
"layer": "bottom",
"position": "bottom",
"height": 30,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 4,
"padding-vertical": 0,
"spacing": 6,
"css-name": "panel-top",
"modules-left": [
"sway-taskbar"
],
"modules-center": [],
"modules-right": [
"cpu-avg",
"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": 20,
"workspaces-spacing": 0,
"task-spacing": 0,
"all-outputs": false,
"image-size": 16,
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6"
],
"task-padding": 0
},
"sway-workspaces": {
"numbers": [
"1",
"2"
],
"show-icon": true,
"image-size": 16,
"show-name": true,
"name-length": 30,
"mark-autotiling": true,
"mark-content": true,
"show-layout": true
},
"executor-traffic": {
"script": "psuinfo -Ik",
"interval": 3
},
"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"
},
"controls": "off",
"width": "auto",
"items-padding": 0,
"icons": "",
"controls-settings": {
"components": [
"net",
"brightness",
"volume",
"battery"
]
},
"clock": {},
"playerctl": {},
"scratchpad": {},
"menu-start": "left",
"menu-start-settings": {
"cmd-lock": "swaylock -f -c 000000",
"cmd-logout": "swaymsg exit",
"cmd-restart": "systemctl reboot",
"cmd-shutdown": "systemctl -i poweroff",
"autohide": true,
"file-manager": "thunar",
"height": 0,
"icon-size-large": 32,
"icon-size-small": 16,
"icon-size-button": 16,
"margin-bottom": 0,
"margin-left": 0,
"margin-right": 0,
"margin-top": 0,
"padding": 2,
"terminal": "alacritty",
"width": 0
}
},
{
"name": "right",
"output": "HDMI-A-1",
"layer": "bottom",
"position": "bottom",
"height": 30,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 6,
"padding-vertical": 0,
"spacing": 0,
"css-name": "panel-top",
"modules-left": [
"sway-taskbar"
],
"modules-center": [
"playerctl"
],
"modules-right": [
"executor-trafiic"
],
"sway-taskbar": {
"workspace-buttons": false,
"show-app-icon": true,
"show-layout": false,
"show-app-name": true,
"name-max-len": 15,
"workspaces-spacing": 0,
"task-spacing": 0,
"all-outputs": false,
"image-size": 16,
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6"
],
"task-padding": 0,
"all-workspaces": true
},
"sway-workspaces": {
"numbers": [
"5",
"6"
],
"show-icon": true,
"image-size": 16,
"show-name": true,
"name-length": 40,
"mark-autotiling": true,
"mark-content": true,
"show-layout": true
},
"controls": "off",
"width": "auto",
"items-padding": 0,
"icons": "",
"controls-settings": {
"components": [
"net",
"brightness",
"volume",
"battery"
]
},
"executor-trafiic": {
"script": "gopsuinfo -i k",
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "",
"icon-size": 16,
"interval": 2,
"icon-placement": "right"
},
"clock": {},
"playerctl": {
"buttons-position": "left",
"icon-size": 16,
"chars": 30,
"button-css-name": "button-custom",
"label-css-name": "",
"interval": 1
},
"scratchpad": {},
"menu-start": "left"
}
]

View File

@ -0,0 +1,28 @@
window {
background-color: rgba (36, 47, 79, 0.95);
color: #eeeeee
}
entry {
background-color: rgba (0, 0, 0, 0.2)
}
button {
background: none;
border: none
}
button:hover {
background-color: rgba (255, 255, 255, 0.1)
}
#pinned-box {
padding-bottom: 5px;
border-bottom: 1px dotted gray
}
#files-box {
padding: 5px;
border: 1px dotted gray;
border-radius: 15px
}

View File

@ -0,0 +1,81 @@
#!/usr/bin/python
import os
import time
import subprocess
# You may either use the full icon(s) path here, like e.g.:
# "/home/piotr/.config/nwg-panel/icons_light/arch-linux.svg"
# or just give the icon name, like below.
# The icon name must either exist in your icon theme, or you may place `icon_name.svg`
# custom files in '~/.config/nwg-panel/icons_light/' and '~/.config/nwg-panel/icons_dark/'.
# This script needs the `au.sh` helper on path or in the same directory. See comments in `au.sh`.
def main():
# Avoid checking on each panel restart: check if 15 minutes passed.
# Adjust the time (in seconds) to your liking.
# Make sure if the path below matches your temp directory.
file = "/tmp/arch-updates"
if os.path.isfile(file):
if int(time.time() - os.stat(file).st_mtime) > 900:
arch, aur = check_updates()
save_string("{},{}".format(arch, aur), file)
else:
try:
vals = load_string(file).split(",")
arch, aur = int(vals[0]), int(vals[1])
except:
arch, aur = 0, 0
else:
arch, aur = check_updates()
save_string("{},{}".format(arch, aur), file)
if arch > 0 and aur > 0:
print("software-update-urgent")
print("{}/{}".format(arch, aur))
elif arch > 0:
print("software-update-available")
print("{}".format(arch))
elif aur > 0:
print("software-update-available")
print("{}".format(aur))
def save_string(string, file):
try:
file = open(file, "wt")
file.write(string)
file.close()
except:
print("Error writing file '{}'".format(file))
def load_string(path):
try:
with open(path, 'r') as file:
data = file.read()
return data
except:
return ""
def check_updates():
arch, aur = 0, 0
try:
arch = len(subprocess.check_output(["checkupdates"]).decode("utf-8").splitlines())
except:
pass
try:
aur = len(subprocess.check_output(["trizen", "-Qqu", "-a"]).decode("utf-8").splitlines())
except:
pass
return arch, aur
if __name__ == "__main__":
main()

View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
# This is a helper to the arch-updates.py executor
# Add `<your-terminal-here> -e "au.sh; swaymsg reload"` as the On left click action
# Just in case - warn if battery level < threshold
l=$(acpi | awk -F ',' '{print $2}')
if [[ ! -z "$l" ]]; then
level=${l:1:-1}
threshold=30
if [[ "$level" -lt "$threshold" ]]; then
echo -e "\n*** BATTERY LEVEL$l, CONNECT AC! ***\n"
fi
fi
trizen -Syu &&
rm /tmp/arch-updates
echo Press enter to exit!; read;

View File

@ -0,0 +1,14 @@
#!/bin/bash
# Based on the 'Github notifications' example from Waybar's Wiki
# Depends on jq Command-line JSON processor
# Obtain a notifications token at https://github.com/settings/tokens
# save it to a file as below.
token=`cat ${HOME}/.config/github/notifications.token`
count=`curl -u nwg-piotr:${token} https://api.github.com/notifications -s | jq '. | length'`
if [[ "$count" != "0" ]]; then
echo /home/piotr/.config/nwg-panel/icons_light/github.svg
echo $count
fi

View File

@ -0,0 +1,22 @@
window {
background-color: rgba (34, 97, 124, 0.95);
/*color: #eeeeee*/
}
list {
background: none;
border-radius: 15px
}
entry {
background-color: rgba (0, 0, 0, 0.2)
}
button {
background: none;
border: none
}
button:hover {
background-color: rgba (255, 255, 255, 0.1)
}

View File

@ -0,0 +1,22 @@
window {
background-color: #204652;
color: #eeeeee
}
list {
background: none;
border-radius: 15px
}
entry {
background-color: rgba (0, 0, 0, 0.2)
}
button {
background: none;
border: none
}
button:hover {
background-color: rgba (255, 255, 255, 0.1)
}

View File

@ -0,0 +1,79 @@
/***** SUGGESTED TO CHANGE CAREFULLY *****/
/* Recommended if panel "height" unset or smaller then your theme default button height */
button {
margin: 2px
}
#button-start {
background: none;
border: 0px;
margin: 2px;
padding: 0px
}
/* WindowBox in SwayTaskBar is a custom widget, that needs this and the next name
to highlight currently focused task */
#task-box {
padding-left: 4px;
padding-right: 4px
}
#task-box-focused {
background-color: rgba (255, 255, 255, 0.12);
padding-left: 4px;
padding-right: 4px
}
menu {
background: #669
}
/***** MODIFY TO YOUR TASTE *****/
/* Sample button in sample config w/ no background nor border */
#button-custom {
background: rgba (0, 0, 0, 0.0);
border: 0
}
/* Top panel in sample config uses this name */
#panel-top {
background: rgba (24, 70, 89, 0.95);
/*color: #eeeeee*/
}
/* Bottom panel in sample config uses this name */
#panel-bottom {
background-color: rgba (36, 47, 79, 1);
color: #eeeeee
}
/* Controls window in sample config uses this name */
#controls-window {
/*border-radius: 15px;*/
background-color: rgba (36, 47, 79, 0.92);
color: #eeeeee
}
#menu-start-window {
border-radius: 15px;
background-color: rgba (36, 47, 79, 0.92);
color: #eeeeee
}
/* Executors usually behave better in monospace fonts */
#executor-label {
font-family: monospace
}
/* and so does the Clock */
#clock {
font-family: monospace;
font-size: 16px
}
/* Sample executor-weather uses "css-name": "weather" */
#weather {
font-size: 16px
}

View File

@ -0,0 +1,64 @@
/***** SUGGESTED TO CHANGE CAREFULLY *****/
/* Recommended if panel "height" unset or smaller then your theme default button height */
button {
margin: 2px;
background: none;
border: none
}
/* SwayTaskBar and SwayWorkspaces use custom widgets, that need this and the next name
to highlight currently focused task / workspace. */
#task-box {
padding-left: 4px;
padding-right: 4px
}
#task-box-focused {
background-color: rgba (255, 255, 255, 0.12);
padding-left: 4px;
padding-right: 4px
}
/***** MODIFY TO YOUR TASTE *****/
/* Sample button in sample config w/ no background nor border */
#button-custom {
background: rgba (0, 0, 0, 0.0);
border: 0
}
/* Top panel in sample config uses this name */
#panel-top {
background: #10191b;
color: #eeeeee
}
/* Bottom panel in sample config uses this name */
#panel-bottom {
background-color: #091e24;
color: #eeeeee
}
/* Controls window in sample config uses this name */
#controls-window {
border-radius: 15px;
background: #36364f;
color: #eeeeee
}
/* Executors usually behave better in monospace fonts */
#executor-label {
font-family: monospace
}
/* and so does the Clock */
#clock {
font-family: monospace;
font-size: 16px
}
/* Sample executor-weather uses "css-name": "weather" */
#weather {
font-size: 16px
}