Skip to content

Commit b7762a7

Browse files
committed
fixed terminal opening
1 parent be510c2 commit b7762a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ There is an [ebuild](https://github.com/SabbathHex/nitratesky/blob/master/x11-mi
3737
* `battery` — displays battery status. Requires battery number as the argument
3838
* `clock` — the clock
3939
* `cpu_temp` — cpu temp, requires an argument (see below)
40-
* `config_repo_status` — I keep my `${HOME}/.config` as a git repository and if something is changed there and is not commited, this block appears on i3blocks bar.
40+
* `config_repo_status` — I keep my `${HOME}/.config` as a git repository and if something is changed there and is not commited, this block appears on i3blocks bar. If clicked, it opens up `$TERMINAL` at the repo location.
4141
* `current_language` — shows the current language using `xkblayout-state`
4242
* `headset_ctl` — shows battery status for [compatible headphones](https://github.com/Sapd/HeadsetControl).
4343
* `internet` — shows WiFi signal strength

i3blocks/config_repo_status

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
repo_path="${HOME}/.config"
44

55
case $BLOCK_BUTTON in
6-
1) setsid "$TERMINAL" -e "cd ${repo_path}";;
6+
1) python -c "import subprocess; subprocess.run('$TERMINAL', cwd='$repo_path')";;
77
esac
88

99
if ! git --work-tree="${repo_path}" --git-dir="${repo_path}"/.git diff-index --quiet HEAD --; then

0 commit comments

Comments
 (0)