diff --git a/.config/i3/config b/.config/i3/config index 4e440fb..76f385b 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -1,3 +1,5 @@ + +exec --no-startup-id ~/set_once.sh # This file is a modified version based on default i3-config-wizard config # source is available here: # https://raw.githubusercontent.com/endeavouros-team/endeavouros-i3wm-setup/master/.config/i3/config diff --git a/.config/i3/scripts/keyhint.sh b/.config/i3/scripts/keyhint.sh index 5ec43d7..ce34f64 100644 --- a/.config/i3/scripts/keyhint.sh +++ b/.config/i3/scripts/keyhint.sh @@ -1,2 +1,24 @@ -#!/bin/sh -yad --title="EndeavourOS i3-wm keybindings:" --no-buttons --geometry=400x345-15-400 --list --column=key: --column=description: --column=command: "ESC" "close this app" "" "=" "modkey" "(set mod Mod4)" "+enter" "open a terminal" "" "+w" "open Browser" "" "+n" "open Filebrowser" "" "F9" "app menu" "(rofi)" "+c" "close focused app" "(kill)" "Print-key" "screenshot" "(scrot)" "+Shift+e" "logout menu" "(rofi)" "+F1" "open keybinding helper" "full list" +#!/bin/bash + +Main() { + source /usr/share/endeavouros/scripts/eos-script-lib-yad || return 1 + + local command=( + eos_yad --title="EndeavourOS i3-wm keybindings:" --no-buttons --geometry=400x345-15-400 --list + --column=key: --column=description: --column=command: + "ESC" "close this app" "" + "=" "modkey" "(set mod Mod4)" + "+enter" "open a terminal" "" + "+w" "open Browser" "" + "+n" "open Filebrowser" "" + "F9" "app menu" "(rofi)" + "+c" "close focused app" "(kill)" + "Print-key" "screenshot" "(scrot)" + "+Shift+e" "logout menu" "(rofi)" + "+F1" "open keybinding helper" "full list" + ) + + "${command[@]}" +} + +Main "$@" diff --git a/set_once.sh b/set_once.sh new file mode 100644 index 0000000..e017772 --- /dev/null +++ b/set_once.sh @@ -0,0 +1,6 @@ +#!/bin/bash +dbus-launch dconf load / < ~/xed.dconf +chmod -R +x ~/.config/i3/scripts +sed -i 's|\(exec --no-startup-id ~/set_once.sh\)|# \1|' ~/.config/i3/config +rm ~/xed.dconf +rm ~/set_once.sh diff --git a/setup.sh b/setup.sh index 3b653c3..d72cf16 100644 --- a/setup.sh +++ b/setup.sh @@ -1,4 +1,4 @@ -#bin/bash +#!/bin/bash if [ -f /tmp/new_username.txt ] then