Start re-using i3 scripts and rofi config
This commit is contained in:
parent
d6a66e17fe
commit
797c660b0d
5
Makefile
5
Makefile
|
@ -24,13 +24,12 @@ directories: $(CONFIG_DIR) $(SSH_DIR)
|
||||||
$(CONFIG_DIR) $(SSH_DIR):
|
$(CONFIG_DIR) $(SSH_DIR):
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
link: $(CONFIG_TARGETS) $(SSH_DIR)/config.d $(HOME)/.inputrc $(HOME)/.i3_scripts
|
link: $(CONFIG_TARGETS) $(SSH_DIR)/config.d $(HOME)/.inputrc
|
||||||
|
|
||||||
$(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/%
|
$(CONFIG_TARGETS): $(CONFIG_DIR)/%: config/%
|
||||||
$(SSH_DIR)/config.d: $(SSH_DIR)/%: ssh/%
|
$(SSH_DIR)/config.d: $(SSH_DIR)/%: ssh/%
|
||||||
$(HOME)/.inputrc: $(HOME)/%: %
|
$(HOME)/.inputrc: $(HOME)/%: %
|
||||||
$(HOME)/.i3_scripts: $(HOME)/.%: %
|
$(CONFIG_TARGETS) $(SSH_DIR)/config.d $(HOME)/.inputrc:
|
||||||
$(CONFIG_TARGETS) $(SSH_DIR)/config.d $(HOME)/.inputrc $(HOME)/.i3_scripts:
|
|
||||||
ln -s $(PWD)/$? $@
|
ln -s $(PWD)/$? $@
|
||||||
|
|
||||||
install: $(LAZY_DIR)
|
install: $(LAZY_DIR)
|
||||||
|
|
|
@ -46,7 +46,7 @@ BORDER_COLOR="#222222"
|
||||||
#ROFI_TEXT=":"
|
#ROFI_TEXT=":"
|
||||||
#ROFI_OPTIONS=(-width -11 -location 0 -hide-scrollbar -bw 30 -color-window "#dd310027,#dd0310027,#dd310027" -padding 5)
|
#ROFI_OPTIONS=(-width -11 -location 0 -hide-scrollbar -bw 30 -color-window "#dd310027,#dd0310027,#dd310027" -padding 5)
|
||||||
#ROFI_OPTIONS=(-width -18 -location 4 -hide-scrollbar -color-window "#cc310027,#00a0009a,#cc310027" -padding 5 -font "Sourcecode Pro Regular 10, FontAwesome 9")
|
#ROFI_OPTIONS=(-width -18 -location 4 -hide-scrollbar -color-window "#cc310027,#00a0009a,#cc310027" -padding 5 -font "Sourcecode Pro Regular 10, FontAwesome 9")
|
||||||
ROFI_OPTIONS=(-theme ~/.config/rofi/power-profiles.rasi)
|
ROFI_OPTIONS=(-theme ~/.dotfiles/rofi/power-profiles.rasi)
|
||||||
# Zenity options
|
# Zenity options
|
||||||
ZENITY_TITLE="Power Profiles"
|
ZENITY_TITLE="Power Profiles"
|
||||||
ZENITY_TEXT="Set Profiles:"
|
ZENITY_TEXT="Set Profiles:"
|
||||||
|
@ -71,7 +71,6 @@ where:
|
||||||
|
|
||||||
This script depends on:
|
This script depends on:
|
||||||
- systemd,
|
- systemd,
|
||||||
- i3,
|
|
||||||
- rofi or zenity."
|
- rofi or zenity."
|
||||||
|
|
||||||
# Check whether the user-defined launcher is valid
|
# Check whether the user-defined launcher is valid
|
||||||
|
@ -176,7 +175,7 @@ function ask_confirmation() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${confirmed}" == 0 ]; then
|
if [ "${confirmed}" == 0 ]; then
|
||||||
i3-msg -q "exec --no-startup-id ${menu[${selection}]}"
|
"${menu[${selection}]}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,6 +184,6 @@ if [[ $? -eq 0 && ! -z ${selection} ]]; then
|
||||||
${menu_confirm} =~ (^|[[:space:]])"${selection}"($|[[:space:]]) ]]; then
|
${menu_confirm} =~ (^|[[:space:]])"${selection}"($|[[:space:]]) ]]; then
|
||||||
ask_confirmation
|
ask_confirmation
|
||||||
else
|
else
|
||||||
i3-msg -q "exec --no-startup-id ${menu[${selection}]}"
|
"${menu[${selection}]}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
|
@ -39,7 +39,7 @@ HLBG_COLOR="#bbbbbb"
|
||||||
BORDER_COLOR="#222222"
|
BORDER_COLOR="#222222"
|
||||||
|
|
||||||
# Options not related to colors (most rofi options do not work anymore)
|
# Options not related to colors (most rofi options do not work anymore)
|
||||||
ROFI_OPTIONS=(-theme ~/.config/rofi/powermenu.rasi)
|
ROFI_OPTIONS=(-theme ~/.dotfiles/rofi/powermenu.rasi)
|
||||||
# Zenity options
|
# Zenity options
|
||||||
ZENITY_TITLE="Power Menu"
|
ZENITY_TITLE="Power Menu"
|
||||||
ZENITY_TEXT="Action:"
|
ZENITY_TEXT="Action:"
|
||||||
|
@ -64,7 +64,6 @@ where:
|
||||||
|
|
||||||
This script depends on:
|
This script depends on:
|
||||||
- systemd,
|
- systemd,
|
||||||
- i3,
|
|
||||||
- rofi or zenity."
|
- rofi or zenity."
|
||||||
|
|
||||||
# Check whether the user-defined launcher is valid
|
# Check whether the user-defined launcher is valid
|
||||||
|
@ -118,8 +117,8 @@ menu=(
|
||||||
[ Reboot]="systemctl reboot"
|
[ Reboot]="systemctl reboot"
|
||||||
[ Suspend]="systemctl suspend"
|
[ Suspend]="systemctl suspend"
|
||||||
[ Hibernate]="systemctl hibernate"
|
[ Hibernate]="systemctl hibernate"
|
||||||
[ Lock]="~/.config/i3/scripts/blur-lock"
|
[ Lock]="xflock"
|
||||||
[ Logout]="i3-msg exit"
|
[ Logout]="xfce4-session-logout"
|
||||||
[ Cancel]=""
|
[ Cancel]=""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -172,7 +171,7 @@ function ask_confirmation() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${confirmed}" == 0 ]; then
|
if [ "${confirmed}" == 0 ]; then
|
||||||
i3-msg -q "exec --no-startup-id ${menu[${selection}]}"
|
"${menu[${selection}]}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,6 +180,6 @@ if [[ $? -eq 0 && ! -z ${selection} ]]; then
|
||||||
${menu_confirm} =~ (^|[[:space:]])"${selection}"($|[[:space:]]) ]]; then
|
${menu_confirm} =~ (^|[[:space:]])"${selection}"($|[[:space:]]) ]]; then
|
||||||
ask_confirmation
|
ask_confirmation
|
||||||
else
|
else
|
||||||
i3-msg -q "exec --no-startup-id ${menu[${selection}]}"
|
"${menu[${selection}]}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
Loading…
Reference in a new issue