Skip to content

Commit e85f3f1

Browse files
committed
oboro => [swhkdrc][projects.spell][ssh-menu.spell]
1 parent 4cf8b00 commit e85f3f1

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

runes/swhkd/swhkdrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ super + s
2828
super + p
2929
projects
3030

31+
super + shift + p
32+
projects ~/worktrees
33+
3134
super + F9
3235
changeMeWall
3336

@@ -95,12 +98,9 @@ super + x
9598
--option window.dimensions.lines=25 \
9699
--class floating-terminal \
97100
-e bash -c 'echo -e "\e[1m\t\t C A L E N D A R\e[0m" ;\
98-
khal calendar -o 2>/dev/null ;\
101+
khal calendar $(date +"1/%m/%Y") $(date --date="6 months" +"1/%m/%Y") -o -d "Contact birthdays" 2>/dev/null ;\
99102
read -s -r -n 1'
100103

101-
super + shift + p
102-
playClipboard
103-
104104
XF86AudioMute
105105
pactl 'set-sink-mute' @DEFAULT_SINK@ toggle
106106

spells/projects.spell

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ expand_categories() {
1818
done
1919
}
2020

21+
root=$(realpath ${1:-~/projects})
22+
2123
dir=$(
22-
find_at ~/projects |
24+
find_at "$root" |
2325
expand_categories |
2426
sort -nr |
2527
cut -f2 |
26-
sed "s|$HOME/projects/||" |
28+
sed "s|$root/||" |
2729
picker -l 50 -i -p project
2830
)
29-
[ "$dir" ] && exec $TERMINAL --working-directory "$HOME/projects/$dir"
31+
[ "$dir" ] && exec $TERMINAL --working-directory "$root/$dir"

spells/ssh-menu.spell

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ host=$(
1919
[ -z "$host" ] && exit
2020

2121

22-
if grep "$host" <<<$spark_hosts; then
22+
if grep "^$host$" <<<$spark_hosts; then
2323
alacritty --class 'floating-term' -e bash -c "spark ssh $host && exit" --hold
2424
else
2525
alacritty --class 'floating-term' -e bash -c "ssh $host && exit" --hold

0 commit comments

Comments
 (0)