thelio76: stuff
This commit is contained in:
parent
6bbb9333cc
commit
aa8c5b83e7
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
picard
|
||||
rawtherapee
|
||||
rofi
|
||||
scribus
|
||||
spotify
|
||||
sqlitebrowser
|
||||
steam
|
||||
|
|
Loading…
Reference in New Issue