Compare commits

..

16 Commits

10 changed files with 133 additions and 23 deletions

View File

@@ -53,7 +53,7 @@ graph_symbol_net = "default"
graph_symbol_proc = "default" graph_symbol_proc = "default"
#* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace. #* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace.
shown_boxes = "cpu mem net proc" shown_boxes = "mem net proc cpu"
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs. #* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
update_ms = 2000 update_ms = 2000

View File

@@ -5,19 +5,20 @@
# Autostart necessary processes (like notifications daemons, status bars, etc.) # Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this: # Or execute your favorite apps at launch like this:
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE XDG_SESSION_DESKTOP
exec-once = gnome-keyring-daemon --start --components=secrets
exec-once = waybar exec-once = waybar
exec-once = swww-daemon exec-once = swww-daemon
exec-once = swaync exec-once = swaync
exec-once = sh -c "/home/stereov/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox %u & sleep 6 && hyprctl dispatch closewindow class:jetbrains-toolbox" exec-once = sh -c "/home/stereov/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox %u & sleep 6 && hyprctl dispatch closewindow class:jetbrains-toolbox"
exec-once = "/home/stereov/Developer/antistereov/randrwall/randrwall.py reload" exec-once = "/home/stereov/Developer/antistereov/randrwall/randrwall.py reload"
exec-once = ~/.config/hypr/scripts/cover-listener.sh exec-once = ~/.config/hypr/scripts/cover-listener.sh
exec-once = hypridle
exec-once = gsettings set org.gnome.desktop.interface gtk-theme 'adw-gtk3-dark' exec-once = gsettings set org.gnome.desktop.interface gtk-theme 'adw-gtk3-dark'
exec-once = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' exec-once = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
exec-once = curl -s https://zenquotes.io/api/random > ~/.cache/quote.json exec-once = curl -s https://zenquotes.io/api/random > ~/.cache/quote.json
exec-once = "/usr/libexec/polkit-mate-authentication-agent-1"
exec-once = seafile-applet exec-once = seafile-applet
exec-once = flatpak run org.signal.Signal

View File

@@ -16,6 +16,10 @@ env = AWT_TOOLKIT,MToolkit
env = WINIT_X11_SCALE_FACTOR,1 env = WINIT_X11_SCALE_FACTOR,1
env = XWAYLAND_NO_GLAMOR,0 env = XWAYLAND_NO_GLAMOR,0
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
xwayland { xwayland {
force_zero_scaling = true force_zero_scaling = true
} }

View File

@@ -6,12 +6,24 @@ general {
} }
listener { listener {
timeout = 151 # 5min timeout = 290
on-timeout = loginctl lock-session # lock screen when timeout has passed on-timeout = ~/.config/hypr/scripts/dim-display.sh dim
on-resume = ~/.config/hypr/scripts/dim-display.sh restore
} }
listener { listener {
timeout = 330 # 5.5min timeout = 300
on-timeout = loginctl lock-session
}
listener {
timeout = 300
on-timeout = ~/.config/hypr/scripts/dim-keyboard.sh dim
on-resume = ~/.config/hypr/scripts/dim-keyboard.sh restore
}
listener {
timeout = 305 # 5.5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected
} }

View File

@@ -6,7 +6,7 @@
input { input {
kb_layout = us kb_layout = us
kb_variant = altgr-intl kb_variant = altgr-intl
kb_options = caps:swapescape kb_options = caps:escape
kb_rules = kb_rules =
follow_mouse = 1 follow_mouse = 1

35
hypr/scripts/dim-display.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/usr/bin/env bash
set -euo pipefail
SCREEN_DEVICE="amdgpu_bl1"
STATE_DIR="${XDG_RUNTIME_DIR:-/tmp}/hypridle"
SCREEN_STATE_FILE="$STATE_DIR/screen"
mkdir -p "$STATE_DIR"
save_current() {
brightnessctl -d "$SCREEN_DEVICE" g >"$SCREEN_STATE_FILE"
}
dim() {
save_current
brightnessctl -d "$SCREEN_DEVICE" set 10%
}
restore() {
[[ -f "$SCREEN_STATE_FILE" ]] && brightnessctl -d "$SCREEN_DEVICE" s "$(cat "$SCREEN_STATE_FILE")"
}
case "${1:-}" in
dim)
dim
;;
restore)
restore
;;
*)
echo "Usage: $0 {dim|restore}"
exit 1
;;
esac

35
hypr/scripts/dim-keyboard.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/usr/bin/env bash
set -euo pipefail
KBD_DEVICE="chromeos::kbd_backlight"
STATE_DIR="${XDG_RUNTIME_DIR:-/tmp}/hypridle"
KBD_STATE_FILE="$STATE_DIR/kbd"
mkdir -p "$STATE_DIR"
save_current() {
brightnessctl -d "$KBD_DEVICE" g >"$KBD_STATE_FILE"
}
dim() {
save_current
brightnessctl -d "$KBD_DEVICE" set 0
}
restore() {
[[ -f "$KBD_STATE_FILE" ]] && brightnessctl -d "$KBD_DEVICE" s "$(cat "$KBD_STATE_FILE")"
}
case "${1:-}" in
dim)
dim
;;
restore)
restore
;;
*)
echo "Usage: $0 {dim|restore}"
exit 1
;;
esac

