Skip to content
Snippets Groups Projects
Verified Commit 36e10eb8 authored by Andreas Gerlach's avatar Andreas Gerlach
Browse files

[sway] working version of autostart help overlay

parent 8b16aa6b
No related branches found
No related tags found
No related merge requests found
......@@ -18,3 +18,4 @@ exec --no-startup-id pamac-tray-appindicator
exec --no-startup-id nm-applet --indicator
exec --no-startup-id blueman-applet
exec --no-startup-id mntray
exec --no-startup-id swhelp.sh
......@@ -20,7 +20,7 @@ set $term termite
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $appmenu wofi --show drun --conf /etc/xdg/wofi/config --style /etc/xdg/wofi/style.css --prompt "Application Launcher" | xargs swaymsg exec --
set $menu wofi --show run --conf /etc/xdg/wofi/config --style /etc/xdg/wofi/style.css --prompt "Run Command" | xargs swaymsg exec --
set $menu wofi --show run --conf /etc/xdg/wofi/config --style /etc/xdg/wofi/style.css --exec-search --prompt "Run Command" | xargs swaymsg exec --
set $selwin sws.sh --dmenu-cmd "wofi --conf /etc/xdg/wofi/config --style /etc/xdg/wofi/style.css --show dmenu" --format "%W | %A - %T"
set $help swhelp.sh
......
......@@ -6,7 +6,6 @@ height=200
font="Noto Sans 11"
text-color=#1B2224
background-color=#52CBB0
border-radius=5
icons=1
max-icon-size=48
markup=1
......
......@@ -4,6 +4,6 @@ allow_markup=true
no_actions=true
hide_scroll=true
hide_search=true
lines=10
lines=12
term=termite
width=300
......@@ -18,7 +18,8 @@ if [[ $CONNECTION_STATUS -ne 0 ]]; then
exit 1
fi
set -e
set -e # error if a command as non 0 exit
set -u # error if undefined variable
# message functions
msg() {
......
......@@ -12,7 +12,8 @@ if [[ $IMAGE_STATUS -ne 0 ]]; then
exit 1
fi
set -e
set -e # error if a command as non 0 exit
set -u # error if undefined variable
if [[ ! -d $HOME/.local/share/chromium_widevine ]]; then
mkdir -p $HOME/.local/share/chromium_widevine
......
#!/bin/sh
#!/bin/bash
# Quick and hacky implementation of an help overlay using wofi
#
# Author: Appelgriebsch
# License: MIT
set -e # error if a command as non 0 exit
set -u # error if undefined variable
if [ -f $HOME/.swhelp_overlay ]; then exit 1; fi
DMENU_OPT="--conf /etc/xdg/wofi/overlay --style /etc/xdg/wofi/style.css --location 7 --xoffset 10 --yoffset -10"
spawn_help_overlay() {
cat <<EOF | wofi --show dmenu $DMENU_OPT
<b>Manjaro ARM Sway Edition</b>
Default Modifier: <b>Alt</b>
New Terminal: <b>\$mod</b> + <b>Enter</b>
Application Launcher: <b>\$mod</b> + <b>d</b>
Command Runner: <b>\$mod</b> + <b>Shift</b> + <b>d</b>
Window Switcher: <b>\$mod</b> + <b>Ctrl</b> + <b>d</b>
Resize Mode: <b>\$mod</b> + <b>r</b>
Screenshot Mode: <b>\$mod</b> + <b>Shift</b> + <b>s</b>
Recording Mode: <b>\$mod</b> + <b>Shift</b> + <b>r</b>
<b>Manjaro ARM Sway Edition</b>
Default Modifier: <b>Alt</b>
New Terminal: <b>\$mod</b> + <b>Enter</b>
Application Launcher: <b>\$mod</b> + <b>d</b>
Command Runner: <b>\$mod</b> + <b>Shift</b> + <b>d</b>
Window Switcher: <b>\$mod</b> + <b>Ctrl</b> + <b>d</b>
Resize Mode: <b>\$mod</b> + <b>r</b>
Screenshot Mode: <b>\$mod</b> + <b>Shift</b> + <b>s</b>
Recording Mode: <b>\$mod</b> + <b>Shift</b> + <b>r</b>
Open Help Overlay: <b>\$mod</b> + <b>?</b>
Close Help Overlay: <b>Escape</b>
EOF
if [ -f $HOME/.swhelp_overlay ]; then rm $HOME/.swhelp_overlay; fi
}
touch $HOME/.swhelp_overlay
spawn_help_overlay &
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment