diff --git a/config/hypr/UserConfigs/ENVariables.conf b/config/hypr/UserConfigs/ENVariables.conf index ec3cb1c0..c60f3001 100644 --- a/config/hypr/UserConfigs/ENVariables.conf +++ b/config/hypr/UserConfigs/ENVariables.conf @@ -15,6 +15,7 @@ env = SDL_VIDEODRIVEVER,wayland env = GDK_SCALE,1 +env = GTK_THEME,adw-gtk3-dark # firefox env = MOZ_ENABLE_WAYLAND,1 firefox @@ -25,3 +26,6 @@ env = ELECTRON_OZONE_PLATFORM_HINT,wayland # Cursor size env = XCURSOR_SIZE,6 + +# electron >28 apps (may help) +env = ELECTRON_OZONE_PLATFORM_HINT,auto diff --git a/config/hypr/UserConfigs/Laptops.conf b/config/hypr/UserConfigs/Laptops.conf index ac2da08f..e3a500f6 100644 --- a/config/hypr/UserConfigs/Laptops.conf +++ b/config/hypr/UserConfigs/Laptops.conf @@ -3,13 +3,18 @@ # These configs are mostly for laptops. This is addemdum to Keybinds.conf $mainMod = SUPER - +$fabric_send = ~/fabric/fabric_send #VolumeControl -bind = ,XF86MonBrightnessUp, exec, brightnessctl set +5% -bind = ,XF86MonBrightnessDown, exec, brightnessctl set 5%- +bindle = ,XF86MonBrightnessUp, exec, ags -r 'brightness.screen_value += 0.1;' +bindle = ,XF86MonBrightnessDown, exec, ags -r 'brightness.screen_value -= 0.1;' +# bindle=,XF86MonBrightnessUp, exec, brightnessctl s 5%+ && $fabric_send 'systemOverlay.enable_popup("brightness")' +# bindle=,XF86MonBrightnessDown, exec, brightnessctl s 5%- && $fabric_send 'systemOverlay.enable_popup("brightness")' bind = ,XF86AudioRaiseVolume, exec, pamixer -i 5 # Volume Higher key bind = ,XF86AudioLowerVolume, exec, pamixer -d 5 # Volume lower key bind = ,XF86AudioMute, exec, pamixer -t # Speaker Mute +# bindle=,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ && $fabric_send 'systemOverlay.enable_popup("sound")' +# bindle=,XF86AudioLowerVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%- && $fabric_send 'systemOverlay.enable_popup("sound")' +# bind =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bind = ,XF86AudioMicMute, exec, pamixer --default-source -t # Mic mute key bind = ,XF86AudioNext, exec, playerctl next bind = ,XF86AudioPrev, exec, playerctl previous diff --git a/config/hypr/UserConfigs/Monitors.conf b/config/hypr/UserConfigs/Monitors.conf index e97b90ce..e05c1e46 100644 --- a/config/hypr/UserConfigs/Monitors.conf +++ b/config/hypr/UserConfigs/Monitors.conf @@ -30,7 +30,7 @@ monitor=,preferred,auto,1 # Mirror #monitor=DP-3,1920x1080@60,0x0,1,mirror,DP-2 -#monitor=,preferred,auto,1,mirror,eDP-1 +# monitor=,preferred,auto,1,mirror,eDP-1 # Example : diff --git a/config/hypr/UserConfigs/UserKeybinds.conf b/config/hypr/UserConfigs/UserKeybinds.conf index 504704e1..a101cdb5 100644 --- a/config/hypr/UserConfigs/UserKeybinds.conf +++ b/config/hypr/UserConfigs/UserKeybinds.conf @@ -8,6 +8,12 @@ $mainMod = SUPER $scriptsDir = $HOME/dotfiles/hypr/scripts $RunCMD = $scriptsDir/RunCMD.sh +# Lock indicators +bindlni = , Caps_Lock, exec, ags -r 'updateCapsLock();' +bindlnri = , Caps_Lock, exec, ags -r 'updateCapsLock();' +bindlni = , Num_Lock, exec, ags -r 'updateNumLock();' +bindlnri = , Num_Lock, exec, ags -r 'updateNumLock();' + # Categories (for script) #! @actions: Actions #! @tools: Tools @@ -16,6 +22,10 @@ $RunCMD = $scriptsDir/RunCMD.sh #! @workspaces: Workspaces #! @misc: Misc +# Testing +bind = Alt, f12, exec, notify-send 'Test notification' "Here's a really long message to test truncation and wrapping\nYou can middle click or flick this notification to dismiss it!" -a 'Shell' -A "Test1=I got it!" -A "Test2=Another action" +bind = Alt, Equal, exec, notify-send 'hmm' ${SLURP_ARGS} +bindr = ALT, R, exec, ags -r 'ReloadCSS();' # Applications bind = ALT SHIFT,Return, exec, kitty --title Kitty --single-instance #! @description: "Terminal Float"; @apps; @@ -32,27 +42,34 @@ bind = SHIFT ALT,W, exec, python -O $scriptsDir/wallpaper.py -R #! @desc bind = $mainMod CTRL, L, exec, pidof hyprlock || hyprlock -q #! @description: "Lock screen"; @actions; bind = $mainMod CTRL, P, exec, systemctl poweroff #! @description: "ShutDown"; @actions; bind = $mainMod CTRL, R, exec, systemctl reboot #! @description: "Restart"; @actions; -bind = $mainMod, Z, exec, $scriptsDir/ScreenShot.sh #! @description: "Screenshot"; @actions; -bind = ALT SHIFT, S, exec, $scriptsDir/ScreenShot.sh --window #! @description: "Window screenshot"; @actions; -bind = ,Print, exec, $scriptsDir/ScreenShot.sh --active #! @description: "Active screen screenshot"; @actions; +bind = $mainMod, o, exec, $scriptsDir/ScreenShot.sh #! @description: "Screenshot"; @actions; +# bind = ALT SHIFT, S, exec, $scriptsDir/ScreenShot.sh --window #! @description: "Window screenshot"; @actions; +# bind = ,Print, exec, $scriptsDir/ScreenShot.sh --active #! @description: "Active screen screenshot"; @actions; bind = ALT SHIFT, R, exec, pkill ags ; ags #! @description: "Reload AGS" @actions; - - - +binde = Alt, Tab, exec, ags -r 'if (App.getWindow("switcher").visible) globalThis.moveSwitcherFocus?.(); else globalThis.openSwitcher();' +# bind = Ctrl+Alt, Tab, exec, ags -t 'switcher' +bind = ALT, t, exec, ~/fabric/start +bind = $mainMod,Z, exec, ags -r 'recorder.screenshot()' +bind = $mainMod,p, exec, hyprshot -m region +bind = , Print, exec, ags -r 'recorder.screenshot(true)' +bind = $mainMod, R, exec, ags -r 'recorder.start()' +bind = Super, y, exec, XDG_CURRENT_DESKTOP="gnome" gnome-control-center # Tools -bind = $mainMod, D, exec, ags -r "toggleAppsWindow()" #! @description: "App Launcher"; @tools; -bind = $mainMod SHIFT, Z, exec, ags -r "toggleMediaWindow()" #! @description: "Players"; @tools; -bind = $mainMod, R, exec, ags -t sidebar #! @description: "rightbar"; @tools; -bind = $mainMod, L, exec, ags -t sideleft #! @description: "leftbar"; @tools; -bind = $mainMod, PERIOD, exec, ags -r "OpenEmojiPicker()" #! @description: "Emoji Picker"; @tools; -bind = $mainMod, V, exec, ags -t "cliphist" #! @description: "Clipboard history"; @tools; +# bind = $mainMod, D, exec, ags -r "toggleAppsWindow()" #! @description: "App Launcher"; @tools; +# bind = $mainMod SHIFT, Z, exec, ags -r "toggleMediaWindow()" #! @description: "Players"; @tools; +# bind = $mainMod, R, exec, ags -t sidebar #! @description: "rightbar"; @tools; +# bind = $mainMod, L, exec, ags -t sideleft #! @description: "leftbar"; @tools; +# bind = $mainMod, PERIOD, exec, ags -r "OpenEmojiPicker()" #! @description: "Emoji Picker"; @tools; +# bind = $mainMod, V, exec, ags -t "cliphist" #! @description: "Clipboard history"; @tools; bind = $mainMod, W, exec, ags -r "OpenSettings('wallpaper')" #! @description: "Change wallpaper"; @tools; bind = $mainMod, I, exec, ags -r 'OpenSettings()' #! @description: "Setting"; @tools; bind = $mainMod, SLASH, exec, ags -t cheatsheet #! @description: "List of keybindings"; @tools; +bind = $mainMod, V, exec, ags -r 'launcher.open(":ch")' +bind = $mainMod, PERIOD, exec, ags -r 'launcher.open(":em")' +bind = $mainMod, D, exec, ags -t launcher # Misc bind = $mainMod ALT, P, submap, passthru #! @description: "Passthrough mainMod key to Virtual Machine"; @misc; submap = passthru bind = $mainMod ALT, Escape, submap, reset #! @description: "Cancel passthrough"; @misc; submap = reset - diff --git a/config/hypr/UserConfigs/UserSettings.conf b/config/hypr/UserConfigs/UserSettings.conf index 26055fd4..fe332ca2 100644 --- a/config/hypr/UserConfigs/UserSettings.conf +++ b/config/hypr/UserConfigs/UserSettings.conf @@ -15,10 +15,10 @@ master { } general { - sensitivity = 1.00 - apply_sens_to_raw = 1 - gaps_in = 5 - gaps_out = 14 + # sensitivity = 1.00 + # apply_sens_to_raw = 1 + gaps_in = 6 + gaps_out = 8 border_size = 0 col.active_border = $border_color_active @@ -131,15 +131,9 @@ misc { vfr = 1 mouse_move_enables_dpms = true enable_swallow = true - no_direct_scanout = true #for fullscreen games focus_on_activate = false swallow_regex = (foot|kitty|allacritty|Alacritty) - #disable_autoreload = true - initial_workspace_tracking = false - animate_manual_resizes = false - animate_mouse_windowdragging = false - new_window_takes_over_fullscreen = 2 } binds { @@ -156,6 +150,8 @@ cursor { no_hardware_cursors = false enable_hyprcursor = true warp_on_change_workspace = true + no_warps = true } + diff --git a/config/hypr/UserConfigs/WindowRules.conf b/config/hypr/UserConfigs/WindowRules.conf index ce96515c..95aa93e2 100644 --- a/config/hypr/UserConfigs/WindowRules.conf +++ b/config/hypr/UserConfigs/WindowRules.conf @@ -11,9 +11,11 @@ windowrulev2 = noblur,class:^(xwaylandvideobridge)$ # Workspace Rules windowrule = workspace 5, ^(.*vlc*)$ +windowrule = workspace 2, ^(.*neovim*)$ #windowrule = stayfocused, ^(com.github.Aylur.ags)$ windowrule = float, ^(com.github.Aylur.ags)$ +windowrule=float,title:^(Volume Control)(.*)$ # MPV windowrule = workspace 5, ^(.*mpv*)$ @@ -29,6 +31,11 @@ windowrulev2 = float, class:(pavucontrol) windowrulev2 = size 533 533, class:(pavucontrol) windowrulev2 = center, class:(pavucontrol) +# Zathura +$zathura = class:^(.*zathura.*)$ +windowrulev2 = float, $zathura +windowrulev2 = size 35% 90%, $zathura +windowrulev2 = center 1, $zathura # OBS @@ -48,8 +55,6 @@ windowrulev2 = center, class:(com.obsproject.Studio), title:(Select Recording Di # Fireox class settings windowrulev2 = workspace 3, class:^(firefox)$ -windowrulev2 = workspace 3, class:^(qutebrowser)$ -windowrulev2 = workspace 3, class:^(Firefox-esr)$ windowrulev2 = pin,title:^(Picture-in-Picture)$ windowrulev2 = float, title:^(Picture-in-Picture)$ windowrulev2 = size 25% 25%,title:^(Picture-in-Picture)$ @@ -95,17 +100,14 @@ windowrulev2 = center 1, $center-float-title # VS Code -windowrulev2 = workspace 2, class:^(.*Code.*)$|(.*codium.*)$|(.*VSCodium.*) +# windowrulev2 = workspace 2, class:^(.*Code.*)$|(.*codium.*)$|(.*VSCodium.*) # Telegram -# windowrulev2 = fullscreen, class:(org.telegram.desktop), title:(Media viewer) -windowrulev2 = workspace 6, class:(org.telegram.desktop) -windowrulev2 = size 833 455, class:(org.telegram.desktop), title:(Choose Files) -windowrulev2 = center, class:(org.telegram.desktop), title:(Choose Files) -#windowrulev2 = float, class:^(org.telegram.desktop)$ -#windowrulev2 = center, class:^(org.telegram.desktop)$ -#windowrulev2 = size 800 800, class:^(org.telegram.desktop)$ +windowrulev2 = fullscreen, class:(.*materialgram.*), title:(Media viewer) +windowrulev2 = workspace 6, class:(.*materialgram.*) +windowrulev2 = size 833 455, class:(.*materialgram.*), title:(Choose Files) +windowrulev2 = center, class:(.*materialgram.*), title:(Choose Files) # discord windowrulev2 = workspace 7, class:^(.*discord.*)$|(.*vesktop.*)$|(.*WebCord.*)$ @@ -120,13 +122,6 @@ windowrulev2 = size 30% 15%, class:(file-roller), title:(Extract archive) windowrulev2 = center, class:(file-roller), title:(Extract archive) -# qBittorrent -windowrulev2 = workspace 9, class:(org.qbittorrent.qBittorrent) -windowrulev2 = float, class:(org.qbittorrent.qBittorrent) -windowrulev2 = size 1137 547, class:(org.qbittorrent.qBittorrent), title:(.*qbittorrent.*) -windowrulev2 = center, class:(org.qbittorrent.qBittorrent), title:(.*qbittorrent.*) - - # Kitty windowrule = float, title:^(Kitty)$ windowrule = size 800 500, title:^(Kitty)$ @@ -179,7 +174,9 @@ windowrulev2 = center, title:(File Operation Progress) # Layer Rules +layerrule = noanim, popup.* layerrule = noanim, hyprpicker +layerrule = noanim, selection layerrule = noanim, noanim layerrule = blur, gtk-layer-shell @@ -188,5 +185,12 @@ layerrule = blur, launcher layerrule = ignorealpha 0.5, launcher layerrule = blur, notifications layerrule = ignorealpha 0.69, notifications - +layerrule = noanim,selection layerrule = noanim, notifications + +# layerrule = animation fade, launcher + +# fabric +layerrule = noanim, fabric +# layerrule = ignorezero, fabric + diff --git a/config/hypr/UserConfigs/old win rule.conf b/config/hypr/UserConfigs/old win rule.conf new file mode 100644 index 00000000..9f20eaf6 --- /dev/null +++ b/config/hypr/UserConfigs/old win rule.conf @@ -0,0 +1,211 @@ +# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more + +# Opacity Rules +windowrulev2 = opacity 0.9 0.6, class:^([Rr]ofi)$ +windowrulev2 = opacity 0.9 0.6, class:^(yad)$ +windowrulev2 = opacity 0.9 0.6, class:^(mousepad)$ +windowrulev2 = opacity 0.9 0.9, class:^(geany)$ +windowrulev2 = opacity 0.80 0.70,class:^(nm-applet)$ +windowrulev2 = opacity 0.80 0.70,class:^(nm-connection-editor)$ + +# Xwaylandvideobridge (if installed) +windowrulev2 = opacity 0.0 override,class:^(xwaylandvideobridge)$ +windowrulev2 = noanim,class:^(xwaylandvideobridge)$ +windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$ +windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$ +windowrulev2 = noblur,class:^(xwaylandvideobridge)$ + +# Workspace Rules +windowrule = workspace 5, ^(.*vlc*)$ + +#windowrule = stayfocused, ^(com.github.Aylur.ags)$ +windowrule = float, ^(com.github.Aylur.ags)$ + +# MPV +windowrule = workspace 5, ^(.*mpv*)$ +windowrulev2 = float, class:^(.*mpv.*) +windowrulev2 = size 70% 70%, class:^(.*mpv.*) + + +# Do not lose focus when rofi or gnome polkit is opened +windowrulev2 = stayfocused, class:(rofi) +windowrulev2 = stayfocused, class:(polkit-gnome-authentication-agent-1) + +# Pavucontrol +windowrulev2 = float, class:(pavucontrol) +windowrulev2 = size 533 533, class:(pavucontrol) +windowrulev2 = center, class:(pavucontrol) + +# Zathura +$zathura = class:^(.*zathura.*)$ +windowrulev2 = float, $zathura +windowrulev2 = size 35% 90%, $zathura +windowrulev2 = center 1, $zathura + + +# OBS + +# Main window / Profile screen +windowrulev2 = size 75% 70%, class:(com.obsproject.Studio), title:(.*Profile:.*) + +# Class settings +windowrulev2 = workspace 9, class:(com.obsproject.Studio) +windowrulev2 = float, class:(com.obsproject.Studio) +windowrulev2 = center, class:(com.obsproject.Studio) + +# Folder picker +windowrulev2 = size 50% 45%, class:(com.obsproject.Studio), title:(Select Recording Directory) +windowrulev2 = center, class:(com.obsproject.Studio), title:(Select Recording Directory) + + +# Fireox class settings +windowrulev2 = workspace 3, class:^(firefox)$ +windowrulev2 = workspace 3, class:^(qutebrowser)$ +windowrulev2 = workspace 3, class:^(Firefox-esr)$ +windowrulev2 = opacity 0.9 0.9, class:^(firefox)$ +windowrulev2 = opacity 0.95 0.95,title:^(Picture-in-Picture)$ +windowrulev2 = pin,title:^(Picture-in-Picture)$ +windowrulev2 = float, title:^(Picture-in-Picture)$ +windowrulev2 = size 25% 25%,title:^(Picture-in-Picture)$ +windowrulev2 = move 72% 7%,title:^(Picture-in-Picture)$ +windowrulev2 = idleinhibit fullscreen, class:^(.*firefox.*)$ + +# Thunar +windowrulev2 = size 456 884, title:(.*Compress.*), class:(thunar) +windowrulev2 = center, title:(.*Compress.*), class:(thunar) +windowrulev2 = float, title:(.*Compress.*), class:(thunar) + +windowrulev2 = size 516 158, title:(.*Rename.*), class:(thunar) +windowrulev2 = center, title:(.*Rename.*), class:(thunar) + +windowrulev2 = size 950 270, title:(Confirm to replace files), class:(thunar) +windowrulev2 = center, title:(Confirm to replace files), class:(thunar) +windowrulev2 = float,title:^(Confirm to replace files) + +windowrulev2 = size 444 103, title:(File Operation Progress), class:(thunar) +windowrulev2 = center, title:(File Operation Progress), class:(thunar) + +windowrulev2 = size 565 591, class:(thunar), title:(Properties) +windowrulev2 = center, class:(thunar), title:(Properties) + +windowrulev2 = size 477 149, class:(thunar), title:(Create New Folder) +windowrulev2 = center, class:(thunar), title:(Create New Folder) + +windowrulev2 = workspace 4, class:(thunar) +windowrulev2 = opacity 0.9 0.9, class:^([Tt]hunar)$ +#windowrulev2 = float, class:(thunar) +#windowrulev2 = size 1161 619, class:(thunar) +#windowrulev2 = center, class:(thunar) + + +# File / Folder pickers +$center-float = class:^(center-float)$|^(.*file-roller.*)$|^(.*FileRoller.*)$ +$center-float-title = title:^(.*Open Folder.*)$|^(.*Open File.*)$|^(.*Save File.*)$|^(.*Save Folder.*)$|^(.*Save Image.*)$|^(.*Save As.*)$|^(.*Open As.*)$ +windowrulev2 = float, $center-float +windowrulev2 = float, $center-float-title +windowrulev2 = size 50% 50%, $center-float +windowrulev2 = size 50% 50%, $center-float-title +windowrulev2 = center 1, $center-float +windowrulev2 = center 1, $center-float-title + + +# VS Code +windowrulev2 = workspace 2, class:^(.*Code.*)$|(.*codium.*)$|(.*VSCodium.*) +windowrulev2 = opacity 0.9 0.9, class:^(.*Code.*)$|(.*codium.*)$|(.*codium-url-handler.*)$|(.*VSCodium.*) + + +# Telegram +# windowrulev2 = fullscreen, class:(org.telegram.desktop), title:(Media viewer) + +windowrulev2 = opacity 0.90, class:^(org.telegram.desktop)$ +windowrulev2 = workspace 6, class:(org.telegram.desktop) +windowrulev2 = size 833 455, class:(org.telegram.desktop), title:(Choose Files) +windowrulev2 = center, class:(org.telegram.desktop), title:(Choose Files) +#windowrulev2 = float, class:^(org.telegram.desktop)$ +#windowrulev2 = center, class:^(org.telegram.desktop)$ +#windowrulev2 = size 800 800, class:^(org.telegram.desktop)$ + +# discord +windowrulev2 = workspace 7, class:^(.*discord.*)$|(.*vesktop.*)$|(.*WebCord.*)$ + +# File Roller +windowrulev2 = workspace 4, class:(file-roller), title:(Archive Manager) +windowrulev2 = float, class:(file-roller), title:(Archive Manager) +windowrulev2 = size 45% 50%, class:(file-roller), title:(Archive Manager) +windowrulev2 = center, class:(file-roller), title:(Archive Manager) +windowrulev2 = float, class:(file-roller), title:(Extract archive) +windowrulev2 = size 30% 15%, class:(file-roller), title:(Extract archive) +windowrulev2 = center, class:(file-roller), title:(Extract archive) + + +# qBittorrent +windowrulev2 = workspace 9, class:(org.qbittorrent.qBittorrent) +windowrulev2 = float, class:(org.qbittorrent.qBittorrent) +windowrulev2 = size 1137 547, class:(org.qbittorrent.qBittorrent), title:(.*qbittorrent.*) +windowrulev2 = center, class:(org.qbittorrent.qBittorrent), title:(.*qbittorrent.*) + + +# Kitty +windowrule = opacity 0.9 0.9,kitty +windowrule = float, title:^(Kitty)$ +windowrule = size 800 500, title:^(Kitty)$ +windowrule = move center, title:^(Kitty)$ +windowrule = animation slide, title:^(Kitty)$ +windowrule = float, title:^(Kitty)$ +windowrule = float, kitty_float + + +# Bluetooth applet +windowrulev2 = float, class:(blueman) +windowrulev2 = size 680 665, class:(blueman) +windowrulev2 = center, class:(blueman) + + +# IMV image viewer +$center-float-large = class:^(center-float-large)$|^(.*imv.*)$|^(.*imv-dir.*)$ +windowrulev2 = float, $center-float-large +windowrulev2 = size 70% 70%, $center-float-large +windowrulev2 = center 1, $center-float-large + + +# qt5ct / qt6ct +windowrulev2 = float, class:(qt5ct) +windowrulev2 = float, class:(qt6ct) + +windowrulev2 = size 1256 689, class:(qt5ct) +windowrulev2 = size 1256 689, class:(qt6ct) + +windowrulev2 = center, class:(qt5ct) +windowrulev2 = center, class:(qt6ct) + +windowrulev2 = size 257 116, class:(qt5ct), title:(Enter Color Scheme Name) +windowrulev2 = size 257 116, class:(qt6ct), title:(Enter Color Scheme Name) + +windowrulev2 = size 548 476, class:(qt5ct), title:(Select Color) +windowrulev2 = size 548 476, class:(qt6ct), title:(Select Color) + + +# Other +windowrule = float, nm-connection-editor|vlc|yad|rofi|Lxappearance +windowrule = float, org.kde.polkit-kde-authentication-agent-1 +windowrulev2 = size 543 239, class:^(polkit-gnome-authentication-agent-1)$ +windowrulev2 = float, class:^(polkit-gnome-authentication-agent-1)$ +windowrulev2 = center, class:(polkit-gnome-authentication-agent-1) + +windowrulev2 = float, title:(File Operation Progress) +windowrulev2 = center, title:(File Operation Progress) + + + +# Layer Rules +layerrule = noanim, hyprpicker + +layerrule = noanim, noanim +layerrule = blur, gtk-layer-shell +layerrule = ignorezero, gtk-layer-shell +layerrule = blur, launcher +layerrule = ignorealpha 0.5, launcher +layerrule = blur, notifications +layerrule = ignorealpha 0.69, notifications + +layerrule = noanim, notifications diff --git a/config/hypr/scripts/status.sh b/config/hypr/scripts/status.sh new file mode 100755 index 00000000..e542d205 --- /dev/null +++ b/config/hypr/scripts/status.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +############ Variables ############ +enable_battery=false + +####### Check availability ######## +for battery in /sys/class/power_supply/*BAT*; do + if [[ -f "$battery/uevent" ]]; then + enable_battery=true + break + fi +done + +############# Output ############# +if [[ $enable_battery == true ]]; then + if [[ $(cat /sys/class/power_supply/*/status | head -1) == "Charging" ]]; then + echo -n "(+) " + fi + echo -n "$(cat /sys/class/power_supply/*/capacity | head -1)"% remaining + echo '' +else + exit 1 +fi diff --git a/config/hypr/scripts/wallpaper.py b/config/hypr/scripts/wallpaper.py index 58fe8a62..bfa8b3df 100644 --- a/config/hypr/scripts/wallpaper.py +++ b/config/hypr/scripts/wallpaper.py @@ -114,7 +114,7 @@ async def main(): wallpaper_engine = settings['wallpaper-engine'] hyprpaper_tpl = settings['hyprpaper-tpl'] - new_wallpaper = f"{HOME}/Picutres/wallpapers/default.jpg" + new_wallpaper = f"{HOME}/dotfiles/wallpapers/lake.png" if random: files = [f for f in os.listdir(f"{HOME}/Pictures/wallpapers") if f.endswith(('.png', '.jpg', '.jpeg'))] @@ -218,7 +218,7 @@ async def png_image(wallpaper: str): with_image = f"with image {wallpaper}" state(None, "Converting jpg to png...", with_image) print(":: Converting jpg to png...") - cmd = f"magick {wallpaper} {png}" + cmd = f"magick {wallpaper}[0] {png}" process = await asyncio.create_subprocess_shell( cmd, stdout=asyncio.subprocess.PIPE, @@ -236,7 +236,7 @@ async def square_image(wallpaper): with_image = f"with image {wallpaper}" state(None, "Creating square version...", with_image) print(":: Creating square version") - cmd = f"magick {wallpaper} -gravity Center -extent 1:1 {square}" + cmd = f"magick {wallpaper}[0] -gravity Center -extent 1:1 {square}" process = await asyncio.create_subprocess_shell( cmd, stdout=asyncio.subprocess.PIPE,