More variations
This commit is contained in:
parent
4c7d47d76b
commit
6acd758d51
@ -17,8 +17,14 @@ _showRestoreOptions() {
|
|||||||
if [ -f ~/dotfiles/hypr/conf/keyboard.conf ]; then
|
if [ -f ~/dotfiles/hypr/conf/keyboard.conf ]; then
|
||||||
restorelist+="~/dotfiles/hypr/conf/keyboard.conf "
|
restorelist+="~/dotfiles/hypr/conf/keyboard.conf "
|
||||||
fi
|
fi
|
||||||
if [ -f ~/dotfiles/hypr/conf/keybindings.conf ]; then
|
if [ -f ~/dotfiles/hypr/conf/keybinding.conf ] && [ -d ~/dotfiles/hypr/conf/keybindings/ ]; then
|
||||||
restorelist+="~/dotfiles/hypr/conf/keybindings.conf "
|
restorelist+="~/dotfiles/hypr/conf/keybinding.conf "
|
||||||
|
fi
|
||||||
|
if [ -f ~/dotfiles/hypr/conf/environment.conf ] && [ -d ~/dotfiles/hypr/conf/environments/ ]; then
|
||||||
|
restorelist+="~/dotfiles/hypr/conf/environment.conf "
|
||||||
|
fi
|
||||||
|
if [ -f ~/dotfiles/hypr/conf/windowrule.conf ] && [ -d ~/dotfiles/hypr/conf/windowrules/ ]; then
|
||||||
|
restorelist+="~/dotfiles/hypr/conf/windowrule.conf "
|
||||||
fi
|
fi
|
||||||
if [ -f ~/dotfiles/hypr/conf/monitor.conf ] && [ -d ~/dotfiles/hypr/conf/monitors/ ]; then
|
if [ -f ~/dotfiles/hypr/conf/monitor.conf ] && [ -d ~/dotfiles/hypr/conf/monitors/ ]; then
|
||||||
restorelist+="~/dotfiles/hypr/conf/monitor.conf "
|
restorelist+="~/dotfiles/hypr/conf/monitor.conf "
|
||||||
@ -95,10 +101,22 @@ _startRestore() {
|
|||||||
echo "Hyprland monitor.conf restored!"
|
echo "Hyprland monitor.conf restored!"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ $restoreselect == *"~/dotfiles/hypr/conf/keybindings.conf"* ]] || [[ $restoreselect == *"All"* ]] ; then
|
if [[ $restoreselect == *"~/dotfiles/hypr/conf/keybinding.conf"* ]] || [[ $restoreselect == *"All"* ]] ; then
|
||||||
if [ -f ~/dotfiles/hypr/conf/keybindings.conf ]; then
|
if [ -f ~/dotfiles/hypr/conf/keybinding.conf ]; then
|
||||||
cp ~/dotfiles/hypr/conf/keybindings.conf ~/dotfiles-versions/$version/hypr/conf/
|
cp ~/dotfiles/hypr/conf/keybinding.conf ~/dotfiles-versions/$version/hypr/conf/
|
||||||
echo "Hyprland keybindings.conf restored!"
|
echo "Hyprland keybinding.conf restored!"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [[ $restoreselect == *"~/dotfiles/hypr/conf/environment.conf"* ]] || [[ $restoreselect == *"All"* ]] ; then
|
||||||
|
if [ -f ~/dotfiles/hypr/conf/environment.conf ]; then
|
||||||
|
cp ~/dotfiles/hypr/conf/environment.conf ~/dotfiles-versions/$version/hypr/conf/
|
||||||
|
echo "Hyprland environment.conf restored!"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [[ $restoreselect == *"~/dotfiles/hypr/conf/windowrule.conf"* ]] || [[ $restoreselect == *"All"* ]] ; then
|
||||||
|
if [ -f ~/dotfiles/hypr/conf/windowrule.conf ]; then
|
||||||
|
cp ~/dotfiles/hypr/conf/windowrule.conf ~/dotfiles-versions/$version/hypr/conf/
|
||||||
|
echo "Hyprland windowrule.conf restored!"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [[ $restoreselect == *"~/dotfiles/hypr/conf/animation.conf"* ]] || [[ $restoreselect == *"All"* ]] ; then
|
if [[ $restoreselect == *"~/dotfiles/hypr/conf/animation.conf"* ]] || [[ $restoreselect == *"All"* ]] ; then
|
||||||
|
@ -1,7 +1 @@
|
|||||||
# -----------------------------------------------------
|
source = ~/dotfiles/hypr/conf/environments/default.conf
|
||||||
# Environment Variables
|
|
||||||
# -----------------------------------------------------
|
|
||||||
|
|
||||||
env = XCURSOR_SIZE,24
|
|
||||||
env = QT_QPA_PLATFORM,wayland
|
|
||||||
env = GTK_THEME,Adwaita:dark
|
|
||||||
|
8
hypr/conf/environments/default.conf
Normal file
8
hypr/conf/environments/default.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# -----------------------------------------------------
|
||||||
|
# Environment Variables
|
||||||
|
# name: "Default"
|
||||||
|
# -----------------------------------------------------
|
||||||
|
|
||||||
|
env = XCURSOR_SIZE,24
|
||||||
|
env = QT_QPA_PLATFORM,wayland
|
||||||
|
env = GTK_THEME,Adwaita:dark
|
10
hypr/conf/environments/kvm.conf
Normal file
10
hypr/conf/environments/kvm.conf
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# -----------------------------------------------------
|
||||||
|
# Environment Variables
|
||||||
|
# name: "KVM"
|
||||||
|
# -----------------------------------------------------
|
||||||
|
|
||||||
|
env = XCURSOR_SIZE,24
|
||||||
|
env = QT_QPA_PLATFORM,wayland
|
||||||
|
env = GTK_THEME,Adwaita:dark
|
||||||
|
env = WLR_NO_HARDWARE_CURSORS, 1
|
||||||
|
env = WLR_RENDERER_ALLOW_SOFTWARE, 1
|
1
hypr/conf/keybinding.conf
Normal file
1
hypr/conf/keybinding.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
source = ~/dotfiles/hypr/conf/keybindings/default.conf
|
@ -1,5 +1,6 @@
|
|||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# Key bindings
|
# Key bindings
|
||||||
|
# name: "Default"
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
|
|
||||||
# SUPER KEY
|
# SUPER KEY
|
||||||
@ -39,6 +40,7 @@ bind = $mainMod SHIFT, B, exec, ~/dotfiles/waybar/launch.sh
|
|||||||
bind = $mainMod SHIFT, R, exec, ~/dotfiles/hypr/scripts/loadconfig.sh
|
bind = $mainMod SHIFT, R, exec, ~/dotfiles/hypr/scripts/loadconfig.sh
|
||||||
bind = $mainMod CTRL, F, exec, ~/dotfiles/scripts/filemanager.sh
|
bind = $mainMod CTRL, F, exec, ~/dotfiles/scripts/filemanager.sh
|
||||||
bind = $mainMod CTRL, C, exec, ~/dotfiles/scripts/cliphist.sh
|
bind = $mainMod CTRL, C, exec, ~/dotfiles/scripts/cliphist.sh
|
||||||
|
bind = $mainMod, V, exec, ~/dotfiles/scripts/cliphist.sh
|
||||||
bind = $mainMod CTRL, T, exec, ~/dotfiles/waybar/themeswitcher.sh
|
bind = $mainMod CTRL, T, exec, ~/dotfiles/waybar/themeswitcher.sh
|
||||||
bind = $mainMod CTRL, S, exec, alacritty --class dotfiles-floating -e ~/dotfiles/hypr/settings/settings.sh
|
bind = $mainMod CTRL, S, exec, alacritty --class dotfiles-floating -e ~/dotfiles/hypr/settings/settings.sh
|
||||||
|
|
@ -3,6 +3,10 @@
|
|||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
input {
|
input {
|
||||||
kb_layout = us
|
kb_layout = us
|
||||||
|
kb_variant =
|
||||||
|
kb_model =
|
||||||
|
kb_options =
|
||||||
|
|
||||||
follow_mouse = 1
|
follow_mouse = 1
|
||||||
touchpad {
|
touchpad {
|
||||||
natural_scroll = false
|
natural_scroll = false
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
# -----------------------------------------------------
|
|
||||||
# Virtual Machine
|
|
||||||
# -----------------------------------------------------
|
|
||||||
|
|
||||||
env = WLR_NO_HARDWARE_CURSORS, 1
|
|
||||||
env = WLR_RENDERER_ALLOW_SOFTWARE, 1
|
|
1
hypr/conf/windowrule.conf
Normal file
1
hypr/conf/windowrule.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
source = ~/dotfiles/hypr/conf/windowrules/default.conf
|
@ -22,7 +22,6 @@ source = ~/dotfiles/hypr/conf/autostart.conf
|
|||||||
# Environment
|
# Environment
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
source = ~/dotfiles/hypr/conf/environment.conf
|
source = ~/dotfiles/hypr/conf/environment.conf
|
||||||
# source = ~/dotfiles/hypr/conf/virtualmachine.conf
|
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# Keyboard
|
# Keyboard
|
||||||
@ -39,10 +38,10 @@ source = ~/.cache/wal/colors-hyprland.conf
|
|||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
source = ~/dotfiles/hypr/conf/window.conf
|
source = ~/dotfiles/hypr/conf/window.conf
|
||||||
source = ~/dotfiles/hypr/conf/decoration.conf
|
source = ~/dotfiles/hypr/conf/decoration.conf
|
||||||
source = ~/dotfiles/hypr/conf/layouts.conf
|
source = ~/dotfiles/hypr/conf/layout.conf
|
||||||
source = ~/dotfiles/hypr/conf/misc.conf
|
source = ~/dotfiles/hypr/conf/misc.conf
|
||||||
source = ~/dotfiles/hypr/conf/keybindings.conf
|
source = ~/dotfiles/hypr/conf/keybinding.conf
|
||||||
source = ~/dotfiles/hypr/conf/windowrules.conf
|
source = ~/dotfiles/hypr/conf/windowrule.conf
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# Animation
|
# Animation
|
||||||
|
@ -15,6 +15,7 @@ EOF
|
|||||||
echo "Select a file to load (RETURN = Confirm, ESC = Cancel/Back):"
|
echo "Select a file to load (RETURN = Confirm, ESC = Cancel/Back):"
|
||||||
sel=$(gum file ~/dotfiles/hypr/conf/decorations/)
|
sel=$(gum file ~/dotfiles/hypr/conf/decorations/)
|
||||||
if [ ! -z $sel ] ;then
|
if [ ! -z $sel ] ;then
|
||||||
|
sel=$(echo "$sel" | sed "s+"\/home\/$USER"+~+")
|
||||||
echo "source = $sel" > ~/dotfiles/hypr/conf/decoration.conf
|
echo "source = $sel" > ~/dotfiles/hypr/conf/decoration.conf
|
||||||
_settingsDecoration
|
_settingsDecoration
|
||||||
fi
|
fi
|
||||||
@ -37,6 +38,7 @@ EOF
|
|||||||
echo "Select a file to load (RETURN = Confirm, ESC = Cancel/Back):"
|
echo "Select a file to load (RETURN = Confirm, ESC = Cancel/Back):"
|
||||||
sel=$(gum file ~/dotfiles/hypr/conf/windows/)
|
sel=$(gum file ~/dotfiles/hypr/conf/windows/)
|
||||||
if [ ! -z $sel ] ;then
|
if [ ! -z $sel ] ;then
|
||||||
|
sel=$(echo "$sel" | sed "s+"\/home\/$USER"+~+")
|
||||||
echo "source = $sel" > ~/dotfiles/hypr/conf/window.conf
|
echo "source = $sel" > ~/dotfiles/hypr/conf/window.conf
|
||||||
_settingsWindow
|
_settingsWindow
|
||||||
fi
|
fi
|
||||||
@ -59,6 +61,7 @@ EOF
|
|||||||
echo "Select a file to load (RETURN = Confirm, ESC = Cancel/Back):"
|
echo "Select a file to load (RETURN = Confirm, ESC = Cancel/Back):"
|
||||||
sel=$(gum file ~/dotfiles/hypr/conf/animations/)
|
sel=$(gum file ~/dotfiles/hypr/conf/animations/)
|
||||||
if [ ! -z $sel ] ;then
|
if [ ! -z $sel ] ;then
|
||||||
|
sel=$(echo "$sel" | sed "s+"\/home\/$USER"+~+")
|
||||||
echo "source = $sel" > ~/dotfiles/hypr/conf/animation.conf
|
echo "source = $sel" > ~/dotfiles/hypr/conf/animation.conf
|
||||||
_settingsAnimation
|
_settingsAnimation
|
||||||
fi
|
fi
|
||||||
@ -81,11 +84,84 @@ EOF
|
|||||||
echo "Select a file to load (RETURN = Confirm, ESC = Cancel/Back):"
|
echo "Select a file to load (RETURN = Confirm, ESC = Cancel/Back):"
|
||||||
sel=$(gum file ~/dotfiles/hypr/conf/monitors/)
|
sel=$(gum file ~/dotfiles/hypr/conf/monitors/)
|
||||||
if [ ! -z $sel ] ;then
|
if [ ! -z $sel ] ;then
|
||||||
|
sel=$(echo "$sel" | sed "s+"\/home\/$USER"+~+")
|
||||||
echo "source = $sel" > ~/dotfiles/hypr/conf/monitor.conf
|
echo "source = $sel" > ~/dotfiles/hypr/conf/monitor.conf
|
||||||
fi
|
fi
|
||||||
_settingsMenu
|
_settingsMenu
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_settingsEnvironment() {
|
||||||
|
clear
|
||||||
|
cat <<"EOF"
|
||||||
|
_____ _ _
|
||||||
|
| ____|_ ____ _(_)_ __ ___ _ __ _ __ ___ ___ _ __ | |_
|
||||||
|
| _| | '_ \ \ / / | '__/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __|
|
||||||
|
| |___| | | \ V /| | | | (_) | | | | | | | | | __/ | | | |_
|
||||||
|
|_____|_| |_|\_/ |_|_| \___/|_| |_|_| |_| |_|\___|_| |_|\__|
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cur=$(cat ~/dotfiles/hypr/conf/environment.conf)
|
||||||
|
echo "In use: ${cur##*/}"
|
||||||
|
echo ""
|
||||||
|
echo "Please restart Hyprland after changing the environment."
|
||||||
|
echo "If you select KVM it's recommended to shutdown your system and start again."
|
||||||
|
echo ""
|
||||||
|
echo "Select a file to load (RETURN = Confirm, ESC = Cancel/Back):"
|
||||||
|
sel=$(gum file ~/dotfiles/hypr/conf/environments/)
|
||||||
|
if [ ! -z $sel ] ;then
|
||||||
|
sel=$(echo "$sel" | sed "s+"\/home\/$USER"+~+")
|
||||||
|
echo "source = $sel" > ~/dotfiles/hypr/conf/environment.conf
|
||||||
|
fi
|
||||||
|
_settingsMenu
|
||||||
|
}
|
||||||
|
|
||||||
|
_settingsKeybinding() {
|
||||||
|
clear
|
||||||
|
cat <<"EOF"
|
||||||
|
_ __ _ _ _ _
|
||||||
|
| |/ /___ _ _| |__ (_)_ __ __| (_)_ __ __ _ ___
|
||||||
|
| ' // _ \ | | | '_ \| | '_ \ / _` | | '_ \ / _` / __|
|
||||||
|
| . \ __/ |_| | |_) | | | | | (_| | | | | | (_| \__ \
|
||||||
|
|_|\_\___|\__, |_.__/|_|_| |_|\__,_|_|_| |_|\__, |___/
|
||||||
|
|___/ |___/
|
||||||
|
|
||||||
|
EOF
|
||||||
|
cur=$(cat ~/dotfiles/hypr/conf/keybinding.conf)
|
||||||
|
echo "In use: ${cur##*/}"
|
||||||
|
echo ""
|
||||||
|
echo "Select a file to load (RETURN = Confirm, ESC = Cancel/Back):"
|
||||||
|
sel=$(gum file ~/dotfiles/hypr/conf/keybindings/)
|
||||||
|
if [ ! -z $sel ] ;then
|
||||||
|
sel=$(echo "$sel" | sed "s+"\/home\/$USER"+~+")
|
||||||
|
echo "source = $sel" > ~/dotfiles/hypr/conf/keybinding.conf
|
||||||
|
fi
|
||||||
|
_settingsMenu
|
||||||
|
}
|
||||||
|
|
||||||
|
_settingsWindowrule() {
|
||||||
|
clear
|
||||||
|
cat <<"EOF"
|
||||||
|
__ ___ _ _
|
||||||
|
\ \ / (_)_ __ __| | _____ ___ __ _ _| | ___ ___
|
||||||
|
\ \ /\ / /| | '_ \ / _` |/ _ \ \ /\ / / '__| | | | |/ _ \/ __|
|
||||||
|
\ V V / | | | | | (_| | (_) \ V V /| | | |_| | | __/\__ \
|
||||||
|
\_/\_/ |_|_| |_|\__,_|\___/ \_/\_/ |_| \__,_|_|\___||___/
|
||||||
|
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cur=$(cat ~/dotfiles/hypr/conf/windowrule.conf)
|
||||||
|
echo "In use: ${cur##*/}"
|
||||||
|
echo ""
|
||||||
|
echo "Select a file to load (RETURN = Confirm, ESC = Cancel/Back):"
|
||||||
|
sel=$(gum file ~/dotfiles/hypr/conf/windowrules/)
|
||||||
|
if [ ! -z $sel ] ;then
|
||||||
|
sel=$(echo "$sel" | sed "s+"\/home\/$USER"+~+")
|
||||||
|
echo "source = $sel" > ~/dotfiles/hypr/conf/windowrule.conf
|
||||||
|
fi
|
||||||
|
_settingsMenu
|
||||||
|
}
|
||||||
|
|
||||||
_settingsMenu() {
|
_settingsMenu() {
|
||||||
clear
|
clear
|
||||||
cat <<"EOF"
|
cat <<"EOF"
|
||||||
@ -97,20 +173,29 @@ cat <<"EOF"
|
|||||||
|___/
|
|___/
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
menu=$(gum choose "Decorations" "Windows" "Animations" "Monitors" "EXIT")
|
menu=$(gum choose "Decorations" "Windows" "Animations" "Monitors" "Environments" "Keybindings" "Windowrules" "EXIT")
|
||||||
case $menu in
|
case $menu in
|
||||||
[Decorations]* )
|
Decorations)
|
||||||
_settingsDecoration
|
_settingsDecoration
|
||||||
break;;
|
break;;
|
||||||
[Windows]* )
|
Windows)
|
||||||
_settingsWindow
|
_settingsWindow
|
||||||
break;;
|
break;;
|
||||||
[Animations]* )
|
Animations)
|
||||||
_settingsAnimation
|
_settingsAnimation
|
||||||
break;;
|
break;;
|
||||||
[Monitors]* )
|
Monitors)
|
||||||
_settingsMonitor
|
_settingsMonitor
|
||||||
break;;
|
break;;
|
||||||
|
Environments)
|
||||||
|
_settingsEnvironment
|
||||||
|
break;;
|
||||||
|
Keybindings)
|
||||||
|
_settingsKeybinding
|
||||||
|
break;;
|
||||||
|
Windowrules)
|
||||||
|
_settingsWindowrule
|
||||||
|
break;;
|
||||||
* )
|
* )
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user