mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
move flake to own repository
This commit is contained in:
commit
84b5cd816c
55 changed files with 13637 additions and 0 deletions
27
scripts/checkconfigstatus.sh
Executable file
27
scripts/checkconfigstatus.sh
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
# CFG=$(git --git-dir=$HOME/.cfg/ --work-tree=$HOME diff --numstat | wc -l)
|
||||
CFG=$(git --git-dir=$HOME/.cfg/ --work-tree=$HOME status -s | wc -l)
|
||||
CSE=$(git --git-dir=$HOME/Documents/GitHub/CSE_TUWIEN/.git --work-tree=$HOME/Documents/GitHub/CSE_TUWIEN/ status -s | wc -l)
|
||||
PASS=$(git --git-dir=$HOME/.local/share/password-store/.git --work-tree=$HOME/.local/share/password-store/ status -s | wc -l)
|
||||
|
||||
if [ $CFG != 0 ]; then
|
||||
CFG_STR='CONFIG'
|
||||
else
|
||||
CFG_STR=''
|
||||
fi
|
||||
|
||||
if [ $CSE != 0 ]; then
|
||||
CSE_STR=' CSE'
|
||||
else
|
||||
CSE_STR=''
|
||||
fi
|
||||
|
||||
if [ $PASS != 0 ]; then
|
||||
PASS_STR=' PASS'
|
||||
else
|
||||
PASS_STR=''
|
||||
fi
|
||||
|
||||
OUT="$CFG_STR""$CSE_STR""$PASS_STR"
|
||||
echo "$OUT"
|
||||
10
scripts/checkdiscord.sh
Executable file
10
scripts/checkdiscord.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
STR=$(swaymsg -t get_tree | grep discord)
|
||||
if [ "$STR" == "" ]; then
|
||||
exec discord
|
||||
#exec swaymsg '[class=discord]' move container to scratchpad; scratchpad show
|
||||
else
|
||||
exec swaymsg '[app_id=discord]' kill
|
||||
fi
|
||||
exit 0
|
||||
12
scripts/checkgomuks.sh
Executable file
12
scripts/checkgomuks.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
STR=$(swaymsg -t get_tree | jq -r 'recurse(.nodes[]) | select(.name == "__i3_scratch")' | grep gomuksterm)
|
||||
CHECK=$(swaymsg -t get_tree | grep gomuksterm)
|
||||
if [ "$CHECK" == "" ]; then
|
||||
exec kitty -T gomuksterm -o confirm_os_window_close=0 gomuks & sleep 1
|
||||
fi
|
||||
if [ "$STR" == "" ]; then
|
||||
exec swaymsg '[title="gomuksterm"]' scratchpad show
|
||||
else
|
||||
exec swaymsg '[title="gomuksterm"]' scratchpad show
|
||||
fi
|
||||
exit 0
|
||||
13
scripts/checkkitty.sh
Executable file
13
scripts/checkkitty.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
STR=$(swaymsg -t get_tree | jq -r 'recurse(.nodes[]) | select(.name == "__i3_scratch")' | grep kittyterm)
|
||||
CHECK=$(swaymsg -t get_tree | grep kittyterm)
|
||||
if [ "$CHECK" == "" ]; then
|
||||
exec kitty -T kittyterm & sleep 1
|
||||
fi
|
||||
if [ "$STR" == "" ]; then
|
||||
exec swaymsg '[title="kittyterm"]' scratchpad show
|
||||
else
|
||||
exec swaymsg '[title="kittyterm"]' scratchpad show
|
||||
fi
|
||||
exit 0
|
||||
10
scripts/checkschildi.sh
Executable file
10
scripts/checkschildi.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
STR=$(swaymsg -t get_tree | grep SchildiChat)
|
||||
if [ "$STR" == "" ]; then
|
||||
exec schildichat-desktop
|
||||
#exec swaymsg '[app_id=SchildiChat]' move container to scratchpad; scratchpad show
|
||||
else
|
||||
exec swaymsg '[app_id=SchildiChat]' kill
|
||||
fi
|
||||
exit 0
|
||||
7
scripts/checkspotify.sh
Executable file
7
scripts/checkspotify.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
# this is a crutch script that is to be used until spotify
|
||||
# properly sets an app_id upon launch
|
||||
swaymsg '[app_id="^$"]' scratchpad show
|
||||
# exec spotify
|
||||
10
scripts/checkspotify_actual.sh
Executable file
10
scripts/checkspotify_actual.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
STR=$(swaymsg -t get_tree | grep spotify)
|
||||
if [ "$STR" == "" ]; then
|
||||
exec spotify & sleep 2
|
||||
exec swaymsg '[class="Spotify"]' scratchpad show
|
||||
else
|
||||
exec swaymsg '[class="Spotify"]' scratchpad show
|
||||
fi
|
||||
exit 0
|
||||
12
scripts/checkspotifytui.sh
Executable file
12
scripts/checkspotifytui.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
STR=$(swaymsg -t get_tree | jq -r 'recurse(.nodes[]) | select(.name == "__i3_scratch")' | grep spotifytui)
|
||||
CHECK=$(swaymsg -t get_tree | grep spotifytui)
|
||||
if [ "$CHECK" == "" ]; then
|
||||
exec kitty -T spotifytui -o confirm_os_window_close=0 spt & sleep 1
|
||||
fi
|
||||
if [ "$STR" == "" ]; then
|
||||
exec swaymsg '[title="spotifytui"]' scratchpad show
|
||||
else
|
||||
exec swaymsg '[title="spotifytui"]' scratchpad show
|
||||
fi
|
||||
exit 0
|
||||
5
scripts/devShell/benchmark
Executable file
5
scripts/devShell/benchmark
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
rm -rf build
|
||||
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
|
||||
cmake --build build --target benchmark
|
||||
./build/benchmark/benchmark
|
||||
5
scripts/devShell/compile
Executable file
5
scripts/devShell/compile
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
rm -rf build
|
||||
cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug
|
||||
cmake --build build --target all
|
||||
ctest --test-dir build
|
||||
15
scripts/editor.sh
Executable file
15
scripts/editor.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
STR=$(swaymsg -t get_tree | jq -r 'recurse(.nodes[]) | select(.name == "__i3_scratch")' | grep kittyterm)
|
||||
if [ "$STR" == "" ]; then
|
||||
VAR="1"
|
||||
swaymsg '[title="kittyterm"]' scratchpad show
|
||||
else
|
||||
VAR="0"
|
||||
fi
|
||||
emacsclient -c -a "" "$@"
|
||||
if [ "$VAR" == "1" ]
|
||||
then
|
||||
swaymsg '[title="kittyterm"]' scratchpad show
|
||||
fi
|
||||
exit 0
|
||||
16
scripts/editor_nowait.sh
Executable file
16
scripts/editor_nowait.sh
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
STR=$(swaymsg -t get_tree | jq -r 'recurse(.nodes[]) | select(.name == "__i3_scratch")' | grep kittyterm)
|
||||
if [ "$STR" == "" ]; then
|
||||
VAR="1"
|
||||
swaymsg '[title="kittyterm"]' scratchpad show
|
||||
emacsclient -c -a "" "$@"
|
||||
else
|
||||
VAR="0"
|
||||
emacsclient -n -c -a "" "$@"
|
||||
fi
|
||||
if [ "$VAR" == "1" ]
|
||||
then
|
||||
swaymsg '[title="kittyterm"]' scratchpad show
|
||||
fi
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue