Browse Source

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

pull/1/head
Dejvino 3 years ago
parent
commit
b6346d721c
4 changed files with 21 additions and 6 deletions
  1. +3
    -2
      README.md
  2. +1
    -1
      home/config/sway/config
  3. +10
    -3
      home/config/waybar/config_1
  4. +7
    -0
      home/config/waybar/style.css

+ 3
- 2
README.md 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)
* 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



+ 1
- 1
home/config/sway/config View File

@@ -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
#


+ 10
- 3
home/config/waybar/config_1 View File

@@ -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": {


+ 7
- 0
home/config/waybar/style.css View File

@@ -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;
}


Loading…
Cancel
Save