View File

@@ -57,7 +57,7 @@ alt + shift - 0 : yabai -m window --space 10
# Toggle pseudo scratchpad window: float, sticky, and center it on grid # Toggle pseudo scratchpad window: float, sticky, and center it on grid
alt - p : yabai -m window --toggle sticky --toggle float --grid 4:4:1:1:2:2 alt - p : yabai -m window --toggle sticky --toggle float --grid 4:4:1:1:2:2
lalt - return : open -a kitty --new lalt - return : open -a kitty
lalt - b : open -a "Zen" --new lalt - b : open -a "Zen" --new
lalt - e : open -a "Finder" --new lalt - e : open -a "Finder"
lalt - w : skhd -k "cmd - w" lalt - w : skhd -k "cmd - w"

View File

@@ -7,7 +7,10 @@
"gtk-layer-shell": true, "gtk-layer-shell": true,
"passthrough": false, "passthrough": false,
"fixed-center": true, "fixed-center": true,
"modules-left": ["hyprland/workspaces", "hyprland/window"], "modules-left": [
"hyprland/workspaces",
"hyprland/window"
],
"modules-right": [ "modules-right": [
"cpu", "cpu",
"memory", "memory",
@@ -20,7 +23,7 @@
"battery", "battery",
"tray", "tray",
"custom/notification", "custom/notification",
"custom/power", "custom/power"
], ],
"mpris": { "mpris": {
"format": "{cover_art} {artist} - {title}", "format": "{cover_art} {artist} - {title}",
@@ -44,7 +47,8 @@
"class<chromium-browser>": " ", "class<chromium-browser>": " ",
"class<chrome-web.telegram.org__-Default>": " ", "class<chrome-web.telegram.org__-Default>": " ",
"class<chrome-music.youtube.com__-Default>": " " "class<chrome-music.youtube.com__-Default>": " "
} },
"window-rewrite-default": " "
}, },
"hyprland/window": { "hyprland/window": {
"format": "{title}", "format": "{title}",
@@ -55,7 +59,6 @@
"": " Empty Workspace" "": " Empty Workspace"
} }
}, },
"tray": { "tray": {
"show-passive-items": true, "show-passive-items": true,
"spacing": 10, "spacing": 10,
@@ -96,18 +99,31 @@
"format-muted": " muted", "format-muted": " muted",
"format-icons": { "format-icons": {
"headphone": " ", "headphone": " ",
"default": [" ", " ", " "], "default": [
" ",
" ",
" "
]
}, },
"on-click": "pavucontrol", "on-click": "pavucontrol"
}, },
"battery": { "battery": {
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-charging": "󱐋{icon} {capacity}%", "format-charging": "󱐋{icon} {capacity}%",
"format-plugged": "󱐋{icon} {capacity}%", "format-plugged": "󱐋{icon} {capacity}%",
"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀"], "format-icons": [
"󰂎",
"󰁺",
"󰁻",
"󰁼",
"󰁽",
"󰁾",
"󰁿",
"󰂀"
],
"states": { "states": {
"critical": 15, "critical": 15,
"warning": 30, "warning": 30
}, },
"events": { "events": {
"on-discharging-critical": "notify-send -u critical 'Low Battery'" "on-discharging-critical": "notify-send -u critical 'Low Battery'"
@@ -115,12 +131,12 @@
}, },
"custom/sep": { "custom/sep": {
"format": "|", "format": "|",
"tooltip": false, "tooltip": false
}, },
"custom/power": { "custom/power": {
"tooltip": false, "tooltip": false,
"on-click": "wlogout -p layer-shell &", "on-click": "wlogout -p layer-shell &",
"format": "⏻", "format": "⏻"
}, },
"custom/nowplaying": { "custom/nowplaying": {
"exec": "~/.config/waybar/scripts/nowplaying.sh", "exec": "~/.config/waybar/scripts/nowplaying.sh",
@@ -142,7 +158,7 @@
}, },
"on-click": "sleep 0.1 && swaync-client -t -sw", "on-click": "sleep 0.1 && swaync-client -t -sw",
"return-type": "json", "return-type": "json",
"tooltip": false, "tooltip": false
}, },
"custom/weather": { "custom/weather": {
"format": "{}", "format": "{}",
@@ -161,7 +177,12 @@
"network": { "network": {
"interface": "wlp1s0", "interface": "wlp1s0",
"format": "", "format": "",
"format-icons": ["󰤟 ", "󰤢 ", "󰤥 ", "󰤨 "], "format-icons": [
"󰤟 ",
"󰤢 ",
"󰤥 ",
"󰤨 "
],
"format-wifi": "{icon} {essid}", "format-wifi": "{icon} {essid}",
"format-ethernet": "󰈀 Ethernet", "format-ethernet": "󰈀 Ethernet",
"format-disconnected": "󰤮 Disconnected", "format-disconnected": "󰤮 Disconnected",

View File

@@ -42,6 +42,8 @@ jetbrains_dialogs=(
"^Choose Package$" "^Choose Package$"
"^Move Package$" "^Move Package$"
"^Move$" "^Move$"
"^Git Editor$"
"^Create New Tag"
) )
for title in "${jetbrains_dialogs[@]}"; do for title in "${jetbrains_dialogs[@]}"; do