thelio76: stuff
This commit is contained in:
parent
6bbb9333cc
commit
aa8c5b83e7
|
@ -1,17 +1,17 @@
|
||||||
# shellcheck disable=SC2148
|
# shellcheck disable=SC2148
|
||||||
function nxinit() {
|
function nxinit() {
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
if [ ! -f ".envrc" ]; then
|
if [ ! -f ".envrc" ]; then
|
||||||
cat >.envrc <<EOL
|
cat >.envrc <<EOL
|
||||||
use flake
|
use flake
|
||||||
EOL
|
EOL
|
||||||
else
|
else
|
||||||
echo ".envrc already exists, ignoring..."
|
echo ".envrc already exists, ignoring..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "flake.nix" ]; then
|
if [ ! -f "flake.nix" ]; then
|
||||||
cat >flake.nix <<EOL
|
cat >flake.nix <<EOL
|
||||||
{
|
{
|
||||||
description = "Flake based shell for the current project";
|
description = "Flake based shell for the current project";
|
||||||
|
|
||||||
|
@ -39,11 +39,11 @@ EOL
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
EOL
|
EOL
|
||||||
else
|
else
|
||||||
echo "flake.nix already exists, ignoring..."
|
echo "flake.nix already exists, ignoring..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q .direnv .gitignore; then
|
if ! grep -q .direnv .gitignore; then
|
||||||
echo ".direnv" >>.gitignore
|
echo ".direnv" >>.gitignore
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,10 +3,12 @@
|
||||||
services.sxhkd = {
|
services.sxhkd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
|
# the window-command might not work...
|
||||||
"super + space" = ''
|
"super + space" = ''
|
||||||
rofi -show-icons \
|
rofi -show-icons \
|
||||||
-show combi -modes combi \
|
-show combi -modes combi \
|
||||||
-combi-modes "window,drun,run" \
|
-combi-modes "window,drun,run" \
|
||||||
|
-window-command "bspc node -s {window} || bspc node {window} -d focused" \
|
||||||
-monitor $(bspc query --monitors -m focused --names)
|
-monitor $(bspc query --monitors -m focused --names)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -68,6 +70,9 @@
|
||||||
"super + {_,shift + }{1-9,0}" =
|
"super + {_,shift + }{1-9,0}" =
|
||||||
"bspc {desktop -f,node -d} '^{1-9,10}'";
|
"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
|
# move/resize
|
||||||
#
|
#
|
||||||
|
|
|
@ -61,6 +61,7 @@
|
||||||
picard
|
picard
|
||||||
rawtherapee
|
rawtherapee
|
||||||
rofi
|
rofi
|
||||||
|
scribus
|
||||||
spotify
|
spotify
|
||||||
sqlitebrowser
|
sqlitebrowser
|
||||||
steam
|
steam
|
||||||
|
|
Loading…
Reference in New Issue