summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-01-19 16:24:29 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-01-19 16:24:29 +0800
commit29c6c90752b87ffb90487ec2de4f188ceab659c2 (patch)
tree91b523608b542230708c1cacea099f5d3012d341
parentb915d398ab9f1c3d337a6605d164d09e23128b7e (diff)
update: hyprland
-rw-r--r--dot-config/hypr/autostart.conf16
-rw-r--r--dot-config/hypr/binds.conf6
-rw-r--r--dot-config/hypr/colors.conf40
-rw-r--r--dot-config/hypr/env.conf31
-rw-r--r--dot-config/hypr/hyprland.conf22
-rw-r--r--dot-config/hypr/hyprlandd.conf6
-rw-r--r--dot-config/hypr/rules.conf9
7 files changed, 73 insertions, 57 deletions
diff --git a/dot-config/hypr/autostart.conf b/dot-config/hypr/autostart.conf
index bccb136d..a39b9e81 100644
--- a/dot-config/hypr/autostart.conf
+++ b/dot-config/hypr/autostart.conf
@@ -10,9 +10,9 @@ exec-once = gsettings set org.gnome.desktop.interface cursor-theme Bibata-Rainbo
exec-once = hyprctl setcursor Bibata-Rainbow-Modern 24
# Launch hyprland plugins
-exec-once = hyprpm reload || hyprpm update
+# exec-once = hyprpm reload || hyprpm update
# Start pyprland daemon
-exec-once = pyprland
+# exec-once = pyprland
# Waybar
exec-once = waybar
@@ -46,7 +46,7 @@ exec-once = wl-paste --type image --watch cliphist store
# exec-once = wl-clip-persist --clipboard regular
# Notification agent
-exec-once = swaync
+exec-once = while true; do swaync; done
# window swicher daemon
exec-once = hyprswitch init --size-factor 5
@@ -73,6 +73,7 @@ exec-once = bitwarden-desktop
# exec-once = kdeconnectd
exec-once = killall input-leap input-leaps; input-leap # works with https://github.com/3l0w/Hyprland/tree/feat/input-capture-impl
exec-once = nextcloud --background
+exec-once = [noinitialfocus; workspace, special]localsend --hidden
exec-once = [workspace 6 silent; noinitialfocus] discord --start-minimized
exec-once = beeper --no-sandbox --hidden --default-frame --enable-wayland-ime
# exec-once = echo 'ddcci 0x37' | sudo tee /sys/bus/i2c/devices/i2c-13/new_device
@@ -91,3 +92,12 @@ exec-once = $SCRIPTSDIR/hypridle.sh --stopidle
# spam of notification at start(e.g. chromium)
exec-once = swaync-client --dnd-on && sleep 3 && swaync-client --dnd-off
+
+# thunar launch faster
+exec-once = while true; do thunar --daemon; done
+
+# alacritty
+# exec-once = while true; do alacritty --daemon; done
+
+# ghostty
+exec-once = [workspace, special] ghostty
diff --git a/dot-config/hypr/binds.conf b/dot-config/hypr/binds.conf
index 9d57e0ec..cd75a7e2 100644
--- a/dot-config/hypr/binds.conf
+++ b/dot-config/hypr/binds.conf
@@ -12,13 +12,14 @@ binds {
$mod = SUPER # Sets "SUPER" key as main modifier
# Launching...
-bind = $mod, return, execr, gdbus call --session --dest com.mitchellh.ghostty --object-path /com/mitchellh/ghostty --method org.gtk.Actions.Activate new-window [] []
+bind = $mod, return, execr, $term
bind = $mod shift, return, exec, $termfloat
# bind = $mod space, return, execr, $terminal start --class pseudo
bind = $mod alt, Delete, execr, $rofiexec/rofi_powermenu
bind = alt, F1, execr, $rofiexec/rofi_launcher
bind = alt, F2, execr, $rofiexec/rofi_runner
-bind = alt, F3, execr, $rofiexec/sgpt
+bind = alt, F3, execr, $rofiexec/rofi_calc
+bind = alt, F4, execr, $rofiexec/sgpt
bind = $mod, period, execr, $rofiexec/rofi_emoji
# utils
bind = $mod, c, execr, $rofiexec/rofi_configs
@@ -57,7 +58,6 @@ bind = $mod shift, g, execr, gtk-launch shortwave.desktop
# XF86 keys & Misc
bind = ,XF86Print, execr, pidof slurp || $HOME/scripts/sysutil.sh screenshot --now
-bind = alt, XF86AudioMute, execr, $HOME/scripts/sysutil.sh screenshot --in5sec
bind = $mod shift, s, execr, $HOME/scripts/sysutil.sh screenshot --area
# Volume
diff --git a/dot-config/hypr/colors.conf b/dot-config/hypr/colors.conf
index 34e4a097..11fe7885 100644
--- a/dot-config/hypr/colors.conf
+++ b/dot-config/hypr/colors.conf
@@ -1,20 +1,20 @@
-$wallpaper = /home/system/.cache/7952139-uhd_3840_2160_30fps.mp4.png
-$background = rgb(120E19)
-$foreground = rgb(F9F9FE)
-$cursor = rgb(F9F9FE)
-$color0 = rgb(3A3742)
-$color1 = rgb(0D0640)
-$color2 = rgb(6C6E8E)
-$color3 = rgb(8576B6)
-$color4 = rgb(857AB3)
-$color5 = rgb(ADADC7)
-$color6 = rgb(EEEFFC)
-$color7 = rgb(EEEEF5)
-$color8 = rgb(A7A7AC)
-$color9 = rgb(0D0640)
-$color10 = rgb(6C6E8E)
-$color11 = rgb(8576B6)
-$color12 = rgb(857AB3)
-$color13 = rgb(ADADC7)
-$color14 = rgb(EEEFFC)
-$color15 = rgb(EEEEF5)
+$wallpaper = /home/system/.cache/mountain-and-starry-sky.3840x2160.mp4.png
+$background = rgb(18191A)
+$foreground = rgb(D7DDDF)
+$cursor = rgb(D7DDDF)
+$color0 = rgb(3F4041)
+$color1 = rgb(131A1F)
+$color2 = rgb(5D4502)
+$color3 = rgb(907F4E)
+$color4 = rgb(798195)
+$color5 = rgb(8B97BE)
+$color6 = rgb(8C9EA4)
+$color7 = rgb(BDC6C9)
+$color8 = rgb(848B8D)
+$color9 = rgb(131A1F)
+$color10 = rgb(5D4502)
+$color11 = rgb(907F4E)
+$color12 = rgb(798195)
+$color13 = rgb(8B97BE)
+$color14 = rgb(8C9EA4)
+$color15 = rgb(BDC6C9)
diff --git a/dot-config/hypr/env.conf b/dot-config/hypr/env.conf
index 03ce1224..916127ae 100644
--- a/dot-config/hypr/env.conf
+++ b/dot-config/hypr/env.conf
@@ -19,26 +19,26 @@ env = NVD_BACKEND,direct
# env = AQ_DRM_DEVICES,/dev/dri/card1:/dev/dri/card0
# XDG
-env = XDG_CURRENT_DESKTOP,Hyprland
-env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
+# set by hyprland
+# env = XDG_CURRENT_DESKTOP,Hyprland
+# env = XDG_SESSION_TYPE,wayland
-# QT
+# QT & scale
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
-# env = QT_QPA_PLATFORM=wayland;xcb # Not yet working for onlyoffice-editor
-env = QT_QPA_PLATFORM = xcb
+env = QT_QPA_PLATFORM,wayland;xcb
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
-env = QT_QPA_PLATFORMTHEME,qt6ct
+env = QT_QPA_PLATFORMTHEME,qt5ct:qt6ct
# env = SDL_VIDEODRIVER,wayland
+env = QT_ENABLE_HIGHDPI_SCALE, 1
+# env = QT_SCALE_FACTOR,2
+
# java fix
env = _JAVA_AWT_WM_NONREPARENTING,1
-
-# Scale
-env = QT_AUTO_SCREEN_SCALE_FACTOR,1
# env = GDK_DPI_SCALE,1.5
-# env = QT_SCALE_FACTOR,2
+
# Electron blurry etc fix
-env = ELECTRON_OZONE_PLATFORM_HINT,auto
+env = ELECTRON_OZONE_PLATFORM_HINT,wayland
# Input method
# env = GTK_IM_MODULE,fcitx
@@ -65,10 +65,11 @@ env = GDK_BACKEND,wayland,x11,*
env = QT_QPA_PLATFORM,wayland;xcb
env = SDL_VIDEODRIVER,wayland # Remove or set to x11 if games that provide older versions of SDL cause compatibility issues
-# QT
-env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
-env = QT_QPA_PLATFORM,wayland;xcb
-
# firefox
env = MOZ_DISABLE_RDD_SANDBOX, 1
env = MOZ_ENABLE_WAYLAND,1
+
+# defaults
+env = BROWSER, zen-browser
+env = EDITOR, lvim
+env = TERM, ghostty
diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf
index 42a5ab59..03282c4f 100644
--- a/dot-config/hypr/hyprland.conf
+++ b/dot-config/hypr/hyprland.conf
@@ -12,8 +12,8 @@ monitor=,highres@highrr,auto,auto # ,bitdepth,10
###################
# Program defaults
-$terminal = ghostty
-$termfloat = [float; size 40% 40%; workspace +0] $terminal
+$term = ghostty
+$termfloat = [float; size 40% 40%; workspace +0] $term
$editor = lvim
# $browser = thorium-browser
$browser = zen-browser
@@ -33,7 +33,7 @@ $outer_gaps = 12
source = $HYPRDIR/colors.conf
# misc
-$waylandarg = --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform-hint=auto --enable-wayland-ime
+$waylandarg = --enable-features=WaylandWindowDecorations,UseOzonePlatform --ozone-platform-hint=wayland --enable-wayland-ime
#####################
@@ -71,6 +71,10 @@ general {
}
}
+ecosystem {
+ no_donation_nag = true
+}
+
xwayland {
force_zero_scaling = true
}
@@ -209,6 +213,8 @@ render {
explicit_sync = 1
explicit_sync_kms = 1
direct_scanout = true
+ # xp_mode = true # crazy drag bg
+ # ctm_animation = 1
}
opengl {
@@ -240,8 +246,8 @@ input {
}
cursor {
- use_cpu_buffer = true
- # no_hardware_cursors = false
+ # use_cpu_buffer = true
+ no_hardware_cursors = true
no_break_fs_vrr = true
# zoom_rigid = true
persistent_warps = true
@@ -256,7 +262,7 @@ plugin {
# hyprfocus {
# enabled = yes
# focus_animation = shrink
- # animate_floating = yes
+ # animate_floating = yes
# animate_worksapcechange = yes
# }
dynamic-cursors {
@@ -374,7 +380,7 @@ source = ~/.config/hypr/binds.conf
source = ~/.config/hypr/autostart.conf
debug {
- # disable_logs = false
+ disable_logs = false
# overlay = true # show fps
# suppress_errors = true
error_position = 1
@@ -382,5 +388,5 @@ debug {
# experimental:wide_color_gamut = true
-# experimental:xx_color_management_v4 = true
+experimental:xx_color_management_v4 = true
# experimental:hdr = true
diff --git a/dot-config/hypr/hyprlandd.conf b/dot-config/hypr/hyprlandd.conf
index 8b2f7a84..11d455dc 100644
--- a/dot-config/hypr/hyprlandd.conf
+++ b/dot-config/hypr/hyprlandd.conf
@@ -129,9 +129,9 @@ animations {
animation = fade, 1, 4, md3_decel
- # animation = windows, 1, 3, overshot, popout 15%
+ animation = windows, 1, 3, overshot, slide
# animation = windowsOut, 1, 2, slow-fast, popin 15%
- # animation = windowsOut, 1, 2, slow-fast, popout 15%
+ animation = windowsOut, 1, 2, slow-fast, popin 15%
# animation = windowsMove, 1, 2, md3_accel # when new window appears, it will block it for a while since its slower then windowIn animation
animation = workspaces, 1, 6, fast-slow, slide
animation = workspacesIn, 1, 6, fast-slow, slidefade
@@ -363,5 +363,3 @@ bind = ctrl shift, k, exec, $terminal
bind = ctrl shift, ;, pin
bind = ctrl shift, ', fullscreen
-
-binds:allow_pin_fullscreen = true
diff --git a/dot-config/hypr/rules.conf b/dot-config/hypr/rules.conf
index d5dc4d72..9dc5e2c1 100644
--- a/dot-config/hypr/rules.conf
+++ b/dot-config/hypr/rules.conf
@@ -102,7 +102,7 @@ windowrulev2 = tag +system, class:^(virt-manager|blueman-adapters|GParted|Xdm-ap
windowrulev2 = tag +misc, class:^(os_server|Os_server)$
# floating applications
-windowrulev2 = float, class:^(zoom|sxiv|Sxiv|Viewnior|feh|nm-connection-editor|install4j-burp-StartBurp|thorium-app.shortwave.com__-Default|thorium-mdpkiolbdkhdjpekfbkbmhigcaggjagi-Profile_1|float|thorium-lnachpgegbbmnnlgpokibfjlmppeciah-Default|Beeper|electron|com.github.rafostar.Clapper)$
+windowrulev2 = float, class:^(zoom|sxiv|Sxiv|viewnior|feh|nm-connection-editor|install4j-burp-StartBurp|thorium-app.shortwave.com__-Default|thorium-mdpkiolbdkhdjpekfbkbmhigcaggjagi-Profile_1|float|thorium-lnachpgegbbmnnlgpokibfjlmppeciah-Default|Beeper|electron|com.github.rafostar.Clapper)$
windowrulev2 = float, title:^(Steam Settings|Sign in – Google accounts)$
# pin apps
@@ -135,12 +135,12 @@ windowrulev2 = tag +media-contents, title:^(Picture-in-Picture)$
windowrulev2 = size 25% 25%, title:^(Picture-in-Picture)$
# removes title/border
-windowrulev2 = tag +fakefullscreen, class:^(thorium-mdpkiolbdkhdjpekfbkbmhigcaggjagi-Profile_1|thorium-lnachpgegbbmnnlgpokibfjlmppeciah-Default)
+windowrulev2 = tag +fakefullscreen, class:^(thorium-mdpkiolbdkhdjpekfbkbmhigcaggjagi-Profile_1|thorium-lnachpgegbbmnnlgpokibfjlmppeciah-Default)$
# Full screen applications
# time-sensitive app rules
-windowrulev2 = tag +time-sensitive, class:^(polkit-gnome-authentication-agent-1|pinentry-|hyprland-share-picker.*|gcr-prompter|io.missioncenter.MissionCenter)$
-windowrulev2 = tag +popup, title:^(Open File|Open|Select a File|Choose wallpaper|Open Folder|Save As|Save File|Library|File Upload|.*- Properties)$
+windowrulev2 = tag +time-sensitive, class:^(polkit-gnome-authentication-agent-1|pinentry-|hyprland-share-picker.*|gcr-prompter|io.missioncenter.MissionCenter|hyprpolkitagent)$
+windowrulev2 = tag +popup, title:^(Open File|Open|Select a File|Choose wallpaper|Open Folder|Save As|Save File|Library|File Upload|.*- Properties|Enter name of file to save to…)$
windowrulev2 = tag +popup, class:^(xdg-desktop-portal.*|org.freedesktop.impl.portal.desktop.kde|xdg-desktop-portal-gtk)$
windowrulev2 = dimaround, tag:time-sensitive
@@ -165,6 +165,7 @@ windowrulev2 = noshadow,floating:0
# windowrulev2 = opacity 0.85 0.75, class:^code$
# windowrulev2 = opacity 0.85 0.75, class:^code-url-handler$
windowrulev2 = opacity 0.85 0.75, class:^cursor-url-handler$
+windowrulev2 = opacity 0 0, title:^Myass$
windowrulev2 = opacity 1.00 0.90, class:^TelegramDesktop$
windowrulev2 = opacity 0.90 0.80, class:^Spotify$
windowrulev2 = opacity 0.90 0.80, class:^Cider$