more config files
This commit is contained in:
parent
1b28ec5ec1
commit
1a25393183
22 changed files with 3628 additions and 1 deletions
10
private_dot_config/sway/scripts/executable_btn_extra.sh
Normal file
10
private_dot_config/sway/scripts/executable_btn_extra.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
running_app=$(swaymsg -t get_tree | jq -r 'recurse(.nodes[]?) | select(.focused==true) | .app_id')
|
||||
|
||||
if [ "$running_app" = "anki" ]; then
|
||||
echo "kitty open found 😇"
|
||||
else
|
||||
echo "no kitty 😿"
|
||||
echo "but ${running_app}"
|
||||
fi
|
14
private_dot_config/sway/scripts/executable_terminal.sh
Normal file
14
private_dot_config/sway/scripts/executable_terminal.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
focused_workspace=$(swaymsg -t get_workspaces | jq '.[] | select(.focused == true) | .num')
|
||||
|
||||
kitty_window_count=$(swaymsg -t get_tree | jq --argjson workspace $focused_workspace '[recurse(.nodes[]?) | select(.type == "workspace" and .num == $workspace) | recurse(.nodes[]?) | select(.app_id == "kitty")] | length')
|
||||
|
||||
next_session=$((focused_workspace * 10))
|
||||
|
||||
if [ $kitty_window_count -gt 0 ]
|
||||
then
|
||||
next_session=$((next_session + kitty_window_count))
|
||||
fi
|
||||
|
||||
kitty tmux new-session -A -s ${next_session}
|
5
private_dot_config/sway/scripts/executable_youtube.sh
Normal file
5
private_dot_config/sway/scripts/executable_youtube.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
url=$(wl-paste)
|
||||
notify-send "fetching video: ${url}"
|
||||
mpv --really-quiet $url > /dev/null 2>&1 &
|
Loading…
Add table
Add a link
Reference in a new issue