From 3d359ebef47aeff54dfce2641900eca57bbdff3f Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Tue, 19 Sep 2023 12:17:46 +0200 Subject: [PATCH] fix i3 and removed /removable --- nixos/components/gui/home-manager/i3.nix | 16 ++++++++++++++++ nixos/machines/cream/hardware-configuration.nix | 10 +++++----- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/nixos/components/gui/home-manager/i3.nix b/nixos/components/gui/home-manager/i3.nix index 53fca44..ced82a0 100644 --- a/nixos/components/gui/home-manager/i3.nix +++ b/nixos/components/gui/home-manager/i3.nix @@ -232,6 +232,22 @@ in in "exec ${script}"; + "${cfg.config.modifier}+Shift+grave" = + let + script = pkgs.writers.writeBash "move-workspace" '' + set -e + set -o pipefail + ${pkgs.i3}/bin/i3-msg -t get_workspaces | \ + ${pkgs.jq}/bin/jq --raw-output '.[] | .name' | \ + ${pkgs.rofi}/bin/rofi -dmenu -p 'Select Workspace' | \ + while read line + do + ${pkgs.i3}/bin/i3-msg move container to workspace "$line" + done + ''; + in + "exec ${script}"; + "${cfg.config.modifier}+Shift+c" = "reload"; "${cfg.config.modifier}+Shift+r" = "restart"; "${cfg.config.modifier}+Shift+e" = "exec i3-nagbar -t warning -m 'Do you want to exit i3?' -b 'Yes' 'i3-msg exit'"; diff --git a/nixos/machines/cream/hardware-configuration.nix b/nixos/machines/cream/hardware-configuration.nix index 1f937f2..54311ce 100644 --- a/nixos/machines/cream/hardware-configuration.nix +++ b/nixos/machines/cream/hardware-configuration.nix @@ -44,11 +44,11 @@ fsType = "ext4"; }; - fileSystems."/removable" = - { - device = "/dev/disk/by-uuid/081de08c-b080-4a05-9915-235caae193e7"; - fsType = "ext4"; - }; + #fileSystems."/removable" = + # { + # device = "/dev/disk/by-uuid/081de08c-b080-4a05-9915-235caae193e7"; + # fsType = "ext4"; + # }; fileSystems."/share" = { device = "none";