thelio76: stuff

This commit is contained in:
Alex 2024-11-23 21:13:41 -05:00
parent 6bbb9333cc
commit aa8c5b83e7
3 changed files with 20 additions and 14 deletions

View File

@ -1,17 +1,17 @@
# shellcheck disable=SC2148
function nxinit() {
set -u
set -u
if [ ! -f ".envrc" ]; then
cat >.envrc <<EOL
if [ ! -f ".envrc" ]; then
cat >.envrc <<EOL
use flake
EOL
else
echo ".envrc already exists, ignoring..."
fi
else
echo ".envrc already exists, ignoring..."
fi
if [ ! -f "flake.nix" ]; then
cat >flake.nix <<EOL
if [ ! -f "flake.nix" ]; then
cat >flake.nix <<EOL
{
description = "Flake based shell for the current project";
@ -39,11 +39,11 @@ EOL
});
}
EOL
else
echo "flake.nix already exists, ignoring..."
fi
else
echo "flake.nix already exists, ignoring..."
fi
if ! grep -q .direnv .gitignore; then
echo ".direnv" >>.gitignore
fi
if ! grep -q .direnv .gitignore; then
echo ".direnv" >>.gitignore
fi
}

View File

@ -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
#

View File

@ -61,6 +61,7 @@
picard
rawtherapee
rofi
scribus
spotify
sqlitebrowser
steam