From 84799d53a6bccca5da22a577d251b4beaa8bd442 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Mon, 18 Dec 2023 00:06:06 -0500 Subject: [PATCH] remove i3 config --- modules/i3/default.nix | 92 ---------------------------------------- modules/i3/i3srs.toml | 35 --------------- modules/i3/i3status.conf | 21 --------- 3 files changed, 148 deletions(-) delete mode 100644 modules/i3/default.nix delete mode 100644 modules/i3/i3srs.toml delete mode 100644 modules/i3/i3status.conf diff --git a/modules/i3/default.nix b/modules/i3/default.nix deleted file mode 100644 index a8159b6..0000000 --- a/modules/i3/default.nix +++ /dev/null @@ -1,92 +0,0 @@ -{ config, pkgs, lib, ... }: -let - cfg = config.sconfig.i3; -in -{ - options.sconfig.i3 = { - enable = lib.mkEnableOption "Enable the i3 Window Manager"; - extraConfig = lib.mkOption { - type = lib.types.lines; - default = ""; - }; - }; - - config = lib.mkIf cfg.enable { - services.xserver.windowManager.i3 = { - enable = true; - extraSessionCommands = '' - echo 'Xft.dpi: 96' | xrdb -merge - echo 'Xcursor.size: 24' | xrdb -merge - xsetroot -solid '#333333' - ''; - configFile = pkgs.runCommand "i3config" { } '' - ( - cat '${pkgs.i3}/etc/i3/config' | - sed 's/Mod1/Mod4/' | - sed 's/^exec i3-config-wizard/#&/' | - sed 's/^font.*/font pango:DejaVuSans, FontAwesome5Free 12/' | - sed 's,status_command i3status,status_command i3status-rs ${./i3srs.toml} \n tray_output primary,' | - sed 's/i3-sensible-terminal/alacritty/' | - sed 's/10%/2%/' - cat '${pkgs.writeText "i3extra" cfg.extraConfig}' - )| - tee "$out" - ''; - }; - - hardware.pulseaudio.enable = true; - - environment.etc."xdg/gtk-3.0/settings.ini".text = '' - [Settings] - gtk-theme-name=Yaru-dark - gtk-icon-theme-name=Numix - ''; - - sconfig.i3.extraConfig = '' - default_border normal 4 - default_floating_border normal 4 - bindsym Mod4+Escape kill - hide_edge_borders both - bindsym XF86MonBrightnessUp exec brightnessctl -n500 -e s -- +10% - bindsym XF86MonBrightnessDown exec brightnessctl -n500 -e s -- -10% - ''; - - services.gvfs.enable = true; - networking.networkmanager.enable = true; - - fonts.fonts = with pkgs; [ - font-awesome - powerline-fonts - ]; - - services.xserver = { - enable = true; - libinput.enable = true; - libinput.touchpad.naturalScrolling = true; - displayManager.sddm.enable = true; - }; - - environment.systemPackages = with pkgs; [ - i3status-rust - brightnessctl - numix-icon-theme - yaru-theme - networkmanagerapplet - gnome3.file-roller - gnome3.adwaita-icon-theme - mate.mate-terminal - xfce.thunar - xfce.thunar-archive-plugin - caffeine-ng - - (runCommand "default_cursor" { } '' - mkdir -p $out/share/icons/default - ln -sf /run/current-system/sw/share/icons/Yaru/cursor.theme $out/share/icons/default/index.theme - '') - - (writeShellScriptBin "x-terminal-emulator" '' - exec alacritty "$@" - '') - ]; - }; -} diff --git a/modules/i3/i3srs.toml b/modules/i3/i3srs.toml deleted file mode 100644 index fe82d2a..0000000 --- a/modules/i3/i3srs.toml +++ /dev/null @@ -1,35 +0,0 @@ -theme = "native" -icons = "awesome5" - -[[block]] -block = "disk_space" -path = "/nix/store" -alias = "/nix/store" -info_type = "available" -unit = "GB" -interval = 20 -warning = 20.0 -alert = 10.0 - -[[block]] -block = "memory" -display_type = "memory" -format_mem = "{mem_used_percents}" -format_swap = "{swap_used_percents}" - -[[block]] -block = "cpu" -interval = 5 - -[[block]] -block = "sound" -device_kind = "source" - -[[block]] -block = "sound" -device_kind = "sink" - -[[block]] -block = "time" -interval = 5 -format = "%a %m/%d %R" diff --git a/modules/i3/i3status.conf b/modules/i3/i3status.conf deleted file mode 100644 index 53abd17..0000000 --- a/modules/i3/i3status.conf +++ /dev/null @@ -1,21 +0,0 @@ -general { - colors = true - interval = 5 -} - -order += "battery all" -order += "volume master" -order += "tztime local" - -volume master { - format = "[♪ %volume]" -} - -battery all { - format = "[%status %percentage %remaining]" - format_down = "" -} - -tztime local { - format = "[%m/%d] [%H:%M:%S]" -}