From aa8c5b83e7840a1d8e6535b9adc1e282b137761e Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 23 Nov 2024 21:13:41 -0500 Subject: [PATCH] thelio76: stuff --- config/apps/bash/nxinit.sh | 28 ++++++++++++++-------------- config/modules/bspwm/sxhkd.nix | 5 +++++ config/users/alex/default.nix | 1 + 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/config/apps/bash/nxinit.sh b/config/apps/bash/nxinit.sh index 06a4ad8..4ce34f5 100644 --- a/config/apps/bash/nxinit.sh +++ b/config/apps/bash/nxinit.sh @@ -1,17 +1,17 @@ # shellcheck disable=SC2148 function nxinit() { - set -u + set -u - if [ ! -f ".envrc" ]; then - cat >.envrc <.envrc <flake.nix <flake.nix <>.gitignore - fi + if ! grep -q .direnv .gitignore; then + echo ".direnv" >>.gitignore + fi } diff --git a/config/modules/bspwm/sxhkd.nix b/config/modules/bspwm/sxhkd.nix index c83ecda..1f4bdf6 100644 --- a/config/modules/bspwm/sxhkd.nix +++ b/config/modules/bspwm/sxhkd.nix @@ -3,10 +3,12 @@ services.sxhkd = { enable = true; keybindings = { + # the window-command might not work... "super + space" = '' rofi -show-icons \ -show combi -modes combi \ -combi-modes "window,drun,run" \ + -window-command "bspc node -s {window} || bspc node {window} -d focused" \ -monitor $(bspc query --monitors -m focused --names) ''; @@ -68,6 +70,9 @@ "super + {_,shift + }{1-9,0}" = "bspc {desktop -f,node -d} '^{1-9,10}'"; + # swap desktop on current monitor with desktop on the next monitor + "super + shift + s" = "bspc monitor -f next && bspc desktop -s last"; + # # move/resize # diff --git a/config/users/alex/default.nix b/config/users/alex/default.nix index f49b13a..d1f0131 100644 --- a/config/users/alex/default.nix +++ b/config/users/alex/default.nix @@ -61,6 +61,7 @@ picard rawtherapee rofi + scribus spotify sqlitebrowser steam