summaryrefslogtreecommitdiff
path: root/hosts/omar/desktop-environment/window-manager.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/omar/desktop-environment/window-manager.nix')
-rw-r--r--hosts/omar/desktop-environment/window-manager.nix37
1 files changed, 0 insertions, 37 deletions
diff --git a/hosts/omar/desktop-environment/window-manager.nix b/hosts/omar/desktop-environment/window-manager.nix
deleted file mode 100644
index 0a6d878..0000000
--- a/hosts/omar/desktop-environment/window-manager.nix
+++ /dev/null
@@ -1,37 +0,0 @@
-{pkgs, ...}: {
- services.xserver.windowManager.dwm.enable = true;
-
- # Show battery and clock in status bar. This is a background daemon which
- # updates the root window, which DWM uses for status.
- systemd.user.services.dwm-battery = {
- description = "Battery status update";
- partOf = ["graphical-session.target"];
- wantedBy = ["graphical-session.target"];
-
- serviceConfig.ExecStart = pkgs.writeShellScript "dwm-battery" ''
- while true; do
- echo -n "$(date +%H:%M) - ";
-
- # See: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-power
- case "$(cat /sys/class/power_supply/BAT0/status)" in
- Charging) echo -n "🔋 " ;;
- Discharging) echo -n "🪫 " ;;
- "Not charging") echo -n "🪫 " ;;
- Full) echo -n "🔋 " ;;
- Unknown) echo -n "? " ;;
- ""|*) echo -n "?? " ;;
- esac
-
- echo -n "$(cat /sys/class/power_supply/BAT0/capacity)%"
-
- echo
- sleep 5
- done | ${pkgs.dwm-setstatus}/bin/dwm-setstatus
- '';
- };
-
- environment.systemPackages = with pkgs; [
- st
- dmenu
- ];
-}