Updates the hypr config to setup ghostty
This commit is contained in:
parent
1d1ec0138f
commit
7fceb17f3f
8 changed files with 161 additions and 11 deletions
|
|
@ -99,7 +99,7 @@ bind = $mainMod SHIFT, F, fullscreen, 0
|
||||||
|
|
||||||
$mainMod = SUPER
|
$mainMod = SUPER
|
||||||
$files = thunar
|
$files = thunar
|
||||||
$term = kitty
|
$term = ghostty
|
||||||
$scriptsDir = $HOME/.config/hypr/scripts
|
$scriptsDir = $HOME/.config/hypr/scripts
|
||||||
|
|
||||||
# rofi App launcher
|
# rofi App launcher
|
||||||
|
|
|
||||||
1
.config/hypr/config/Monitors.conf
Symbolic link
1
.config/hypr/config/Monitors.conf
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
Monitors.conf##class.PC,default
|
||||||
|
|
@ -32,6 +32,7 @@ windowrulev2 = workspace 1, class:^([Gg]oogle-chrome(-beta|-dev|-unstable)?)$
|
||||||
windowrulev2 = workspace 1, class:^([Tt]horium-browser|[Cc]achy-browser)$
|
windowrulev2 = workspace 1, class:^([Tt]horium-browser|[Cc]achy-browser)$
|
||||||
windowrulev2 = workspace 1, class:^(zen)$ # zen browser
|
windowrulev2 = workspace 1, class:^(zen)$ # zen browser
|
||||||
windowrulev2 = workspace 2, class:^(kitty)$
|
windowrulev2 = workspace 2, class:^(kitty)$
|
||||||
|
windowrulev2 = workspace 2, class:^(com.mitchellh.ghostty)$
|
||||||
windowrulev2 = workspace 3, class:^([Dd]iscord|[Ww]ebCord|[Vv]esktop)$
|
windowrulev2 = workspace 3, class:^([Dd]iscord|[Ww]ebCord|[Vv]esktop)$
|
||||||
windowrulev2 = workspace 3, class:^([Bb]eeper)$
|
windowrulev2 = workspace 3, class:^([Bb]eeper)$
|
||||||
windowrulev2 = workspace 3, class:^([Ff]erdium)$
|
windowrulev2 = workspace 3, class:^([Ff]erdium)$
|
||||||
|
|
@ -41,6 +42,8 @@ windowrulev2 = workspace 4 silent, class:^([Ss]team)$
|
||||||
windowrulev2 = workspace 4, class:^([Ll]utris)$
|
windowrulev2 = workspace 4, class:^([Ll]utris)$
|
||||||
windowrulev2 = workspace 4, class:^([Hh]eroic)$
|
windowrulev2 = workspace 4, class:^([Hh]eroic)$
|
||||||
windowrulev2 = workspace 5, class:^(com.github.th_ch.youtube_music)$
|
windowrulev2 = workspace 5, class:^(com.github.th_ch.youtube_music)$
|
||||||
|
windowrulev2 = workspace 5, class:^(feishin)$
|
||||||
|
windowrulev2 = workspace 5, class:^(Supersonic)$
|
||||||
|
|
||||||
# windowrule v2 - float
|
# windowrule v2 - float
|
||||||
windowrulev2 = float, class:^(org.kde.polkit-kde-authentication-agent-1)$
|
windowrulev2 = float, class:^(org.kde.polkit-kde-authentication-agent-1)$
|
||||||
|
|
@ -73,7 +76,8 @@ windowrulev2 = float, title:^(ROG Control)$
|
||||||
#windowrulev2 = float, title:^(Firefox)$
|
#windowrulev2 = float, title:^(Firefox)$
|
||||||
windowrulev2 = float, title:^(hyprgui)$
|
windowrulev2 = float, title:^(hyprgui)$
|
||||||
windowrulev2 = float, class:^(io.ente.auth)$
|
windowrulev2 = float, class:^(io.ente.auth)$
|
||||||
|
windowrulev2 = float, class:^(org.rncbc.qjackctl)$
|
||||||
|
windowrulev2 = float, class:^(blobdrop)$
|
||||||
|
|
||||||
# windowrule v2 - size
|
# windowrule v2 - size
|
||||||
windowrulev2 = size 70% 70%, class:^(gnome-system-monitor|org.gnome.SystemMonitor|io.missioncenter.MissionCenter)$
|
windowrulev2 = size 70% 70%, class:^(gnome-system-monitor|org.gnome.SystemMonitor|io.missioncenter.MissionCenter)$
|
||||||
|
|
|
||||||
1
.config/hypr/config/WorkspaceRules.conf
Symbolic link
1
.config/hypr/config/WorkspaceRules.conf
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
WorkspaceRules.conf##class.PC,default
|
||||||
1
.config/hypr/config/settings/Input.conf
Symbolic link
1
.config/hypr/config/settings/Input.conf
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
Input.conf##class.PC,default
|
||||||
|
|
@ -11,7 +11,7 @@ input {
|
||||||
sensitivity = 0 #mouse sensitivity
|
sensitivity = 0 #mouse sensitivity
|
||||||
numlock_by_default = true
|
numlock_by_default = true
|
||||||
left_handed = false
|
left_handed = false
|
||||||
follow_mouse = 2
|
follow_mouse = 1
|
||||||
float_switch_override_focus = false
|
float_switch_override_focus = false
|
||||||
|
|
||||||
touchpad {
|
touchpad {
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
|
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## Searchable enabled keybinds using rofi
|
||||||
# Searchable enabled keybinds using rofi
|
|
||||||
|
|
||||||
# Kill yad to not interfere with this binds
|
# Kill yad to not interfere with this binds
|
||||||
pkill yad || true
|
pkill yad || true
|
||||||
|
|
||||||
# Check if rofi is already running
|
# Check if rofi is already running
|
||||||
if pidof rofi > /dev/null; then
|
if pidof rofi >/dev/null; then
|
||||||
pkill rofi
|
pkill rofi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -32,3 +31,4 @@ fi
|
||||||
|
|
||||||
# Use rofi to display the keybinds
|
# Use rofi to display the keybinds
|
||||||
echo "$KEYBINDS" | rofi -dmenu -i -p "Keybinds" -config ~/.config/rofi/config-keybinds.rasi
|
echo "$KEYBINDS" | rofi -dmenu -i -p "Keybinds" -config ~/.config/rofi/config-keybinds.rasi
|
||||||
|
|
||||||
|
|
|
||||||
143
.config/hypr/scripts/Volume.sh
Executable file
143
.config/hypr/scripts/Volume.sh
Executable file
|
|
@ -0,0 +1,143 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
|
||||||
|
# Scripts for volume controls for audio and mic
|
||||||
|
|
||||||
|
iDIR="$HOME/.config/swaync/icons"
|
||||||
|
sDIR="$HOME/.config/hypr/scripts"
|
||||||
|
|
||||||
|
# Get Volume
|
||||||
|
get_volume() {
|
||||||
|
volume=$(pamixer --get-volume)
|
||||||
|
if [[ "$volume" -eq "0" ]]; then
|
||||||
|
echo "Muted"
|
||||||
|
else
|
||||||
|
echo "$volume %"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Get icons
|
||||||
|
get_icon() {
|
||||||
|
current=$(get_volume)
|
||||||
|
if [[ "$current" == "Muted" ]]; then
|
||||||
|
echo "$iDIR/volume-mute.png"
|
||||||
|
elif [[ "${current%\%}" -le 30 ]]; then
|
||||||
|
echo "$iDIR/volume-low.png"
|
||||||
|
elif [[ "${current%\%}" -le 60 ]]; then
|
||||||
|
echo "$iDIR/volume-mid.png"
|
||||||
|
else
|
||||||
|
echo "$iDIR/volume-high.png"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Notify
|
||||||
|
notify_user() {
|
||||||
|
if [[ "$(get_volume)" == "Muted" ]]; then
|
||||||
|
notify-send -e -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" " Volume:" " Muted"
|
||||||
|
else
|
||||||
|
notify-send -e -h int:value:"$(get_volume | sed 's/%//')" -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" " Volume Level:" " $(get_volume)" &&
|
||||||
|
"$sDIR/Sounds.sh" --volume
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Increase Volume
|
||||||
|
inc_volume() {
|
||||||
|
if [ "$(pamixer --get-mute)" == "true" ]; then
|
||||||
|
toggle_mute
|
||||||
|
else
|
||||||
|
pamixer -i 5 --allow-boost --set-limit 150 && notify_user
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Decrease Volume
|
||||||
|
dec_volume() {
|
||||||
|
if [ "$(pamixer --get-mute)" == "true" ]; then
|
||||||
|
toggle_mute
|
||||||
|
else
|
||||||
|
pamixer -d 5 && notify_user
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Toggle Mute
|
||||||
|
toggle_mute() {
|
||||||
|
if [ "$(pamixer --get-mute)" == "false" ]; then
|
||||||
|
pamixer -m && notify-send -e -u low -i "$iDIR/volume-mute.png" " Mute"
|
||||||
|
elif [ "$(pamixer --get-mute)" == "true" ]; then
|
||||||
|
pamixer -u && notify-send -e -u low -i "$(get_icon)" " Volume:" " Switched ON"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Toggle Mic
|
||||||
|
toggle_mic() {
|
||||||
|
if [ "$(pamixer --default-source --get-mute)" == "false" ]; then
|
||||||
|
pamixer --default-source -m && notify-send -e -u low -i "$iDIR/microphone-mute.png" " Microphone:" " Switched OFF"
|
||||||
|
elif [ "$(pamixer --default-source --get-mute)" == "true" ]; then
|
||||||
|
pamixer -u --default-source u && notify-send -e -u low -i "$iDIR/microphone.png" " Microphone:" " Switched ON"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
# Get Mic Icon
|
||||||
|
get_mic_icon() {
|
||||||
|
current=$(pamixer --default-source --get-volume)
|
||||||
|
if [[ "$current" -eq "0" ]]; then
|
||||||
|
echo "$iDIR/microphone-mute.png"
|
||||||
|
else
|
||||||
|
echo "$iDIR/microphone.png"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Get Microphone Volume
|
||||||
|
get_mic_volume() {
|
||||||
|
volume=$(pamixer --default-source --get-volume)
|
||||||
|
if [[ "$volume" -eq "0" ]]; then
|
||||||
|
echo "Muted"
|
||||||
|
else
|
||||||
|
echo "$volume %"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Notify for Microphone
|
||||||
|
notify_mic_user() {
|
||||||
|
volume=$(get_mic_volume)
|
||||||
|
icon=$(get_mic_icon)
|
||||||
|
notify-send -e -h int:value:"$volume" -h "string:x-canonical-private-synchronous:volume_notif" -u low -i "$icon" " Mic Level:" " $volume"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Increase MIC Volume
|
||||||
|
inc_mic_volume() {
|
||||||
|
if [ "$(pamixer --default-source --get-mute)" == "true" ]; then
|
||||||
|
toggle_mic
|
||||||
|
else
|
||||||
|
pamixer --default-source -i 5 && notify_mic_user
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Decrease MIC Volume
|
||||||
|
dec_mic_volume() {
|
||||||
|
if [ "$(pamixer --default-source --get-mute)" == "true" ]; then
|
||||||
|
toggle-mic
|
||||||
|
else
|
||||||
|
pamixer --default-source -d 5 && notify_mic_user
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Execute accordingly
|
||||||
|
if [[ "$1" == "--get" ]]; then
|
||||||
|
get_volume
|
||||||
|
elif [[ "$1" == "--inc" ]]; then
|
||||||
|
inc_volume
|
||||||
|
elif [[ "$1" == "--dec" ]]; then
|
||||||
|
dec_volume
|
||||||
|
elif [[ "$1" == "--toggle" ]]; then
|
||||||
|
toggle_mute
|
||||||
|
elif [[ "$1" == "--toggle-mic" ]]; then
|
||||||
|
toggle_mic
|
||||||
|
elif [[ "$1" == "--get-icon" ]]; then
|
||||||
|
get_icon
|
||||||
|
elif [[ "$1" == "--get-mic-icon" ]]; then
|
||||||
|
get_mic_icon
|
||||||
|
elif [[ "$1" == "--mic-inc" ]]; then
|
||||||
|
inc_mic_volume
|
||||||
|
elif [[ "$1" == "--mic-dec" ]]; then
|
||||||
|
dec_mic_volume
|
||||||
|
else
|
||||||
|
get_volume
|
||||||
|
fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue