From a153022b7d457466db9140c62dc5564f9de7a3af Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 5 Nov 2023 14:02:06 +0900 Subject: changes for new Hyprland-Dots --- config/hypr/configs/Execs.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config/hypr/configs/Execs.conf') diff --git a/config/hypr/configs/Execs.conf b/config/hypr/configs/Execs.conf index 15bd093a..8c0c4615 100644 --- a/config/hypr/configs/Execs.conf +++ b/config/hypr/configs/Execs.conf @@ -15,13 +15,17 @@ exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESK # Polkit (Polkit Gnome / KDE) exec-once = $scriptsDir/Polkit.sh +#gnome polkit for nixos +#exec-once = /nix/store/ww65bg045dn4nqcnqprarkfhpzzl30hf-polkit-gnome-0.105/libexec/polkit-gnome-authentication-agent-1 +#exec-once = $scriptsDir/Polkit-NixOS.sh + # Portal Hyprland #exec-once = $scriptsDir/PortalHyprland.sh # starup apps exec-once = waybar & exec-once = dunst & -exec-once = blueman-applet & +#exec-once = blueman-applet & exec-once = nm-applet --indicator & #exec-once = rog-control-center & #exec-once = easyeffects --gapplication-service -l my_own -- cgit v1.2.3 From e7aefbad57de5b4cf828484ec4d9642b4ab60c1c Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Sun, 5 Nov 2023 14:09:06 +0900 Subject: update --- config/hypr/configs/Execs.conf | 1 - config/hypr/configs/Settings.conf | 3 +-- config/hypr/configs/WindowRules.conf | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) (limited to 'config/hypr/configs/Execs.conf') diff --git a/config/hypr/configs/Execs.conf b/config/hypr/configs/Execs.conf index 8c0c4615..9691e5cf 100644 --- a/config/hypr/configs/Execs.conf +++ b/config/hypr/configs/Execs.conf @@ -16,7 +16,6 @@ exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESK exec-once = $scriptsDir/Polkit.sh #gnome polkit for nixos -#exec-once = /nix/store/ww65bg045dn4nqcnqprarkfhpzzl30hf-polkit-gnome-0.105/libexec/polkit-gnome-authentication-agent-1 #exec-once = $scriptsDir/Polkit-NixOS.sh # Portal Hyprland diff --git a/config/hypr/configs/Settings.conf b/config/hypr/configs/Settings.conf index 46ac85d1..87fb04dc 100644 --- a/config/hypr/configs/Settings.conf +++ b/config/hypr/configs/Settings.conf @@ -2,7 +2,6 @@ ## JaKooLit Github - https://github.com/JaKooLit # blurls = waybar -blurls = wofi #blurls = rofi dwindle { @@ -135,7 +134,7 @@ misc { enable_swallow = true no_direct_scanout = true #for fullscreen games focus_on_activate = false - swallow_regex = ^(foot)$ + swallow_regex = ^(kitty)$ } binds { diff --git a/config/hypr/configs/WindowRules.conf b/config/hypr/configs/WindowRules.conf index 44a95e40..2bb44a5d 100644 --- a/config/hypr/configs/WindowRules.conf +++ b/config/hypr/configs/WindowRules.conf @@ -7,7 +7,7 @@ windowrule = float, pavucontrol windowrule = float, nwg-look|qt5ct|mpv windowrule = float, onedriver|onedriver-launcher windowrule = float, zoom -windowrule = float, wofi +windowrule = float, rofi windowrule = float, gnome-system-monitor #windowrule = noblur,gamescope -- cgit v1.2.3 From 8f2b0a6d7437e73f777cfad809fb950c0f2c9491 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 6 Nov 2023 10:34:28 +0900 Subject: initial boot script to for pywal & wallpaper set --- config/hypr/configs/Execs.conf | 4 +++- config/hypr/initial-boot.sh | 27 +++++++++++++++++++++++++++ copy.sh | 20 ++------------------ 3 files changed, 32 insertions(+), 19 deletions(-) create mode 100644 config/hypr/initial-boot.sh (limited to 'config/hypr/configs/Execs.conf') diff --git a/config/hypr/configs/Execs.conf b/config/hypr/configs/Execs.conf index 9691e5cf..92771f61 100644 --- a/config/hypr/configs/Execs.conf +++ b/config/hypr/configs/Execs.conf @@ -3,10 +3,12 @@ $scriptsDir = $HOME/.config/hypr/scripts $themes = $HOME/.config/hypr/themes $lock = $scriptsDir/LockScreen.sh +# Initial boot script to start Pywal and Set wallpaper. This line and corresponding script can be safely deleted once logged in +exec-once = $HOME/.config/hypr/initial-boot.sh + # wallpaper stuff exec-once = swww query || swww init #exec-once = swww query || swww init && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png #using swww utility -#exec-once = swaybg -m fill -i $HOME/Pictures/wallpapers/mecha-nostalgia.png #using swaybg # Startup exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP diff --git a/config/hypr/initial-boot.sh b/config/hypr/initial-boot.sh new file mode 100644 index 00000000..a024ce63 --- /dev/null +++ b/config/hypr/initial-boot.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# THIS SCRIPT CAN BE DELETED ONCE BOOTED!! + +# A bash script designed to ran it only once dotfiles installed +# Check if a marker file exists. +if [ ! -f ~/.hyprland_startup_done ]; then + + # Check if the ~/.cache/wal directory exists + if [ ! -d ~/.cache/wal ]; then + printf " Initializing pywal........\n\n" + # Check if the ~/Pictures/wallpapers directory exists + if [ -d ~/Pictures/wallpapers ]; then + # Run wal with random wallpapers from ~/Pictures/wallpapers + wal -i ~/Pictures/wallpapers/* + echo "Pywal initialized" + fi + fi + + # Initializing the initial wallpaper and wal + exec ~/.config/hypr/scripts/Wallpaper.sh + + # Create a marker file to indicate that the script has been executed. + touch ~/.hyprland_startup_done +fi + + diff --git a/copy.sh b/copy.sh index 3215fdb7..5735cb6a 100644 --- a/copy.sh +++ b/copy.sh @@ -126,24 +126,8 @@ ln -sf "$HOME/.config/dunst/styles/dunstrc-dark" "$HOME/.config/dunst/dunstrc" & # Set some files as executable chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG" -# Check if the ~/.cache/wal directory exists -if [ ! -d ~/.cache/wal ]; then - printf "${NOTE} Initializing pywal........\n\n" - # Check if the ~/Pictures/wallpapers directory exists - if [ -d ~/Pictures/wallpapers ]; then - # Run wal with random wallpapers from ~/Pictures/wallpapers - wal -i ~/Pictures/wallpapers/* - echo "${OK} Pywal initialized" - else - echo "${ERROR} ~/Pictures/wallpapers directory not found." - echo "${WARN} Please make sure to have wallpapers in ~/Pictures/wallpapers." - fi -else - echo "${OK} ~/.cache/wal directory found. No action required." -fi - -# Initializing the initial wallpaper and wal -~/.config/hypr/scripts/Wallpaper.sh 2>&1 | tee -a "$LOG" +# Set executable for initial-boot.sh +chmod +x ~/.config/hypr/initial-boot.sh 2>&1 | tee -a "$LOG" printf "\n${OK} Copy Completed!\n\n" printf "${NOTE} Highly recommended to logout and re-login\n\n" -- cgit v1.2.3 From ab900c9c2183d55ac8be674993bd437e915548bc Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 6 Nov 2023 22:17:32 +0900 Subject: small tweak --- config/hypr/configs/Execs.conf | 9 ++++++--- config/hypr/configs/WindowRules.conf | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'config/hypr/configs/Execs.conf') diff --git a/config/hypr/configs/Execs.conf b/config/hypr/configs/Execs.conf index 92771f61..a5777762 100644 --- a/config/hypr/configs/Execs.conf +++ b/config/hypr/configs/Execs.conf @@ -46,7 +46,10 @@ exec-once = $scriptsDir/RainbowBorders.sh # auto close of apps (timeout 5 secs) # exec-once = $scriptsDir/AppAutoClose.sh -# sway-idle with lock -exec-once = swayidle -w timeout 1200 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock' -# without lock + +# sway-idle with lock only +exec-once = swayidle -w timeout 1200 '$lock' timeout 1200 +# sway-idle with lock and sleep +#exec-once = swayidle -w timeout 1200 '$lock' timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep '$lock' +# sway idle without lock #exec-once = swayidle -w timeout 1200 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' diff --git a/config/hypr/configs/WindowRules.conf b/config/hypr/configs/WindowRules.conf index 2bb44a5d..72ac1a2c 100644 --- a/config/hypr/configs/WindowRules.conf +++ b/config/hypr/configs/WindowRules.conf @@ -9,6 +9,7 @@ windowrule = float, onedriver|onedriver-launcher windowrule = float, zoom windowrule = float, rofi windowrule = float, gnome-system-monitor +windowrule = float, yad #windowrule = noblur,gamescope #windowrule = fullscreen,gamescope @@ -42,9 +43,11 @@ windowrulev2 = opacity 0.9 0.7, class:^([Tt]hunar)$ windowrulev2 = opacity 0.8 0.6, class:^(pcmanfm-qt)$ windowrulev2 = opacity 0.9 0.7, class:^(gedit)$ #windowrulev2 = opacity 0.8 0.7, class:^(foot)$ +windowrulev2 = opacity 0.8 0.7, class:^(kitty)$ #windowrulev2 = opacity 0.9 0.7, class:^(mousepad)$ windowrulev2 = opacity 0.9 0.7, class:^(codium-url-handler)$ windowrulev2 = opacity 0.9 0.7, class:^(VSCodium)$ +windowrulev2 = opacity 0.9 0.7, class:^(yad)$ #layerrule = unset,class:^([Rr]ofi)$ #layerrule = blur,class:^([Rr]ofi)$ -- cgit v1.2.3