From 75ccd0a72b132dc7cab1c8f39bf4cc111a505bea Mon Sep 17 00:00:00 2001 From: Seymur Bagirov Date: Sat, 8 Feb 2025 20:28:27 +0400 Subject: [PATCH] misc: changes --- hypr/autostart.conf | 12 ++++++------ hypr/hypridle.conf | 4 ++-- hypr/hyprland.conf | 37 ++++++++++++++++++++++++++----------- hypr/immediate.conf | 1 + hypr/keyboard.conf | 3 --- hypr/multimedia.conf | 13 +++++++++++++ kitty/kitty.conf | 4 ++-- 7 files changed, 50 insertions(+), 24 deletions(-) delete mode 100644 hypr/keyboard.conf create mode 100644 hypr/multimedia.conf diff --git a/hypr/autostart.conf b/hypr/autostart.conf index d96a774..63dcbe1 100755 --- a/hypr/autostart.conf +++ b/hypr/autostart.conf @@ -6,13 +6,12 @@ exec-once = waybar exec-once = swaync # notification exec-once=blueman-applet exec-once= dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP -exec-once=[workspace 1 silent] steam +exec-once=steam exec-once= xembedsniproxy & # for wine system tray exec-once=solaar --window=hide -exec-once=gio launch ~/.local/share/applications/vesktop.desktop -exec-once=hypridle -# exec-once=wallengine --screen-root HDMI-A-2 1383845959 -# exec-once=/home/themystery/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox +exec-once=vesktop +# exec-once=gio launch ~/.local/share/applications/vesktop.desktop +# exec-once=hypridle exec-once = wl-paste --type text --watch cliphist store #Stores only text data exec-once = wl-paste --type image --watch cliphist store #Stores only image data @@ -35,6 +34,7 @@ source = ~/.config/hypr/wallpaper.conf # env env = DOTNET_CLI_TELEMETRY_OPTOUT, true env = QT_QPA_PLATFORMTHEME, qt6ct +env = ELECTRON_OZONE_PLATFORM_HINT,auto source = ~/.config/hypr/nvidia.conf source = ~/.config/hypr/immediate.conf @@ -42,4 +42,4 @@ source = ~/.config/hypr/immediate.conf source = ~/.config/hypr/devices.conf -source = ~/.config/hypr/keyboard.conf +source = ~/.config/hypr/multimedia.conf diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf index 260a22d..16b88b7 100644 --- a/hypr/hypridle.conf +++ b/hypr/hypridle.conf @@ -1,12 +1,12 @@ general { lock_cmd = pidof hyprlock || hyprlock # dbus/sysd lock command (loginctl lock-session) # unlock_cmd = loginctl unlock-session # same as above, but unlock - before_sleep_cmd = loginctl lock-session # command ran before sleep + # before_sleep_cmd = loginctl lock-session # command ran before sleep after_sleep_cmd = hyprctl dispatch dpms on # command ran after sleep ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) } listener { timeout = 500 # in seconds - on-timeout = loginctl lock-session # command to run when timeout has passed + on-timeout = systemctl suspend # command to run when timeout has passed } diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 4fd9575..923154a 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -65,6 +65,7 @@ source=~/.config/hypr/specialworkspace.conf # Some default env vars. env = XCURSOR_SIZE,24 +env = HYPRCURSOR_SIZE,24 # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { @@ -143,14 +144,28 @@ animations { # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more - bezier = myBezier, 0.05, 0.9, 0.1, 1.05 + bezier = easeOutQuint,0.23,1,0.32,1 + bezier = easeInOutCubic,0.65,0.05,0.36,1 + bezier = linear,0,0,1,1 + bezier = almostLinear,0.5,0.5,0.75,1.0 + bezier = quick,0.15,0,0.1,1 - animation = windows, 1, 7, myBezier - animation = windowsOut, 1, 7, default, popin 80% - animation = border, 1, 10, default - animation = borderangle, 1, 8, default - animation = fade, 1, 7, default - animation = workspaces, 1, 6, default + animation = global, 1, 10, default + animation = border, 1, 5.39, easeOutQuint + animation = windows, 1, 4.79, easeOutQuint + animation = windowsIn, 1, 4.1, easeOutQuint, popin 87% + animation = windowsOut, 1, 1.49, linear, popin 87% + animation = fadeIn, 1, 1.73, almostLinear + animation = fadeOut, 1, 1.46, almostLinear + animation = fade, 1, 3.03, quick + animation = layers, 1, 3.81, easeOutQuint + animation = layersIn, 1, 4, easeOutQuint, fade + animation = layersOut, 1, 1.5, linear, fade + animation = fadeLayersIn, 1, 1.79, almostLinear + animation = fadeLayersOut, 1, 1.39, almostLinear + animation = workspaces, 1, 1.94, almostLinear, fade + animation = workspacesIn, 1, 1.21, almostLinear, fade + animation = workspacesOut, 1, 1.94, almostLinear, fade } dwindle { @@ -195,8 +210,8 @@ bind = $mainMod, T, fullscreen, 0 bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle bind = $mainMod, L, exec, loginctl lock-session -bind = $mainMod, S, exec, grimblast --cursor --notify copy area -bind = $mainMod_SHIFT, S, exec, grim -g "$(slurp)" - | satty --filename - --copy-command wl-copy +bind = $mainMod, S, exec, flameshot gui +# bind = $mainMod_SHIFT, S, exec, grim -g "$(slurp)" - | satty --filename - --copy-command wl-copy bind = $mainMod_SHIFT, E, exec, grimblast --cursor --notify edit area bind = $mainMod, F12, exec, grimblast --cursor --notify --freeze save screen bind = $mainMod_SHIFT, F12, exec, grimblast --cursor --notify --freeze save active @@ -270,6 +285,6 @@ misc { } render { - explicit_sync = 0 - explicit_sync_kms = 0 + explicit_sync = 1 + explicit_sync_kms = 1 } diff --git a/hypr/immediate.conf b/hypr/immediate.conf index 32da795..e63c567 100644 --- a/hypr/immediate.conf +++ b/hypr/immediate.conf @@ -4,3 +4,4 @@ windowrulev2 = immediate, class:^(steam_app_1088710)$ windowrulev2 = immediate, title:^(The Escapists 2)$ windowrulev2 = immediate, title:^(Warframe) windowrulev2 = immediate, title:^(Deadlock)$ +windowrulev2 = immediate, class:^(org.sudachi_emu.sudachi)$ diff --git a/hypr/keyboard.conf b/hypr/keyboard.conf deleted file mode 100644 index 6dd8ee2..0000000 --- a/hypr/keyboard.conf +++ /dev/null @@ -1,3 +0,0 @@ -# volume knob -bind = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ -bind = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- diff --git a/hypr/multimedia.conf b/hypr/multimedia.conf new file mode 100644 index 0000000..8c40e9d --- /dev/null +++ b/hypr/multimedia.conf @@ -0,0 +1,13 @@ +# Laptop multimedia keys for volume and LCD brightness +bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ +bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- +bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle +bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle +bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+ +bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%- + +# Requires playerctl +bindl = , XF86AudioNext, exec, playerctl next +bindl = , XF86AudioPause, exec, playerctl play-pause +bindl = , XF86AudioPlay, exec, playerctl play-pause +bindl = , XF86AudioPrev, exec, playerctl previous diff --git a/kitty/kitty.conf b/kitty/kitty.conf index 33adee3..a4d3af2 100644 --- a/kitty/kitty.conf +++ b/kitty/kitty.conf @@ -1091,7 +1091,7 @@ tab_bar_align left #: The foreground and background colors. -# background_opacity 0.97 +background_opacity 0.97 #: The opacity of the background. A number between zero and one, where #: one is opaque and zero is fully transparent. This will only work if @@ -1150,7 +1150,7 @@ tab_bar_align left #: decrease_background_opacity) or the remote control facility. #: Changing this option by reloading the config is not supported. -# background_tint 0.93 +background_tint 0.93 #: How much to tint the background image by the background color. This #: option makes it easier to read the text. Tinting is done using the