1
0
Fork 0

Install select-mode

This commit is contained in:
Malte Brandy 2020-05-06 11:01:08 +02:00
parent 48d86591b4
commit 6aeea49dba
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
4 changed files with 5 additions and 84 deletions

View file

@ -1,57 +0,0 @@
theme = "plain"
icons = "awesome"
[[block]]
block = "speedtest"
bytes = false
interval = 1800
[[block]]
block = "temperature"
collapsed = false
interval = 10
format = "{min}° min, {max}° max, {average}° avg"
chip = "*-isa-*"
[[block]]
block = "net"
device = "wlp61s0"
ssid = true
ip = true
speed_up = true
speed_down = true
graph_up = true
graph_down = true
interval = 5
[[block]]
block = "net"
device = "enp0s31f6"
ssid = true
ip = true
speed_up = true
speed_down = true
graph_up = true
graph_down = true
interval = 5
[[block]]
block = "disk_space"
path = "/"
alias = "/"
info_type = "available"
unit = "GB"
interval = 60
warning = 20.0
alert = 10.0
[[block]]
block = "memory"
display_type = "memory"
format_mem = "{Mup}%"
format_swap = "{SUp}%"
[[block]]
block = "load"
interval = 5
format = "{1m}"

View file

@ -174,32 +174,6 @@ in {
}
}
}
bar {
id monitoring
status_command ${pkgs.i3status-rust}/bin/i3status-rs ${
./status-monitoring.toml
};
status_padding 0
status_edge_padding 0
font monospace 9.5
height 17
workspace_buttons no
position top
modifier none
mode invisible
colors {
statusline ${colors.foreground}
background ${colors.background}
${
lib.concatStringsSep "\n" (lib.mapAttrsToList (category:
{ background, border, text }: ''
${category} ${background} ${border} ${text}
'') barColors)
}
}
}
exec random-wallpaper
exec ${pkgs.mako}/bin/mako --background-color "${colors.background}cc" --text-color "${colors.foreground}" --border-size 0

View file

@ -11,6 +11,10 @@ in {
updateHome = pkgs.writeShellScriptBin "update-home-mode" ''
update-home -A apollo-`cat ~/tmp/mode`
'';
selectMode = pkgs.writeShellScriptBin "select-mode" ''
${pkgs.dialog}/bin/dialog --menu "Select Mode" 20 80 5 research "" orga "" tinkering "" leisure "" 2> ~/tmp/mode
'';
inherit (unfreePkgs) zoom-us skypeforlinux google-chrome;
inherit (pkgs.gnome3) nautilus;
inherit (pkgs.xorg) xbacklight;

View file

@ -15,7 +15,7 @@
if [ "$(tty)" = "/dev/tty1" ]; then
. ${my-pkgs.start-ssh-agent}/bin/start-ssh-agent
while true; do
${pkgs.dialog}/bin/dialog --menu "Select Mode" 20 80 5 research "" orga "" tinkering "" leisure "" --stderr 2> ~/tmp/mode
select-mode
update-home-mode
echo Launching sway at $(date) >> ~/tmp/sway.log
${pkgs.sway}/bin/sway >> ~/tmp/sway.log