From a8c5cc997bc635b24ba2dbcbe95033a53e277af2 Mon Sep 17 00:00:00 2001 From: zoe Date: Sun, 19 Mar 2023 18:22:35 +0100 Subject: [PATCH] add rofi script for selecting tiling mode --- flake.nix | 2 ++ i3/config.nix | 18 +----------------- user.nix | 3 ++- 3 files changed, 5 insertions(+), 18 deletions(-) diff --git a/flake.nix b/flake.nix index e20b108..3e6dc55 100644 --- a/flake.nix +++ b/flake.nix @@ -5,6 +5,7 @@ # hyprland.url = "github:hyprwm/Hyprland"; supercolor.url = github:zoe-bat/supercolor; kaokao.url = github:zoe-bat/kaokao; + i3layouts-rofi.url = github:zoe-bat/i3layouts-rofi; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; @@ -16,6 +17,7 @@ # , hyprland , home-manager , supercolor + , i3layouts-rofi , nixpkgs-unstable , kaokao }@inputs: diff --git a/i3/config.nix b/i3/config.nix index 50e9cbf..c232d2b 100644 --- a/i3/config.nix +++ b/i3/config.nix @@ -74,23 +74,7 @@ in ## workspaces "${mod}+Tab" = "workspace next"; - - # extra keys - ## audio - "XF86AudioMute" = "exec amixer set Master toggle"; - "XF86AudioUnmute" = "exec amixer set Master toggle"; - "XF86AudioMicMute" = "exec amixer set Capture toggle"; - "XF86AudioMicUnmute" = "exec amixer set Capture toggle"; - - ## brightness - "XF86MonBrightnessUp" = "exec /etc/nixos/i3/brightness.py 100+"; - "XF86MonBrightnessDown" = "exec /etc/nixos/i3/brightness.py 100-"; - - ## display - "XF86Display" = "exec arandr"; - - ## wifi - "XF86WLAN" = "exec rfkill toggle wifi"; + "${mod}+q" = "exec i3layouts-rofi"; ## tablet to next screen "${mod}+p" = "exec xsetwacom set 'Wacom Intuos S 2 Pen stylus' MapToOutput next"; diff --git a/user.nix b/user.nix index 8d38852..f26581b 100644 --- a/user.nix +++ b/user.nix @@ -1,4 +1,4 @@ -{ pkgs, users, config, inputs, supercolor, kaokao, ... }: +{ pkgs, users, config, inputs, supercolor, kaokao, i3layouts-rofi, ... }: let my-python-packages = p: with p; [ i3ipc @@ -92,6 +92,7 @@ in arandr lxappearance wacomtablet + i3layouts-rofi.packages.${pkgs.system}.default # terminal kitty