-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak i3 & rofi to be slightly more friendly
- Loading branch information
1 parent
fc4ab89
commit 81c47dd
Showing
6 changed files
with
24 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
dotfiles/private_bin/private_executable_rofi-i3-rename-workspace.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{- /* vim: set filetype=sh : */ -}} | ||
{{ if (and (eq .chezmoi.os "linux") (not .is_devcontainer)) -}} | ||
#!/usr/bin/env bash | ||
CURRENT_WS_NAME=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).name') | ||
NEW_WS_NAME=$(zenity --title="Rename: ${CURRENT_WS_NAME}" --text="New name:" --entry) | ||
if [ -z "$NEW_WS_NAME" ]; then | ||
zenity --error --text="This script needs a workspace name to function correctly" | ||
exit 1 | ||
fi | ||
i3-msg "rename workspace to \"${NEW_WS_NAME}\"" | ||
{{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
dotfiles/private_bin/private_executable_rofi-switch-workspaces.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.