From b6346d721c42628b6d7a7e30cbb34d8f5dbec0db Mon Sep 17 00:00:00 2001 From: Dejvino Date: Wed, 27 May 2020 00:12:55 +0200 Subject: [PATCH] Added kill button. Added launchers for CPU, MEM and Network status buttons. --- README.md | 5 +++-- home/config/sway/config | 2 +- home/config/waybar/config_1 | 13 ++++++++++--- home/config/waybar/style.css | 7 +++++++ 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a530dae..07c8a93 100644 --- a/README.md +++ b/README.md @@ -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) * sway (pmos package) - tiling Wayland compositor * 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 * 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-utils](https://git.sr.ht/~mil/sxmo-utils) - various utilities for the PinePhone diff --git a/home/config/sway/config b/home/config/sway/config index eaa6ce0..a909ee1 100644 --- a/home/config/sway/config +++ b/home/config/sway/config @@ -18,7 +18,7 @@ set $term termite # Your preferred application launcher # 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. -set $menu bemenu-run | xargs swaymsg exec -- +set $menu bemenu-run -n -p RUN | xargs swaymsg exec -- ### Output configuration # diff --git a/home/config/waybar/config_1 b/home/config/waybar/config_1 index a42c31a..04c9287 100644 --- a/home/config/waybar/config_1 +++ b/home/config/waybar/config_1 @@ -7,6 +7,7 @@ "position": "bottom", "modules-left": [ + "custom/kill", "cpu", "memory" // "disk" @@ -24,6 +25,10 @@ //MODULES + "custom/kill": { + "on-click": "swaymsg kill", + "format": "[x]" + }, "battery": { "interval": 1, @@ -55,7 +60,8 @@ "states": { "warning": 70, "critical": 90 - } + }, + "on-click": "termite -e \"htop --sort-key=PERCENT_CPU\"" }, @@ -65,7 +71,8 @@ "states": { "warning": 70, "critical": 90 - } + }, + "on-click": "termite -e \"htop --sort-key=PERCENT_MEM\"" }, "network": { @@ -74,7 +81,7 @@ "format-ethernet": " {ifname}", // Icon: ethernet "format-disconnected": "Disconnected", "tooltip-format": "{ifname}: {ipaddr}", - "on-click": "swaymsg exec cmst" + "on-click": "swaymsg exec \"termite -e nmtui\"" }, "sway/mode": { diff --git a/home/config/waybar/style.css b/home/config/waybar/style.css index fb8d0e3..09043ac 100644 --- a/home/config/waybar/style.css +++ b/home/config/waybar/style.css @@ -27,6 +27,8 @@ #network, #pulseaudio, #custom-alsa, +#custom-kill, +#custom.kill, #tray { padding-left: 8px; padding-right: 8px; @@ -120,6 +122,11 @@ color: #282828; } +#custom-kill { + background: #a32a03; + color: #282828; +} + #tray { background: transparent; }