1
0
mirror of https://github.com/Dejvino/pinephone-sway-poc.git synced 2024-11-05 07:40:04 +00:00

Added kill button. Added launchers for CPU, MEM and Network status buttons.

This commit is contained in:
Dejvino 2020-05-27 00:12:55 +02:00
parent d4d657d164
commit b6346d721c
4 changed files with 21 additions and 6 deletions

View File

@ -36,10 +36,11 @@ That's it. You should now have everything in place. Reboot to use the new settin
* postmarketOS - base Linux distribution (though any other would work as well) * postmarketOS - base Linux distribution (though any other would work as well)
* sway (pmos package) - tiling Wayland compositor * sway (pmos package) - tiling Wayland compositor
* squeekboard (pmos package) - on-screen keyboard for Wayland * squeekboard (pmos package) - on-screen keyboard for Wayland
** [terminal.yaml](https://source.puri.sm/btantau/squeekboard/blob/btantau-master-patch-76686/data/keyboards/terminal.yaml) - keyboard layout based on this improved version * * [terminal.yaml](https://source.puri.sm/btantau/squeekboard/blob/btantau-master-patch-76686/data/keyboards/terminal.yaml) - keyboard layout based on this improved version
* bemenu (pmos package) - app launcher * bemenu (pmos package) - app launcher
* waybar (pmos package) - Wayland status bar * waybar (pmos package) - Wayland status bar
** [carlosdss22/dotfiles](https://github.com/carlosdss22/dotfiles/tree/master/waybar) - styles used * * [carlosdss22/dotfiles](https://github.com/carlosdss22/dotfiles/tree/master/waybar) - styles used
* htop (pmos package) - Processes monitoring
* [sxmo-lisgd](https://git.sr.ht/~mil/lisgd) - gesture detection daemon * [sxmo-lisgd](https://git.sr.ht/~mil/lisgd) - gesture detection daemon
* [sxmo-utils](https://git.sr.ht/~mil/sxmo-utils) - various utilities for the PinePhone * [sxmo-utils](https://git.sr.ht/~mil/sxmo-utils) - various utilities for the PinePhone

View File

@ -18,7 +18,7 @@ set $term termite
# Your preferred application launcher # Your preferred application launcher
# Note: pass the final command to swaymsg so that the resulting window can be opened # Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on. # on the original workspace that the command was run on.
set $menu bemenu-run | xargs swaymsg exec -- set $menu bemenu-run -n -p RUN | xargs swaymsg exec --
### Output configuration ### Output configuration
# #

View File

@ -7,6 +7,7 @@
"position": "bottom", "position": "bottom",
"modules-left": [ "modules-left": [
"custom/kill",
"cpu", "cpu",
"memory" "memory"
// "disk" // "disk"
@ -24,6 +25,10 @@
//MODULES //MODULES
"custom/kill": {
"on-click": "swaymsg kill",
"format": "[x]"
},
"battery": { "battery": {
"interval": 1, "interval": 1,
@ -55,7 +60,8 @@
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
} },
"on-click": "termite -e \"htop --sort-key=PERCENT_CPU\""
}, },
@ -65,7 +71,8 @@
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90
} },
"on-click": "termite -e \"htop --sort-key=PERCENT_MEM\""
}, },
"network": { "network": {
@ -74,7 +81,7 @@
"format-ethernet": " {ifname}", // Icon: ethernet "format-ethernet": " {ifname}", // Icon: ethernet
"format-disconnected": "Disconnected", "format-disconnected": "Disconnected",
"tooltip-format": "{ifname}: {ipaddr}", "tooltip-format": "{ifname}: {ipaddr}",
"on-click": "swaymsg exec cmst" "on-click": "swaymsg exec \"termite -e nmtui\""
}, },
"sway/mode": { "sway/mode": {

View File

@ -27,6 +27,8 @@
#network, #network,
#pulseaudio, #pulseaudio,
#custom-alsa, #custom-alsa,
#custom-kill,
#custom.kill,
#tray { #tray {
padding-left: 8px; padding-left: 8px;
padding-right: 8px; padding-right: 8px;
@ -120,6 +122,11 @@
color: #282828; color: #282828;
} }
#custom-kill {
background: #a32a03;
color: #282828;
}
#tray { #tray {
background: transparent; background: transparent;
} }