Skip to content

Commit

Permalink
upate configs
Browse files Browse the repository at this point in the history
  • Loading branch information
beaussan committed Feb 22, 2023
1 parent 44270b3 commit 4ff00c8
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion general/espanso/match/spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ matches:
- trigger: wordpress
replace: WordPress
- trigger: gcp
replace: GCP
replace: GCP
3 changes: 3 additions & 0 deletions general/i3config
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ bindsym $mod+h exec .config/rofi/launcher/i3-keybindings.sh
# Layout easy switcher
bindsym $mod+u exec .config/rofi/launcher/i3-layout.sh

# Work log appender
bindsym $mod+i exec .config/rofi/launcher/vaultInserter.sh

# Lock screen
bindsym $mod+L exec ~/scripts/lock.sh

Expand Down
31 changes: 31 additions & 0 deletions general/rofi/launcher/vaultInserter.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env bash

source $HOME/.obsEnv


dir="$HOME/.config/rofi/launcher"
theme='style-single'



newValue=$(rofi -theme ${dir}/${theme}.rasi \
-dmenu \
-theme-str 'listview { enabled: false;}' -lines 0 -p 'What did you do : ')


if [[ -z "$newValue" ]]; then
exit 0
fi

echo $newValue


curl -X 'PATCH' \
'http://127.0.0.1:27123/periodic/daily/' \
-H 'accept: */*' \
-H 'Heading: Work log' \
-H 'Content-Insertion-Position: end' \
-H 'Heading-Boundary: ::' \
-H "Authorization: Bearer $OBSIDIAN_TOKEN" \
-H 'Content-Type: text/markdown' \
-d "* $newValue" > /dev/null
2 changes: 1 addition & 1 deletion general/scripts/init_workspace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ workspace7="7:"
apps=(
"telegram-desktop"
"obsidian"
"google-chrome-stable"
"alacritty"
"slack"
)

Expand Down

0 comments on commit 4ff00c8

Please sign in to comment.