more ignores

This commit is contained in:
coolnsx
2024-11-18 11:43:34 +05:30
parent 5c87fbac7d
commit 218a513d60
9 changed files with 85 additions and 118 deletions

View File

@@ -1,5 +1,5 @@
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=eDP-1,highres,auto,1.5,vrr,0,bitdepth,10
monitor=eDP-1,highrr,auto,1.5,vrr,0,bitdepth,10
$hypr_dir="$HOME/.config/hypr"
$accent=6FAAFF
@@ -67,10 +67,13 @@ decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 10
drop_shadow = yes
shadow_range = 3
shadow_render_power = 2
col.shadow = rgba(1a1a1aee)
shadow {
enabled = true
range = 3
render_power = 2
color = rgba(1a1a1aee)
}
blur {
enabled = yes
size = 8
@@ -133,8 +136,8 @@ bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
bind = $mainMod,Tab,cyclenext,
bind = $mainMod,Tab,bringactivetotop,
bind = ALT,Tab,cyclenext,
bind = ALT,Tab,bringactivetotop,
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
@@ -171,7 +174,7 @@ bind = $mainMod, Q, exec, $hypr_dir/dmenu_run_history
bind = $mainMod, G, exec, $hypr_dir/rungame
bind = $mainMod, SPACE, exec, $hypr_dir/bemoji
bind = $mainMod, A, exec, [workspace 1] $browser
bind = $mainMod, C, exec, [workspace 3] code
bind = $mainMod, C, exec, [workspace 3] zeditor
bind = $mainMod, E, exec, [workspace 3] pcmanfm
bind = $mainMod, B, exec, $hypr_dir/bkmark "add"
bind = $mainMod, I, exec, $hypr_dir/bkmark
@@ -190,9 +193,9 @@ bind = $mainMod, F12, exec, $hypr_dir/date
bind = $mainMod, Delete, exec, $hypr_dir/workspace 'list'
#media keys
binde =, XF86AudioLowerVolume, exec, pamixer --set-limit 140 --allow-boost -d 2 && $hypr_dir/volume
binde =, XF86AudioRaiseVolume, exec, pamixer --set-limit 140 --allow-boost -i 2 && $hypr_dir/volume
binde =, XF86AudioMute, exec, pamixer --set-limit 140 --allow-boost -t && $hypr_dir/volume
binde =, XF86AudioLowerVolume, exec, $hypr_dir/volume set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 2%-
binde =, XF86AudioRaiseVolume, exec, $hypr_dir/volume set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 2%+
binde =, XF86AudioMute, exec, $hypr_dir/volume set-mute @DEFAULT_AUDIO_SINK@ toggle
binde =, XF86AudioPlay, exec, echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket"
binde =, XF86AudioPause, exec, echo cycle pause | socat - "/tmp/yt-music/yt-music-mpvsocket"
binde =, XF86Launch2, exec, $HOME/repos_scripts/yt-music search_play #why not :)
@@ -206,7 +209,6 @@ windowrulev2 = workspace 1,class:^(google-chrome)$
windowrulev2 = workspace 1,class:^(firefox)$
windowrulev2 = workspace 4,class:^(Google-chrome)$
windowrulev2 = workspace 3,class:^(mpv)$
windowrulev2 = workspace 3,class:^([c|C]ode)
#windowrulev2 = workspace 4,class:^(org.pulseaudio.pavucontrol)$
windowrulev2 = workspace 4,class:^(org.freedesktop.Xwayland)$
windowrulev2 = fullscreen,class:^(org.freedesktop.Xwayland)$
@@ -214,6 +216,11 @@ windowrulev2 = workspace 4,class:^(virt-manager)$
windowrulev2 = bordercolor rgba(64f2a4FF), xwayland: 1
windowrulev2 = workspace 3,class:^(Waydroid)$
windowrulev2 = pseudo, class:^(Waydroid)$
windowrulev2 = workspace 3,title:^(Picture-in-Picture)$
windowrulev2 = size 640 360, title:(Picture-in-Picture)
windowrulev2 = pin, title:^(Picture-in-Picture)$
windowrulev2 = move 100%-641 100%-361, title:(Picture-in-Picture)
windowrulev2 = float, title:^(Picture-in-Picture)$
#workspace rules
workspace = 1, on-created-empty:$browser

View File

@@ -11,10 +11,10 @@ top -ibn5 -d1 | while read -r line;do
temp=$(cat /sys/class/thermal/thermal_zone0/temp)
: $((temp /= 1000))
bat_stats=$(cat /sys/class/power_supply/BAT0/status)
vol_stats=$(pamixer --get-volume-human)
vol_stats=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
charge=$(cat /sys/class/power_supply/BAT0/capacity)
[ "$bat_stats" = "Discharging" ] && { [ "$charge" -lt 20 ] && bat_icon=🪫 || bat_icon=🔋 ;} || bat_icon=🔌
[ "$vol_stats" = "muted" ] && vol_icon=🔇 || vol_icon=🔊
notify-send -e -i "lol" "<----------(STATS)---------->" "🧠 CPU usage : $cpu\n🌡 Cpu Temp : $temp °C\n🔳 RAM : $mem\n$bat_icon Battery : $charge (${bat_stats})\n☀ Brightness : $("$(dirname "$0")"/brightness s)%\n$vol_icon Volume : $vol_stats\n🎵 $SONG - $ARTIST" -h "string:x-canonical-private-synchronous:${0##*/}" -t 1500 &
printf '%s' "$vol_stats" | grep -q 'MUTED' && vol_icon=🔇 || vol_icon=🔊
notify-send -e -i "lol" "<----------(STATS)---------->" "🧠 CPU usage : $cpu\n🌡 Cpu Temp : $temp °C\n🔳 RAM : $mem\n$bat_icon Battery : $charge (${bat_stats})\n☀ Brightness : $("$(dirname "$0")"/brightness s)%\n$vol_icon Volume : $(printf '%s' "$vol_stats" | tr -cd '[0-9]' | sed 's|^0||g')%\n🎵 $SONG - $ARTIST" -h "string:x-canonical-private-synchronous:${0##*/}" -t 1500 &
fi
done

View File

@@ -1,9 +1,11 @@
#!/bin/sh
vol_int=$(pamixer --get-volume)
#shellcheck disable=SC2068
wpctl $@
vol=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
vol_int=$(printf '%s' "$vol" | tr -cd '[:digit:]')
vol_icon="low"
#[ "$vol_int" -gt 0 ] && pamixer -u || pamixer -m
[ "$vol_int" -gt 33 ] && vol_icon="medium"
[ "$vol_int" -gt 66 ] && vol_icon="high"
pamixer --get-mute | sh && vol_icon="muted"
printf '%s' "$vol" | grep -q 'MUTED' && vol_icon="muted"
notify-send -e -i "/usr/share/icons/Papirus/16x16/panel/audio-volume-$vol_icon.svg" "$vol_int %" -h "string:x-canonical-private-synchronous:${0##*/}" -t 1000