From 2f2eefddcee19d4f07e1cc8c1d6858421fa5af36 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 4 Mar 2025 19:59:51 -0500 Subject: [PATCH] Created a fake panel. It's technically an 11th workspace, but programs that need to be opened but don't often need interaction are automatically sent there. Use control+alt+tab to access the panel. --- i38.sh | 13 +++++++++++-- panel.conf | 2 ++ scripts/announce_workspace.sh | 5 +++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 panel.conf diff --git a/i38.sh b/i38.sh index c59f99b..76ab6f0 100755 --- a/i38.sh +++ b/i38.sh @@ -539,6 +539,9 @@ bindsym Control+F8 workspace number \$ws8, exec --no-startup-id ${i3Path}/script bindsym Control+F9 workspace number \$ws9, exec --no-startup-id ${i3Path}/scripts/announce_workspace.sh bindsym Control+F10 workspace number \$ws10, exec --no-startup-id ${i3Path}/scripts/announce_workspace.sh +# This is sort of a fake panel where some useful but seldom interacted with applications can live. +bindsym Control+Mod1+Tab workspace number 11, exec --no-startup-id ${i3Path}/scripts/announce_workspace.sh + # move focused container to workspace bindsym Control+Shift+F1 move container to workspace number \$ws1, exec spd-say -P important -Cw "moved to workspace 1" bindsym Control+Shift+F2 move container to workspace number \$ws2, exec spd-say -P important -Cw "moved to workspace 2" @@ -722,13 +725,19 @@ fi) # First run help documentation exec --no-startup-id bash -c 'if [[ -f "${i3Path}/firstrun" ]]; then ${webBrowser} "${i3Path}/I38.html"& rm "${i3Path}/firstrun"; fi' +# Fake panel setup +exec --no-startup-id i3-msg 'workspace 11; workspace 1' + # If you want to add personal customizations to i3, add them in ${i3Path}/customizations -# It is not overwritten with the config file is recreated. +# It is not overwritten when the config file is recreated. include "${i3Path}/customizations" +# Applications that will be placed in workspace 11, which we use as a sort of fake panel. + include "${i3Path}/panel.conf" EOF touch "${i3Path}/customizations" +cp -v panel.conf "${i3Path}/panel.conf" # Move html help file to destination -cp I38.html "${i3Path}/I38.html" +cp -v I38.html "${i3Path}/I38.html" # More readable version of variables. escapeKey="${escapeKey//Mod1/Alt}" diff --git a/panel.conf b/panel.conf new file mode 100644 index 0000000..95bdcfa --- /dev/null +++ b/panel.conf @@ -0,0 +1,2 @@ +assign [class="Solaar"] workspace number 11 +assign [class="qjoypad"] workspace number 11 diff --git a/scripts/announce_workspace.sh b/scripts/announce_workspace.sh index ae825b5..e73ad48 100755 --- a/scripts/announce_workspace.sh +++ b/scripts/announce_workspace.sh @@ -26,6 +26,11 @@ fi left=9 right=0 msg="Workspace ${workSpace}" +if [[ "${workSpace}" == "11" ]]; then + play -qnV0 synth 1.5 pl A4 pl E5 pl C5 delay 0.0 0.1 0.2 remix - fade p 0 1.5 .5 + spd-say -P important -Cw "I38 panel" + exit 0 +fi if ! [[ "${workSpace}" =~ ^[0-9]+$ ]]; then right=9 else