Feat: brightness script, and refactor info script

This commit is contained in:
coolnsx
2024-03-08 16:08:44 +05:30
parent 80de39466a
commit e6aaf4139d
11 changed files with 123 additions and 40 deletions

View File

@@ -1,15 +1,32 @@
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,highrr,auto,1.6,bitdepth,10
#monitor=,2880x1800@120,auto,1.6,bitdepth,10
monitor=,highrr,auto,1.5,bitdepth,10
#monitor=,2880x1800@120.000999,auto,1.5,bitdepth,10
$hypr_dir="$HOME/.config/hypr"
$accent=D81860
#envs
env = XDG_SESSION_TYPE,wayland
env = WLR_NO_HARDWARE_CURSORS,1
env = BROWSER,google-chrome-stable
env = EDITOR,nvim
env = GDK_BACKEND,wayland,x11
env = GDK_SCALE,2 #xwayland fractional scaling
env = GTK_THEME,Materia-dark
env = GLOBAL_ACCENT,$accent
env = IMAGE,nsxiv
env = LIBSEAT_BACKEND,logind
env = MOZ_ENABLE_WAYLAND,1
env = OPENER,xdg-open
env = QT_QPA_PLATFORMTHEME,qt5ct
env = QT_QPA_PLATFORM,wayland
env = SDL_VIDEODRIVER,wayland
env = TERMINAL,foot
env = VIDEO,mpv
env = VISUAL,nvim
env = WLR_NO_HARDWARE_CURSORS,1
env = WM,hyprland
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
@@ -87,6 +104,11 @@ gestures {
misc {
force_default_wallpaper = 0
vfr = 1
vrr = 2
}
xwayland {
force_zero_scaling = false
}
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
@@ -164,11 +186,11 @@ binde=, XF86AudioRaiseVolume, exec, pamixer --set-limit 140 --allow-boost -i 2 &
binde=, XF86AudioMute, exec, pamixer --set-limit 140 --allow-boost -t && $hypr_dir/volume
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=$mainMod, F10, exec, $HOME/repos_scripts/yt-music search_play
binde= $mainMod, F10, exec, $HOME/repos_scripts/yt-music search_play
binde=, XF86AudioNext, exec, $HOME/repos_scripts/yt-music play_next
binde=, XF86AudioPrev, exec, $HOME/repos_scripts/yt-music play_next menu
binde=, XF86MonBrightnessDown, exec, light -U 2 && notify-send -i "lol" "☀️ $(light -G | cut -d'.' -f1)" -t 1000 -h "string:x-canonical-private-synchronous:brightness"
binde=, XF86MonBrightnessUp, exec, light -A 2 && notify-send -i "lol" "☀️ $(light -G | cut -d'.' -f1)" -t 1000 -h "string:x-canonical-private-synchronous:brightness"
binde=, XF86MonBrightnessUp, exec, $hypr_dir/brightness '+'
binde=, XF86MonBrightnessDown, exec, $hypr_dir/brightness '-'
#windows rules
windowrulev2=workspace 1,class:^(google-chrome)$
@@ -179,16 +201,19 @@ windowrulev2=workspace 4,class:^(pavucontrol)$
windowrulev2=workspace 4,class:^(org.freedesktop.Xwayland)$
windowrulev2=fullscreen,class:^(org.freedesktop.Xwayland)$
windowrulev2=workspace 4,class:^(virt-manager)$
windowrulev2 = bordercolor rgba(64f2a4FF), xwayland: 1
windowrulev2=bordercolor rgba(64f2a4FF), xwayland: 1
#workspace rules
workspace = 1, on-created-empty:google-chrome-stable
workspace = 2, on-created-empty:foot
#startup applications
exec-once=dbus-update-activation-environment --systemd --all
exec-once=ssh-agent
exec-once=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once=node $HOME/github/arrpc/src > /tmp/arrpc-log
exec-once=swaybg -i $HOME/.config/wall/9.png
exec-once=swaybg -i $HOME/.config/wall/19.jpg -m fill
exec-once=xrdb -merge $HOME/.config/.Xresource
exec-once=$hypr_dir/workspace 'focus'
exec-once=$hypr_dir/battery
#exec-once=sleep 2 && $hypr_dir/workspace
exec-once=google-chrome-stable