Browse Source

Merge pull request #200 from JaKooLit/development

Development to Main v2.2.7
pull/201/head^2
Ja.KooLit 2 years ago committed by GitHub
parent
commit
db03332ee2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      config/hypr/UserConfigs/WindowRules.conf
  2. 8
      config/hypr/UserScripts/Sounds.sh
  3. 4
      config/hypr/scripts/RofiEmoji.sh
  4. 4
      config/hypr/scripts/SwitchKeyboardLayout.sh
  5. 20
      config/hypr/scripts/Volume.sh
  6. 0
      config/hypr/v2.2.7
  7. 4
      config/waybar/modules

10
config/hypr/UserConfigs/WindowRules.conf

@ -11,6 +11,8 @@ windowrule = float, zoom
windowrule = float, rofi
windowrule = float, gnome-system-monitor
windowrule = float, yad
windowrule = float, ^(wihotspot-gui)$ # wifi hotspot
windowrule = float, ^(evince)$ # document viewer
#windowrule = noblur,gamescope
#windowrule = fullscreen,gamescope
@ -48,6 +50,14 @@ windowrulev2 = opacity 0.9 0.7, class:^(VSCodium)$
windowrulev2 = opacity 0.9 0.7, class:^(yad)$
windowrulev2 = opacity 0.9 0.7, class:^(com.obsproject.Studio)$
windowrulev2 = opacity 0.9 0.7, class:^([Aa]udacious)$
windowrulev2 = opacity 0.9 0.8, class:^(google-chrome)$
windowrulev2 = opacity 0.94 0.86, class:^(chrome-.+-Default)$ # Chrome PWAs
windowrulev2 = opacity 0.9 0.8, class:^(org.gnome.Nautilus)$
windowrulev2 = opacity 0.9 0.8, class:^(code-url-handler)$
windowrulev2 = opacity 0.9 0.8, class:^(VSCode)$
windowrulev2 = opacity 0.94 0.86, class:^(discord)$
windowrulev2 = opacity 0.94 0.86, class:^(gnome-disks)$
windowrulev2 = opacity 0.9 0.8, class:^(org.gnome.baobab)$
#layerrule = unset,class:^([Rr]ofi)$

8
config/hypr/UserScripts/Sounds.sh

@ -31,8 +31,12 @@ else
fi
# Set the directory defaults for system sounds.
if [ -d "/run/current-system/sw/share/sounds" ]; then
systemDIR="/run/current-system/sw/share/sounds" # NixOS
else
systemDIR="/usr/share/sounds"
fi
userDIR="$HOME/.local/share/sounds"
systemDIR="/usr/share/sounds"
defaultTheme="freedesktop"
# Prefer the user's theme, but use the system's if it doesn't exist.
@ -62,4 +66,4 @@ if ! test -f "$sound_file"; then
fi
fi
fi
pw-play "$sound_file"
pw-play "$sound_file"

4
config/hypr/scripts/RofiEmoji.sh

@ -2,12 +2,12 @@
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
# Rofi Emoticons. Not my own. Cant remember the source
sed '1,/^### DATA ###$/d' $0 |
sed '1,/^# # DATA # #$/d' $0 |
rofi -dmenu -config ~/.config/rofi/config-long.rasi|
cut -d ' ' -f 1 | tr -d '\n' | wl-copy
exit
# DATA #
# # DATA # #
😀 grinning face face smile happy joy :D grin
😃 grinning face with big eyes face happy joy haha :D :) smile funny
😄 grinning face with smiling eyes face happy joy funny haha laugh like :D :) smile

4
config/hypr/scripts/SwitchKeyboardLayout.sh

@ -38,8 +38,8 @@ next_index=$(( (current_index + 1) % layout_count ))
new_layout="${layout_mapping[next_index]}"
# Update the keyboard layout
hyprctl keyword input:kb_layout "$new_layout"
hyprctl switchxkblayout "at-translated-set-2-keyboard" "$new_layout"
echo "$new_layout" > "$layout_f"
# Notification for the new keyboard layout
notify-send -u low -i "$notif" "new KB_Layout: $new_layout"
notify-send -u low -i "$notif" "new KB_Layout: $new_layout"

20
config/hypr/scripts/Volume.sh

@ -42,17 +42,19 @@ notify_user() {
# Increase Volume
inc_volume() {
if [ "$(pamixer --get-mute)" == "true" ]; then
pamixer -u && notify_user
toggle_mute
else
pamixer -i 5 && notify_user
fi
pamixer -i 5 && notify_user
}
# Decrease Volume
dec_volume() {
if [ "$(pamixer --get-mute)" == "true" ]; then
pamixer -u && notify_user
toggle_mute
else
pamixer -d 5 && notify_user
fi
pamixer -d 5 && notify_user
}
# Toggle Mute
@ -102,17 +104,19 @@ notify_mic_user() {
# Increase MIC Volume
inc_mic_volume() {
if [ "$(pamixer --default-source --get-mute)" == "true" ]; then
pamixer --default-source -u && notify_mic_user
toggle_mic
else
pamixer --default-source -i 5 && notify_mic_user
fi
pamixer --default-source -i 5 && notify_mic_user
}
# Decrease MIC Volume
dec_mic_volume() {
if [ "$(pamixer --default-source --get-mute)" == "true" ]; then
pamixer --default-source -u && notify_mic_user
toggle-mic
else
pamixer --default-source -d 5 && notify_mic_user
fi
pamixer --default-source -d 5 && notify_mic_user
}
# Execute accordingly

0
config/hypr/v2.2.6 → config/hypr/v2.2.7

4
config/waybar/modules

@ -637,9 +637,9 @@
},
"clock#vertical": {
"format": "{:\n%H\n%M\n%S\n\n \n%d\n%m\n%y}",
"format": "\n{:%H\n%M\n%S\n\n \n%d\n%m\n%y}",
"interval": 1,
//"format": "{:\n%I\n%M\n%p\n\n \n%d\n%m\n%y}",
//"format": "\n{:%I\n%M\n%p\n\n \n%d\n%m\n%y}",
"tooltip": true,
"tooltip-format": "{calendar}",
"calendar": {

Loading…
Cancel
Save