Compare commits
64 Commits
d6a77eec42
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
f1b6bcb4c5
|
|||
|
4f77f73860
|
|||
|
b76e27d466
|
|||
|
b58473de89
|
|||
|
8ad47eff6a
|
|||
|
e9d9ec86a3
|
|||
|
262acb7d8b
|
|||
|
53ebb35539
|
|||
|
9d7e338070
|
|||
|
9273a6cb4d
|
|||
|
b6fa9dc31e
|
|||
|
f659be1b00
|
|||
|
27225053bd
|
|||
|
e0f9e19c58
|
|||
|
3b2cc7714b
|
|||
|
f0530f3fff
|
|||
|
de693c786d
|
|||
|
5cda9c37f9
|
|||
|
b284ef3b8e
|
|||
|
9e6bf9618f
|
|||
|
5f0d18b1d0
|
|||
|
a123cd42f0
|
|||
|
8ff188b3fa
|
|||
|
d5bb18adfd
|
|||
|
7e3062121a
|
|||
|
9dc6bd9eb0
|
|||
|
4454b0bb03
|
|||
|
74dda82f24
|
|||
|
566513de78
|
|||
|
dfca6b4752
|
|||
|
916a07c80c
|
|||
|
c21e5736d8
|
|||
|
de1e39b5c4
|
|||
|
ac3bc6e779
|
|||
|
70e15917f4
|
|||
|
cb167933f5
|
|||
|
1c0acb4323
|
|||
|
ecd351208d
|
|||
|
799c63507a
|
|||
|
aef8985b3e
|
|||
|
6bcf153975
|
|||
|
ac9c0798d1
|
|||
|
5f5f338661
|
|||
|
1628b90398
|
|||
|
18d1d6faf0
|
|||
|
2e8a421f1c
|
|||
|
815823b7d6
|
|||
|
70c90fb23c
|
|||
|
3ff4460d12
|
|||
|
3af7c43665
|
|||
|
46f13b7cff
|
|||
|
e5659ce2ff
|
|||
|
f84cd6d66a
|
|||
|
62320e2453
|
|||
|
1c0f14172c
|
|||
|
b07e2ab804
|
|||
|
3bdafc039e
|
|||
|
876ccbe936
|
|||
|
70715b15c3
|
|||
|
1460b7a8e0
|
|||
|
1e99d8a2f6
|
|||
|
2b0ac57413
|
|||
|
6c5554beea
|
|||
|
0136e2cad9
|
272
btop/btop.conf
Normal file
272
btop/btop.conf
Normal file
@@ -0,0 +1,272 @@
|
|||||||
|
#? Config file for btop v.1.4.6
|
||||||
|
|
||||||
|
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
|
||||||
|
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
|
||||||
|
color_theme = "/home/stereov/.config/btop/themes/catppuccin-mocha.theme"
|
||||||
|
|
||||||
|
#* If the theme set background should be shown, set to False if you want terminal background transparency.
|
||||||
|
theme_background = true
|
||||||
|
|
||||||
|
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
|
||||||
|
truecolor = true
|
||||||
|
|
||||||
|
#* Set to true to force tty mode regardless if a real tty has been detected or not.
|
||||||
|
#* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols.
|
||||||
|
force_tty = false
|
||||||
|
|
||||||
|
#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets.
|
||||||
|
#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box.
|
||||||
|
#* Use whitespace " " as separator between different presets.
|
||||||
|
#* Example: "cpu:0:default,mem:0:tty,proc:1:default cpu:0:braille,proc:0:tty"
|
||||||
|
presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty"
|
||||||
|
|
||||||
|
#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists.
|
||||||
|
#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift.
|
||||||
|
vim_keys = false
|
||||||
|
|
||||||
|
#* Rounded corners on boxes, is ignored if TTY mode is ON.
|
||||||
|
rounded_corners = true
|
||||||
|
|
||||||
|
#* Use terminal synchronized output sequences to reduce flickering on supported terminals.
|
||||||
|
terminal_sync = true
|
||||||
|
|
||||||
|
#* Default symbols to use for graph creation, "braille", "block" or "tty".
|
||||||
|
#* "braille" offers the highest resolution but might not be included in all fonts.
|
||||||
|
#* "block" has half the resolution of braille but uses more common characters.
|
||||||
|
#* "tty" uses only 3 different symbols but will work with most fonts and should work in a real TTY.
|
||||||
|
#* Note that "tty" only has half the horizontal resolution of the other two, so will show a shorter historical view.
|
||||||
|
graph_symbol = "braille"
|
||||||
|
|
||||||
|
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||||
|
graph_symbol_cpu = "default"
|
||||||
|
|
||||||
|
# Graph symbol to use for graphs in gpu box, "default", "braille", "block" or "tty".
|
||||||
|
graph_symbol_gpu = "default"
|
||||||
|
|
||||||
|
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||||
|
graph_symbol_mem = "default"
|
||||||
|
|
||||||
|
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||||
|
graph_symbol_net = "default"
|
||||||
|
|
||||||
|
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||||
|
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.
|
||||||
|
shown_boxes = "mem net proc cpu"
|
||||||
|
|
||||||
|
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
|
||||||
|
update_ms = 2000
|
||||||
|
|
||||||
|
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct",
|
||||||
|
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly.
|
||||||
|
proc_sorting = "cpu lazy"
|
||||||
|
|
||||||
|
#* Reverse sorting order, True or False.
|
||||||
|
proc_reversed = false
|
||||||
|
|
||||||
|
#* Show processes as a tree.
|
||||||
|
proc_tree = false
|
||||||
|
|
||||||
|
#* Use the cpu graph colors in the process list.
|
||||||
|
proc_colors = true
|
||||||
|
|
||||||
|
#* Use a darkening gradient in the process list.
|
||||||
|
proc_gradient = true
|
||||||
|
|
||||||
|
#* If process cpu usage should be of the core it's running on or usage of the total available cpu power.
|
||||||
|
proc_per_core = false
|
||||||
|
|
||||||
|
#* Show process memory as bytes instead of percent.
|
||||||
|
proc_mem_bytes = true
|
||||||
|
|
||||||
|
#* Show cpu graph for each process.
|
||||||
|
proc_cpu_graphs = true
|
||||||
|
|
||||||
|
#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
|
||||||
|
proc_info_smaps = false
|
||||||
|
|
||||||
|
#* Show proc box on left side of screen instead of right.
|
||||||
|
proc_left = false
|
||||||
|
|
||||||
|
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
|
||||||
|
proc_filter_kernel = false
|
||||||
|
|
||||||
|
#* In tree-view, always accumulate child process resources in the parent process.
|
||||||
|
proc_aggregate = false
|
||||||
|
|
||||||
|
#* Should cpu and memory usage display be preserved for dead processes when paused.
|
||||||
|
keep_dead_proc_usage = false
|
||||||
|
|
||||||
|
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
|
||||||
|
#* Select from a list of detected attributes from the options menu.
|
||||||
|
cpu_graph_upper = "Auto"
|
||||||
|
|
||||||
|
#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available.
|
||||||
|
#* Select from a list of detected attributes from the options menu.
|
||||||
|
cpu_graph_lower = "Auto"
|
||||||
|
|
||||||
|
#* If gpu info should be shown in the cpu box. Available values = "Auto", "On" and "Off".
|
||||||
|
show_gpu_info = "Auto"
|
||||||
|
|
||||||
|
#* Toggles if the lower CPU graph should be inverted.
|
||||||
|
cpu_invert_lower = true
|
||||||
|
|
||||||
|
#* Set to True to completely disable the lower CPU graph.
|
||||||
|
cpu_single_graph = false
|
||||||
|
|
||||||
|
#* Show cpu box at bottom of screen instead of top.
|
||||||
|
cpu_bottom = false
|
||||||
|
|
||||||
|
#* Shows the system uptime in the CPU box.
|
||||||
|
show_uptime = true
|
||||||
|
|
||||||
|
#* Shows the CPU package current power consumption in watts. Requires running `make setcap` or `make setuid` or running with sudo.
|
||||||
|
show_cpu_watts = true
|
||||||
|
|
||||||
|
#* Show cpu temperature.
|
||||||
|
check_temp = true
|
||||||
|
|
||||||
|
#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors.
|
||||||
|
cpu_sensor = "Auto"
|
||||||
|
|
||||||
|
#* Show temperatures for cpu cores also if check_temp is True and sensors has been found.
|
||||||
|
show_coretemp = true
|
||||||
|
|
||||||
|
#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core.
|
||||||
|
#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine.
|
||||||
|
#* Format "x:y" x=core with wrong temp, y=core with correct temp, use space as separator between multiple entries.
|
||||||
|
#* Example: "4:0 5:1 6:3"
|
||||||
|
cpu_core_map = ""
|
||||||
|
|
||||||
|
#* Which temperature scale to use, available values: "celsius", "fahrenheit", "kelvin" and "rankine".
|
||||||
|
temp_scale = "celsius"
|
||||||
|
|
||||||
|
#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024.
|
||||||
|
base_10_sizes = false
|
||||||
|
|
||||||
|
#* Show CPU frequency.
|
||||||
|
show_cpu_freq = true
|
||||||
|
|
||||||
|
#* How to calculate CPU frequency, available values: "first", "range", "lowest", "highest" and "average".
|
||||||
|
freq_mode = "first"
|
||||||
|
|
||||||
|
#* Draw a clock at top of screen, formatting according to strftime, empty string to disable.
|
||||||
|
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime
|
||||||
|
clock_format = "%X"
|
||||||
|
|
||||||
|
#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort.
|
||||||
|
background_update = true
|
||||||
|
|
||||||
|
#* Custom cpu model name, empty string to disable.
|
||||||
|
custom_cpu_name = ""
|
||||||
|
|
||||||
|
#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace " ".
|
||||||
|
#* Only disks matching the filter will be shown. Prepend exclude= to only show disks not matching the filter. Examples: disk_filter="/boot /home/user", disks_filter="exclude=/boot /home/user"
|
||||||
|
disks_filter = ""
|
||||||
|
|
||||||
|
#* Show graphs instead of meters for memory values.
|
||||||
|
mem_graphs = true
|
||||||
|
|
||||||
|
#* Show mem box below net box instead of above.
|
||||||
|
mem_below_net = false
|
||||||
|
|
||||||
|
#* Count ZFS ARC in cached and available memory.
|
||||||
|
zfs_arc_cached = true
|
||||||
|
|
||||||
|
#* If swap memory should be shown in memory box.
|
||||||
|
show_swap = true
|
||||||
|
|
||||||
|
#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk.
|
||||||
|
swap_disk = true
|
||||||
|
|
||||||
|
#* If mem box should be split to also show disks info.
|
||||||
|
show_disks = true
|
||||||
|
|
||||||
|
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
|
||||||
|
only_physical = true
|
||||||
|
|
||||||
|
#* Read disks list from /etc/fstab. This also disables only_physical.
|
||||||
|
use_fstab = true
|
||||||
|
|
||||||
|
#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool)
|
||||||
|
zfs_hide_datasets = false
|
||||||
|
|
||||||
|
#* Set to true to show available disk space for privileged users.
|
||||||
|
disk_free_priv = false
|
||||||
|
|
||||||
|
#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view.
|
||||||
|
show_io_stat = true
|
||||||
|
|
||||||
|
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
|
||||||
|
io_mode = false
|
||||||
|
|
||||||
|
#* Set to True to show combined read/write io graphs in io mode.
|
||||||
|
io_graph_combined = false
|
||||||
|
|
||||||
|
#* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ".
|
||||||
|
#* Example: "/mnt/media:100 /:20 /boot:1".
|
||||||
|
io_graph_speeds = ""
|
||||||
|
|
||||||
|
#* Set fixed values for network graphs in Mebibits. Is only used if net_auto is also set to False.
|
||||||
|
net_download = 100
|
||||||
|
|
||||||
|
net_upload = 100
|
||||||
|
|
||||||
|
#* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest.
|
||||||
|
net_auto = true
|
||||||
|
|
||||||
|
#* Sync the auto scaling for download and upload to whichever currently has the highest scale.
|
||||||
|
net_sync = true
|
||||||
|
|
||||||
|
#* Starts with the Network Interface specified here.
|
||||||
|
net_iface = ""
|
||||||
|
|
||||||
|
#* "True" shows bitrates in base 10 (Kbps, Mbps). "False" shows bitrates in binary sizes (Kibps, Mibps, etc.). "Auto" uses base_10_sizes.
|
||||||
|
base_10_bitrate = "Auto"
|
||||||
|
|
||||||
|
#* Show battery stats in top right if battery is present.
|
||||||
|
show_battery = true
|
||||||
|
|
||||||
|
#* Which battery to use if multiple are present. "Auto" for auto detection.
|
||||||
|
selected_battery = "Auto"
|
||||||
|
|
||||||
|
#* Show power stats of battery next to charge indicator.
|
||||||
|
show_battery_watts = true
|
||||||
|
|
||||||
|
#* Set loglevel for "~/.local/state/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
|
||||||
|
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
|
||||||
|
log_level = "WARNING"
|
||||||
|
|
||||||
|
#* Automatically save current settings to config file on exit.
|
||||||
|
save_config_on_exit = true
|
||||||
|
|
||||||
|
#* Measure PCIe throughput on NVIDIA cards, may impact performance on certain cards.
|
||||||
|
nvml_measure_pcie_speeds = true
|
||||||
|
|
||||||
|
#* Measure PCIe throughput on AMD cards, may impact performance on certain cards.
|
||||||
|
rsmi_measure_pcie_speeds = true
|
||||||
|
|
||||||
|
#* Horizontally mirror the GPU graph.
|
||||||
|
gpu_mirror_graph = true
|
||||||
|
|
||||||
|
#* Set which GPU vendors to show. Available values are "nvidia amd intel"
|
||||||
|
shown_gpus = "nvidia amd intel"
|
||||||
|
|
||||||
|
#* Custom gpu0 model name, empty string to disable.
|
||||||
|
custom_gpu_name0 = ""
|
||||||
|
|
||||||
|
#* Custom gpu1 model name, empty string to disable.
|
||||||
|
custom_gpu_name1 = ""
|
||||||
|
|
||||||
|
#* Custom gpu2 model name, empty string to disable.
|
||||||
|
custom_gpu_name2 = ""
|
||||||
|
|
||||||
|
#* Custom gpu3 model name, empty string to disable.
|
||||||
|
custom_gpu_name3 = ""
|
||||||
|
|
||||||
|
#* Custom gpu4 model name, empty string to disable.
|
||||||
|
custom_gpu_name4 = ""
|
||||||
|
|
||||||
|
#* Custom gpu5 model name, empty string to disable.
|
||||||
|
custom_gpu_name5 = ""
|
||||||
83
btop/themes/catppuccin-mocha.theme
Normal file
83
btop/themes/catppuccin-mocha.theme
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#1e1e2e"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#cdd6f4"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#cdd6f4"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#89b4fa"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#45475a"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#89b4fa"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#7f849c"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#f5e0dc"
|
||||||
|
|
||||||
|
# Background color of the percentage meters
|
||||||
|
theme[meter_bg]="#45475a"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#f5e0dc"
|
||||||
|
|
||||||
|
# CPU, Memory, Network, Proc box outline colors
|
||||||
|
theme[cpu_box]="#cba6f7" #Mauve
|
||||||
|
theme[mem_box]="#a6e3a1" #Green
|
||||||
|
theme[net_box]="#eba0ac" #Maroon
|
||||||
|
theme[proc_box]="#89b4fa" #Blue
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#6c7086"
|
||||||
|
|
||||||
|
# Temperature graph color (Green -> Yellow -> Red)
|
||||||
|
theme[temp_start]="#a6e3a1"
|
||||||
|
theme[temp_mid]="#f9e2af"
|
||||||
|
theme[temp_end]="#f38ba8"
|
||||||
|
|
||||||
|
# CPU graph colors (Teal -> Lavender)
|
||||||
|
theme[cpu_start]="#94e2d5"
|
||||||
|
theme[cpu_mid]="#74c7ec"
|
||||||
|
theme[cpu_end]="#b4befe"
|
||||||
|
|
||||||
|
# Mem/Disk free meter (Mauve -> Lavender -> Blue)
|
||||||
|
theme[free_start]="#cba6f7"
|
||||||
|
theme[free_mid]="#b4befe"
|
||||||
|
theme[free_end]="#89b4fa"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter (Sapphire -> Lavender)
|
||||||
|
theme[cached_start]="#74c7ec"
|
||||||
|
theme[cached_mid]="#89b4fa"
|
||||||
|
theme[cached_end]="#b4befe"
|
||||||
|
|
||||||
|
# Mem/Disk available meter (Peach -> Red)
|
||||||
|
theme[available_start]="#fab387"
|
||||||
|
theme[available_mid]="#eba0ac"
|
||||||
|
theme[available_end]="#f38ba8"
|
||||||
|
|
||||||
|
# Mem/Disk used meter (Green -> Sky)
|
||||||
|
theme[used_start]="#a6e3a1"
|
||||||
|
theme[used_mid]="#94e2d5"
|
||||||
|
theme[used_end]="#89dceb"
|
||||||
|
|
||||||
|
# Download graph colors (Peach -> Red)
|
||||||
|
theme[download_start]="#fab387"
|
||||||
|
theme[download_mid]="#eba0ac"
|
||||||
|
theme[download_end]="#f38ba8"
|
||||||
|
|
||||||
|
# Upload graph colors (Green -> Sky)
|
||||||
|
theme[upload_start]="#a6e3a1"
|
||||||
|
theme[upload_mid]="#94e2d5"
|
||||||
|
theme[upload_end]="#89dceb"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage (Sapphire -> Mauve)
|
||||||
|
theme[process_start]="#74c7ec"
|
||||||
|
theme[process_mid]="#b4befe"
|
||||||
|
theme[process_end]="#cba6f7"
|
||||||
@@ -18,6 +18,10 @@ set -x STARSHIP_CONFIG $HOME/.config/starship/starship.toml
|
|||||||
# Set default kubectl editor
|
# Set default kubectl editor
|
||||||
set -x KUBE_EDITOR nvim
|
set -x KUBE_EDITOR nvim
|
||||||
|
|
||||||
|
if not set -q SSH_AUTH_SOCK
|
||||||
|
eval (ssh-agent -c) >/dev/null
|
||||||
|
end
|
||||||
|
|
||||||
# Docker
|
# Docker
|
||||||
alias dc="docker compose"
|
alias dc="docker compose"
|
||||||
alias dl="docker logs"
|
alias dl="docker logs"
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
patrickf1/fzf.fish
|
patrickf1/fzf.fish
|
||||||
jorgebucaran/fisher
|
jorgebucaran/fisher
|
||||||
|
reitzig/sdkman-for-fish@v2.1.0
|
||||||
|
|||||||
@@ -5,9 +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 = waybar & hyprpaper
|
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE XDG_SESSION_DESKTOP
|
||||||
|
exec-once = waybar
|
||||||
|
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 = "/home/stereov/Developer/antistereov/randrwall/randrwall.py reload"
|
||||||
|
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 = "/usr/libexec/polkit-mate-authentication-agent-1"
|
||||||
|
|
||||||
|
exec-once = seafile-applet
|
||||||
|
exec-once = flatpak run org.signal.Signal
|
||||||
|
|||||||
@@ -4,6 +4,11 @@
|
|||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
# See https://wiki.hyprland.org/Configuring/Keywords/
|
||||||
source = ~/.config/hypr/bindings/tiling.conf
|
source = ~/.config/hypr/bindings/tiling.conf
|
||||||
|
|
||||||
source = ~/.config/hypr/bindings/hyprshot.conf
|
source = ~/.config/hypr/bindings/hyprshot.conf
|
||||||
|
source = ~/.config/hypr/bindings/lock.conf
|
||||||
|
source = ~/.config/hypr/bindings/media.conf
|
||||||
|
source = ~/.config/hypr/bindings/programs.conf
|
||||||
|
source = ~/.config/hypr/bindings/randrwall.conf
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
1
hypr/bindings/lock.conf
Normal file
1
hypr/bindings/lock.conf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
bind = CTRL ALT, Q, exec, hyprlock
|
||||||
19
hypr/bindings/media.conf
Normal file
19
hypr/bindings/media.conf
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# Only display the OSD on the currently focused monitor
|
||||||
|
$osdclient = swayosd-client --monitor "$(hyprctl monitors -j | jq -r '.[] | select(.focused == true).name')"
|
||||||
|
|
||||||
|
# Laptop multimedia keys for volume and LCD brightness (with OSD)
|
||||||
|
bindeld = ,XF86AudioRaiseVolume, Volume up, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
||||||
|
bindeld = ,XF86AudioLowerVolume, Volume down, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||||
|
bindeld = ,XF86AudioMute, Mute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||||
|
bindeld = ,XF86AudioMicMute, Mute microphone, exec, $osdclient --input-volume mute-toggle
|
||||||
|
bindeld = ,XF86MonBrightnessUp, Brightness up, exec, brightnessctl set +5%
|
||||||
|
bindeld = ,XF86MonBrightnessDown, Brightness down, exec, brightnessctl set 5%-
|
||||||
|
|
||||||
|
# Requires playerctl
|
||||||
|
bindld = , XF86AudioNext, Next track, exec, playerctl next
|
||||||
|
bindld = , XF86AudioPause, Pause, exec, playerctl play-pause
|
||||||
|
bindld = , XF86AudioPlay, Play, exec, playerctl play-pause
|
||||||
|
bindld = , XF86AudioPrev, Previous track, exec, playerctl previous
|
||||||
|
|
||||||
|
# Switch audio output with Super + Mute
|
||||||
|
bindld = SUPER, XF86AudioMute, Switch audio output, exec, omarchy-cmd-audio-switch
|
||||||
6
hypr/bindings/programs.conf
Normal file
6
hypr/bindings/programs.conf
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
bind = $mainMod, RETURN, exec, $terminal
|
||||||
|
bind = $mainMod, W, killactive,
|
||||||
|
bind = $mainMod, M, exit,
|
||||||
|
bind = $mainMod, E, exec, $fileManager
|
||||||
|
bind = $mainMod, B, exec, $browser
|
||||||
|
bind = ALT, space, exec, $menu
|
||||||
4
hypr/bindings/randrwall.conf
Normal file
4
hypr/bindings/randrwall.conf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
$randrwall = "/home/stereov/.config/hypr/scripts/randrwall.py"
|
||||||
|
|
||||||
|
bind = SUPER SHIFT, W, exec, $randrwall random
|
||||||
|
bind = SUPER SHIFT, F, exec, $randrwall favorite
|
||||||
@@ -1,13 +1,7 @@
|
|||||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
$mainMod = SUPER # Sets "Windows" key as main modifier
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
|
bind = $mainMod, F, togglefloating,
|
||||||
bind = $mainMod, RETURN, exec, $terminal
|
|
||||||
bind = $mainMod, W, killactive,
|
|
||||||
bind = $mainMod, M, exit,
|
|
||||||
bind = $mainMod, E, exec, $fileManager
|
|
||||||
bind = $mainMod, V, togglefloating,
|
|
||||||
bind = ALT, space, exec, $menu
|
|
||||||
bind = $mainMod, P, pseudo, # dwindle
|
bind = $mainMod, P, pseudo, # dwindle
|
||||||
bind = $mainMod SHIFT, J, togglesplit, # dwindle
|
bind = $mainMod SHIFT, J, togglesplit, # dwindle
|
||||||
|
|
||||||
@@ -17,6 +11,9 @@ bind = $mainMod, L, movefocus, r
|
|||||||
bind = $mainMod, K, movefocus, u
|
bind = $mainMod, K, movefocus, u
|
||||||
bind = $mainMod, J, movefocus, d
|
bind = $mainMod, J, movefocus, d
|
||||||
|
|
||||||
|
bind = CTRL ALT, left, workspace, e-1
|
||||||
|
bind = CTRL ALT, right, workspace, e+1
|
||||||
|
|
||||||
# Resize with Mod + Shift + HJKL (repeatable)
|
# Resize with Mod + Shift + HJKL (repeatable)
|
||||||
binde = $mainMod ALT, L, resizeactive, 50 0
|
binde = $mainMod ALT, L, resizeactive, 50 0
|
||||||
binde = $mainMod ALT, H, resizeactive, -50 0
|
binde = $mainMod ALT, H, resizeactive, -50 0
|
||||||
@@ -65,4 +62,3 @@ bind = $mainMod, mouse_up, workspace, e-1
|
|||||||
bindm = $mainMod, mouse:272, movewindow
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
25
hypr/environment.conf
Normal file
25
hypr/environment.conf
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
#############################
|
||||||
|
### ENVIRONMENT VARIABLES ###
|
||||||
|
#############################
|
||||||
|
|
||||||
|
# See https://wiki.hyprland.org/Configuring/Environment-variables/
|
||||||
|
|
||||||
|
env = XCURSOR_SIZE,24
|
||||||
|
env = HYPRCURSOR_SIZE,24
|
||||||
|
|
||||||
|
env = GDK_SCALE,1
|
||||||
|
env = XCURSOR_SIZE,24
|
||||||
|
env = QT_AUTO_SCREEN_SCALE_FACTOR,0
|
||||||
|
env = QT_SCALE_FACTOR,1
|
||||||
|
env = _JAVA_AWT_WM_NONREPARENTING,1
|
||||||
|
env = AWT_TOOLKIT,MToolkit
|
||||||
|
env = WINIT_X11_SCALE_FACTOR,1
|
||||||
|
env = XWAYLAND_NO_GLAMOR,0
|
||||||
|
|
||||||
|
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||||
|
env = XDG_SESSION_TYPE,wayland
|
||||||
|
env = XDG_SESSION_DESKTOP,Hyprland
|
||||||
|
|
||||||
|
xwayland {
|
||||||
|
force_zero_scaling = true
|
||||||
|
}
|
||||||
@@ -1,22 +1,29 @@
|
|||||||
general {
|
general {
|
||||||
lock_cmd = omarchy-lock-screen # lock screen and 1password
|
lock_cmd = hyprlock # lock screen and 1password
|
||||||
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
||||||
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
||||||
inhibit_sleep = 3 # wait until screen is locked
|
inhibit_sleep = 3 # wait until screen is locked
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 150 # 2.5min
|
timeout = 290
|
||||||
on-timeout = pidof hyprlock || omarchy-launch-screensaver # start screensaver (if we haven't locked already)
|
on-timeout = ~/.config/hypr/scripts/dim-display.sh dim
|
||||||
|
on-resume = ~/.config/hypr/scripts/dim-display.sh restore
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 151 # 5min
|
timeout = 300
|
||||||
on-timeout = loginctl lock-session # lock screen when timeout has passed
|
on-timeout = loginctl lock-session
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
timeout = 330 # 5.5min
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,29 +4,7 @@ source = ~/.config/hypr/programs.conf
|
|||||||
source = ~/.config/hypr/bindings.conf
|
source = ~/.config/hypr/bindings.conf
|
||||||
source = ~/.config/hypr/input.conf
|
source = ~/.config/hypr/input.conf
|
||||||
source = ~/.config/hypr/looknfeel.conf
|
source = ~/.config/hypr/looknfeel.conf
|
||||||
|
source = ~/.config/hypr/environment.conf
|
||||||
#############################
|
|
||||||
### ENVIRONMENT VARIABLES ###
|
|
||||||
#############################
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Environment-variables/
|
|
||||||
|
|
||||||
env = XCURSOR_SIZE,24
|
|
||||||
env = HYPRCURSOR_SIZE,24
|
|
||||||
|
|
||||||
env = GDK_SCALE,1
|
|
||||||
env = XCURSOR_SIZE,24
|
|
||||||
env = QT_AUTO_SCREEN_SCALE_FACTOR,0
|
|
||||||
env = QT_SCALE_FACTOR,1
|
|
||||||
env = _JAVA_AWT_WM_NONREPARENTING,1
|
|
||||||
env = AWT_TOOLKIT,MToolkit
|
|
||||||
env = WINIT_X11_SCALE_FACTOR,1
|
|
||||||
env = XWAYLAND_NO_GLAMOR,0
|
|
||||||
|
|
||||||
xwayland {
|
|
||||||
force_zero_scaling = true
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
### WINDOWS AND WORKSPACES ###
|
### WINDOWS AND WORKSPACES ###
|
||||||
|
|||||||
@@ -2,46 +2,144 @@ $color = rgba(#1e1e2e, 1.0)
|
|||||||
$inner_color = rgba(#1e1e2e, 0.8)
|
$inner_color = rgba(#1e1e2e, 0.8)
|
||||||
$outer_color = rgba(#cdd6f4, 1.0)
|
$outer_color = rgba(#cdd6f4, 1.0)
|
||||||
$font_color = rgba(#cdd6f4, 1.0)
|
$font_color = rgba(#cdd6f4, 1.0)
|
||||||
$check_color = rgba(#89b4fa, 1.0)
|
$check_color = rgba(#380000, 1.0)
|
||||||
|
|
||||||
general {
|
general {
|
||||||
ignore_empty_input = true
|
ignore_empty_input = true
|
||||||
|
no_fade_in = true
|
||||||
|
no_fade_out = true
|
||||||
|
hide_cursor = false
|
||||||
|
grace = 0
|
||||||
|
disable_loading_bar = false
|
||||||
}
|
}
|
||||||
|
|
||||||
background {
|
background {
|
||||||
monitor =
|
monitor =
|
||||||
color = $color
|
color = $color
|
||||||
path = ~/.config/omarchy/current/background
|
path = ~/Pictures/Wallpapers/current
|
||||||
blur_passes = 3
|
blur_passes = 3
|
||||||
}
|
}
|
||||||
|
|
||||||
animations {
|
animations {
|
||||||
enabled = false
|
enabled = true
|
||||||
|
}
|
||||||
|
|
||||||
|
# DATE
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:1000] echo "$(date +"%A, %B %d")"
|
||||||
|
color = rgba(242, 243, 244, 0.75)
|
||||||
|
font_size = 16
|
||||||
|
font_family = Lexend Light
|
||||||
|
position = 0, 300
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
# TIME
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:1000] echo "$(date +"%H:%M")"
|
||||||
|
color = rgba(242, 243, 244, 0.75)
|
||||||
|
font_size = 150
|
||||||
|
font_family = Lexend Extrabold
|
||||||
|
position = 0, 200
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
# NETWORK
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:2000] ~/.config/hypr/scripts/net-status.sh
|
||||||
|
color = rgba(242, 243, 244, 0.8)
|
||||||
|
font_size = 14
|
||||||
|
font_family = Lexend
|
||||||
|
position = 100, 100
|
||||||
|
halign = bottom
|
||||||
|
valign = left
|
||||||
|
}
|
||||||
|
|
||||||
|
# BATTERY
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:1000] echo "$(~/.config/hypr/scripts/battery.sh)"
|
||||||
|
font_family = lexend
|
||||||
|
font_size = 14
|
||||||
|
position = -100, 100
|
||||||
|
halign = right
|
||||||
|
valign = bottom
|
||||||
|
}
|
||||||
|
|
||||||
|
# WEATHER
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:600000] echo "$(~/.config/hypr/scripts/weather.sh | jq -r .text)"
|
||||||
|
font_family = lexend
|
||||||
|
font_size = 14
|
||||||
|
position = -200, 100
|
||||||
|
halign = right
|
||||||
|
valign = bottom
|
||||||
|
}
|
||||||
|
|
||||||
|
# NOW PLAYING
|
||||||
|
image {
|
||||||
|
monitor =
|
||||||
|
path = ~/.cache/nowplaying-cover.jpg
|
||||||
|
size = 300
|
||||||
|
rounding = 20
|
||||||
|
position = 0, -150
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
border_size = 0
|
||||||
|
reload_time = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:1000] playerctl metadata title || jq -r '.[0].q' ~/.cache/quote.json
|
||||||
|
color = rgba(242, 243, 244, 0.8)
|
||||||
|
font_size = 14
|
||||||
|
font_family = Lexend
|
||||||
|
position = 0, -320
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:1000] playerctl metadata artist || jq -r '.[0].a' ~/.cache/quote.json
|
||||||
|
color = rgba(242, 243, 244, 0.8)
|
||||||
|
font_size = 14
|
||||||
|
font_family = Lexend Bold
|
||||||
|
position = 0, -345
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
}
|
}
|
||||||
|
|
||||||
input-field {
|
input-field {
|
||||||
monitor =
|
monitor =
|
||||||
size = 650, 100
|
size = 300, 50
|
||||||
position = 0, 0
|
position = 0, 100
|
||||||
halign = center
|
halign = center
|
||||||
valign = center
|
valign = bottom
|
||||||
|
|
||||||
inner_color = $inner_color
|
inner_color = rgba(242, 243, 244, 0.8)
|
||||||
outer_color = $outer_color
|
outer_color = $outer_color
|
||||||
outline_thickness = 4
|
outline_thickness = 4
|
||||||
|
|
||||||
font_family = JetBrainsMono Nerd Font
|
font_family = Lexend
|
||||||
font_color = $font_color
|
font_color = $font_color
|
||||||
|
|
||||||
placeholder_text = Enter Password
|
placeholder_text = Enter Password
|
||||||
check_color = $check_color
|
check_color = $check_color
|
||||||
fail_text = <i>$FAIL ($ATTEMPTS)</i>
|
fail_text = $FAIL
|
||||||
|
|
||||||
rounding = 0
|
rounding = 10
|
||||||
shadow_passes = 0
|
shadow_passes = 0
|
||||||
fade_on_empty = false
|
fade_on_empty = true
|
||||||
}
|
}
|
||||||
|
|
||||||
auth {
|
auth {
|
||||||
fingerprint:enabled = false
|
fingerprint:enabled = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
preload = /usr/share/backgrounds/Dynamic_Wallpapers/Ocean/Ocean-1.png
|
preload = /home/stereov/.config/wallpaper/current.png
|
||||||
wallpaper = , /usr/share/backgrounds/Dynamic_Wallpapers/Ocean/Ocean-1.png
|
wallpaper = , /home/stereov/.config/wallpaper/current.png
|
||||||
|
splash = true
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -26,22 +26,21 @@ general {
|
|||||||
layout = dwindle
|
layout = dwindle
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||||
decoration {
|
decoration {
|
||||||
rounding = 10
|
rounding = 10
|
||||||
|
|
||||||
# Change transparency of focused and unfocused windows
|
# Change transparency of focused and unfocused windows
|
||||||
active_opacity = 0.995
|
active_opacity = 0.99
|
||||||
inactive_opacity = 0.95
|
inactive_opacity = 0.9
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
||||||
blur {
|
blur {
|
||||||
enabled = true
|
enabled = true
|
||||||
size = 3
|
size = 5
|
||||||
passes = 1
|
passes = 1
|
||||||
|
|
||||||
vibrancy = 0.1696
|
vibrancy = 0.1696
|
||||||
|
ignore_opacity = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +49,6 @@ animations {
|
|||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||||
|
|
||||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||||
|
|
||||||
animation = windows, 1, 7, myBezier
|
animation = windows, 1, 7, myBezier
|
||||||
@@ -74,7 +72,15 @@ master {
|
|||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||||
misc {
|
misc {
|
||||||
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||||
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
|
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
|
||||||
|
disable_splash_rendering = true
|
||||||
|
background_color = 0x000000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
layerrule {
|
||||||
|
name = waybar_blur
|
||||||
|
match:namespace = waybar
|
||||||
|
blur = on
|
||||||
|
ignore_alpha = 0.1
|
||||||
|
}
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||||
monitor=,preferred, auto, auto
|
monitor=,preferred, auto, auto
|
||||||
monitor=eDP-1, 2256x1504, auto, 1.175
|
monitor=eDP-1, 2256x1504, 0x0, 1.175
|
||||||
monitor=DP-10, 3440x1440, -3440x0, 1
|
monitor=DP-10, 3840x2160, -640x-1800, 1.2
|
||||||
|
|
||||||
|
bindl = , switch:on:Lid Switch, exec, ~/.config/hypr/scripts/lid.sh off
|
||||||
|
bindl = , switch:off:Lid Switch, exec, ~/.config/hypr/scripts/lid.sh on
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
# Set programs that you use
|
# Set programs that you use
|
||||||
$terminal = kitty
|
$terminal = kitty
|
||||||
$fileManager = nautilus
|
$fileManager = nautilus
|
||||||
$menu = wofi --show drun --allow-images
|
$browser = flatpak run app.zen_browser.zen
|
||||||
|
$menu = rofi -show drun -terminal kitty -kb-cancel Escape -theme ~/.local/share/rofi/themes/modern/style.rasi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
55
hypr/scripts/battery.sh
Executable file
55
hypr/scripts/battery.sh
Executable file
@@ -0,0 +1,55 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Find battery + AC device (works on most laptops)
|
||||||
|
BAT="$(ls -1 /sys/class/power_supply 2>/dev/null | grep -E '^BAT|^CMB|^BATT' | head -n1 || true)"
|
||||||
|
AC="$(ls -1 /sys/class/power_supply 2>/dev/null | grep -E '^AC|^ADP|^ACAD' | head -n1 || true)"
|
||||||
|
|
||||||
|
if [[ -z "${BAT}" ]]; then
|
||||||
|
echo " --%" # unknown
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
BAT_PATH="/sys/class/power_supply/${BAT}"
|
||||||
|
STATUS="$(<"${BAT_PATH}/status")" # Charging|Discharging|Full|Not charging|Unknown
|
||||||
|
CAPACITY="$(<"${BAT_PATH}/capacity")" # 0-100
|
||||||
|
|
||||||
|
# 0-10, 11-35, 36-60, 61-85, 86-100
|
||||||
|
if ((CAPACITY <= 10)); then
|
||||||
|
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" || "${STATUS}" == "Full" ]]; then
|
||||||
|
ICON=" "
|
||||||
|
else
|
||||||
|
ICON=" "
|
||||||
|
fi
|
||||||
|
elif ((CAPACITY <= 30)); then
|
||||||
|
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" || "${STATUS}" == "Full" ]]; then
|
||||||
|
ICON=" "
|
||||||
|
else
|
||||||
|
ICON=" "
|
||||||
|
fi
|
||||||
|
elif ((CAPACITY <= 60)); then
|
||||||
|
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" || "${STATUS}" == "Full" ]]; then
|
||||||
|
ICON=" "
|
||||||
|
else
|
||||||
|
ICON=" "
|
||||||
|
fi
|
||||||
|
elif ((CAPACITY <= 80)); then
|
||||||
|
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" || "${STATUS}" == "Full" ]]; then
|
||||||
|
ICON=" "
|
||||||
|
else
|
||||||
|
ICON=" "
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [[ "${STATUS}" == "Charging" || "${STATUS}" == "Not charging" ]]; then
|
||||||
|
ICON=" "
|
||||||
|
else
|
||||||
|
ICON=" "
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If full, show a nicer indicator
|
||||||
|
if [[ "${STATUS}" == "Full" ]]; then
|
||||||
|
CHG_IND=" " # nf-fa-check
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "${ICON} ${CAPACITY}%"
|
||||||
5
hypr/scripts/cover-listener.sh
Executable file
5
hypr/scripts/cover-listener.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
playerctl metadata --follow --format "{{mpris:artUrl}}" | while read -r _; do
|
||||||
|
~/.config/hypr/scripts/cover.sh
|
||||||
|
done
|
||||||
23
hypr/scripts/cover.sh
Executable file
23
hypr/scripts/cover.sh
Executable file
@@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CACHE="$HOME/.cache/nowplaying-cover.jpg"
|
||||||
|
TMP="$HOME/.cache/nowplaying-cover.tmp.jpg"
|
||||||
|
|
||||||
|
status=$(playerctl status 2>/dev/null)
|
||||||
|
|
||||||
|
if [ "$status" != "Playing" ]; then
|
||||||
|
rm -f "$CACHE"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
url=$(playerctl metadata mpris:artUrl)
|
||||||
|
|
||||||
|
[ -z "$url" ] && rm -f "$CACHE" && exit 0
|
||||||
|
|
||||||
|
if [[ "$url" == file://* ]]; then
|
||||||
|
cp "${url#file://}" "$TMP"
|
||||||
|
else
|
||||||
|
curl -sL "$url" -o "$TMP"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mv -f "$TMP" "$CACHE"
|
||||||
35
hypr/scripts/dim-display.sh
Executable file
35
hypr/scripts/dim-display.sh
Executable 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
35
hypr/scripts/dim-keyboard.sh
Executable 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
|
||||||
40
hypr/scripts/lid.sh
Executable file
40
hypr/scripts/lid.sh
Executable file
@@ -0,0 +1,40 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
ACTION="${1:-}" # "on" oder "off"
|
||||||
|
LAPTOP="eDP-1"
|
||||||
|
LAPTOP_MODE="2256x1504"
|
||||||
|
LAPTOP_SCALE="1.175"
|
||||||
|
|
||||||
|
has_external() {
|
||||||
|
hyprctl monitors | awk '/^Monitor /{print $2}' | grep -vq "^${LAPTOP}$"
|
||||||
|
}
|
||||||
|
|
||||||
|
enable_laptop() {
|
||||||
|
hyprctl keyword monitor "${LAPTOP}, ${LAPTOP_MODE}, 0x0, ${LAPTOP_SCALE}"
|
||||||
|
hyprctl dispatch dpms on "${LAPTOP}" 2>/dev/null || true
|
||||||
|
}
|
||||||
|
|
||||||
|
disable_laptop() {
|
||||||
|
hyprctl keyword monitor "${LAPTOP}, disable"
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$ACTION" in
|
||||||
|
off)
|
||||||
|
if has_external; then
|
||||||
|
disable_laptop
|
||||||
|
else
|
||||||
|
disable_laptop
|
||||||
|
hyprlock
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
on)
|
||||||
|
enable_laptop
|
||||||
|
;;
|
||||||
|
|
||||||
|
*)
|
||||||
|
echo "usage: $0 {on|off}" >&2
|
||||||
|
exit 2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
38
hypr/scripts/net-status.sh
Executable file
38
hypr/scripts/net-status.sh
Executable file
@@ -0,0 +1,38 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
IFACE="wlp1s0"
|
||||||
|
|
||||||
|
# Prüfen ob Interface existiert
|
||||||
|
if [ ! -d "/sys/class/net/$IFACE" ]; then
|
||||||
|
echo " no iface"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
STATE=$(cat /sys/class/net/$IFACE/operstate 2>/dev/null)
|
||||||
|
|
||||||
|
if [ "$STATE" != "up" ]; then
|
||||||
|
echo " Disconnected"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# SSID holen
|
||||||
|
SSID=$(iw dev "$IFACE" link 2>/dev/null | awk -F': ' '/SSID/ {print $2}')
|
||||||
|
SIGNAL=$(iw dev "$IFACE" link 2>/dev/null | awk -F'signal: ' '/signal/ {print $2}' | awk '{print $1}')
|
||||||
|
|
||||||
|
if [ -z "$SSID" ]; then
|
||||||
|
echo " Disconnected"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Icon je nach dBm (realistische Werte: -30 sehr stark, -90 sehr schwach)
|
||||||
|
if ((SIGNAL >= -50)); then
|
||||||
|
ICON=" " # stark
|
||||||
|
elif ((SIGNAL >= -65)); then
|
||||||
|
ICON=" " # mittel
|
||||||
|
elif ((SIGNAL >= -75)); then
|
||||||
|
ICON=" " # schwach
|
||||||
|
else
|
||||||
|
ICON=" " # sehr schwach
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "${ICON} ${SSID}"
|
||||||
11
hypr/scripts/nowplaying.sh
Executable file
11
hypr/scripts/nowplaying.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
status=$(playerctl status 2>/dev/null)
|
||||||
|
|
||||||
|
if [ "$status" = "Playing" ]; then
|
||||||
|
artist=$(playerctl metadata artist)
|
||||||
|
title=$(playerctl metadata title)
|
||||||
|
echo "$artist - $title"
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
fi
|
||||||
309
hypr/scripts/randrwall.py
Executable file
309
hypr/scripts/randrwall.py
Executable file
@@ -0,0 +1,309 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import json
|
||||||
|
from os import environ
|
||||||
|
import random
|
||||||
|
import shutil
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
from urllib.parse import quote
|
||||||
|
|
||||||
|
import urllib.request
|
||||||
|
|
||||||
|
HOME = Path.home()
|
||||||
|
|
||||||
|
BASE_DIR = HOME / "Pictures" / "Wallpapers"
|
||||||
|
FAV_DIR = BASE_DIR / "favorites"
|
||||||
|
CACHE_DIR = BASE_DIR / "cache"
|
||||||
|
CURRENT = BASE_DIR / "current"
|
||||||
|
STATE_FILE = HOME / ".cache" / "randrwall_state.json"
|
||||||
|
|
||||||
|
DEFAULT_TAGS = [
|
||||||
|
"space",
|
||||||
|
"nebula",
|
||||||
|
"cyberpunk",
|
||||||
|
"minimal",
|
||||||
|
"architecture",
|
||||||
|
"landscape",
|
||||||
|
"fantasy",
|
||||||
|
"digital art",
|
||||||
|
]
|
||||||
|
ATLEAST = "3840x2160"
|
||||||
|
RATIOS = "16x9,21x9"
|
||||||
|
SORTING = "random"
|
||||||
|
|
||||||
|
CATEGORIES = "110"
|
||||||
|
PURITY = "100"
|
||||||
|
|
||||||
|
|
||||||
|
def load_env_file(path: Path) -> None:
|
||||||
|
if not path.exists():
|
||||||
|
return
|
||||||
|
for line in path.read_text().splitlines():
|
||||||
|
line = line.strip()
|
||||||
|
if not line or line.startswith("#"):
|
||||||
|
continue
|
||||||
|
if "=" not in line:
|
||||||
|
continue
|
||||||
|
k, v = line.split("=", 1)
|
||||||
|
environ.setdefault(k.strip(), v.strip())
|
||||||
|
|
||||||
|
|
||||||
|
load_env_file(Path() / ".env")
|
||||||
|
API_KEY = environ.get("WALLHAVEN_API_KEY")
|
||||||
|
|
||||||
|
|
||||||
|
def run(cmd: list[str]) -> None:
|
||||||
|
subprocess.run(cmd, check=True)
|
||||||
|
|
||||||
|
|
||||||
|
def ensure_dirs() -> None:
|
||||||
|
FAV_DIR.mkdir(parents=True, exist_ok=True)
|
||||||
|
CACHE_DIR.mkdir(parents=True, exist_ok=True)
|
||||||
|
STATE_FILE.parent.mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
|
def read_state() -> dict:
|
||||||
|
if STATE_FILE.exists():
|
||||||
|
try:
|
||||||
|
return json.loads(STATE_FILE.read_text(encoding="utf-8"))
|
||||||
|
except Exception:
|
||||||
|
return {}
|
||||||
|
return {}
|
||||||
|
|
||||||
|
|
||||||
|
def write_state(state: dict) -> None:
|
||||||
|
STATE_FILE.write_text(json.dumps(state, indent=2), encoding="utf-8")
|
||||||
|
|
||||||
|
|
||||||
|
def is_image(path: Path) -> bool:
|
||||||
|
return path.suffix.lower() in {".jpg", ".jpeg", ".png", ".webp"}
|
||||||
|
|
||||||
|
|
||||||
|
def swww_set(path: Path) -> None:
|
||||||
|
run(
|
||||||
|
[
|
||||||
|
"swww",
|
||||||
|
"img",
|
||||||
|
str(path),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def pick_random_from(dir_path: Path) -> Path | None:
|
||||||
|
if not dir_path.exists():
|
||||||
|
return None
|
||||||
|
|
||||||
|
imgs = [p for p in dir_path.iterdir() if p.is_file() and is_image(p)]
|
||||||
|
if not imgs:
|
||||||
|
return None
|
||||||
|
return random.choice(imgs)
|
||||||
|
|
||||||
|
|
||||||
|
UA = "randrwall/0.1 (+https://gitea.stereov.io/antistereov/randrwall)"
|
||||||
|
|
||||||
|
HEADERS = {
|
||||||
|
"User-Agent": UA,
|
||||||
|
"Referer": "https://wallhaven.cc/",
|
||||||
|
"Accept": "*/*",
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def http_get_json(url: str, timeout: int = 15) -> dict:
|
||||||
|
req = urllib.request.Request(url, headers=HEADERS)
|
||||||
|
with urllib.request.urlopen(req, timeout=timeout) as resp:
|
||||||
|
return json.loads(resp.read().decode("utf-8"))
|
||||||
|
|
||||||
|
|
||||||
|
def wallhaven_search_random(tags: list[str]) -> str:
|
||||||
|
tag = random.choice(tags)
|
||||||
|
q = quote(tag)
|
||||||
|
|
||||||
|
params = (
|
||||||
|
f"q={q}"
|
||||||
|
f"&categories={CATEGORIES}"
|
||||||
|
f"$purity={PURITY}"
|
||||||
|
f"&atleast={ATLEAST}"
|
||||||
|
f"&ratios={quote(RATIOS)}"
|
||||||
|
f"&sorting={SORTING}"
|
||||||
|
"&order=desc"
|
||||||
|
"&page=1"
|
||||||
|
)
|
||||||
|
|
||||||
|
if API_KEY:
|
||||||
|
print("Using API key")
|
||||||
|
params += f"&apiKey={API_KEY}"
|
||||||
|
|
||||||
|
url = f"https://wallhaven.cc/api/v1/search?{params}"
|
||||||
|
|
||||||
|
data = http_get_json(url)
|
||||||
|
|
||||||
|
arr = data.get("data") or []
|
||||||
|
if not arr:
|
||||||
|
raise RuntimeError(f"Wallhaven: no results for tag='{tag}'")
|
||||||
|
|
||||||
|
item = random.choice(arr)
|
||||||
|
path = item.get("path")
|
||||||
|
if not path:
|
||||||
|
raise RuntimeError("Wallhaven: response does not contain 'path'")
|
||||||
|
return path
|
||||||
|
|
||||||
|
|
||||||
|
def prune_cache(max_files: int = 10) -> None:
|
||||||
|
if max_files <= 0:
|
||||||
|
return
|
||||||
|
|
||||||
|
files = [p for p in CACHE_DIR.iterdir() if p.is_file() and is_image(p)]
|
||||||
|
files.sort(key=lambda p: p.stat().st_mtime, reverse=True)
|
||||||
|
|
||||||
|
for p in files[max_files:]:
|
||||||
|
try:
|
||||||
|
p.unlink()
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def download_to_cache(url: str) -> Path:
|
||||||
|
filename = url.split("/")[-1]
|
||||||
|
out = CACHE_DIR / filename
|
||||||
|
if out.exists() and out.stat().st_size > 0:
|
||||||
|
return out
|
||||||
|
|
||||||
|
tmp_path = CACHE_DIR / (filename + ".part")
|
||||||
|
|
||||||
|
req = urllib.request.Request(url, headers=HEADERS, method="GET")
|
||||||
|
|
||||||
|
try:
|
||||||
|
with urllib.request.urlopen(req, timeout=30) as resp:
|
||||||
|
if resp.status != 200:
|
||||||
|
raise RuntimeError(f"Download failed: HTTP {resp.status}")
|
||||||
|
with open(tmp_path, "wb") as f:
|
||||||
|
shutil.copyfileobj(resp, f)
|
||||||
|
|
||||||
|
tmp_path.replace(out)
|
||||||
|
prune_cache()
|
||||||
|
return out
|
||||||
|
finally:
|
||||||
|
try:
|
||||||
|
if tmp_path.exists():
|
||||||
|
tmp_path.unlink()
|
||||||
|
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def copy_to_current(img: Path) -> None:
|
||||||
|
shutil.copy2(img, CURRENT)
|
||||||
|
|
||||||
|
|
||||||
|
def cmd_random(args: argparse.Namespace) -> None:
|
||||||
|
ensure_dirs()
|
||||||
|
state = read_state()
|
||||||
|
|
||||||
|
use_fav = random.random() < args.fav_weight
|
||||||
|
fav_pick = pick_random_from(FAV_DIR) if use_fav else None
|
||||||
|
|
||||||
|
if fav_pick is not None:
|
||||||
|
swww_set(fav_pick)
|
||||||
|
state["current"] = str(fav_pick)
|
||||||
|
state["source"] = "favorites"
|
||||||
|
write_state(state)
|
||||||
|
print(f"Set (favorites): {fav_pick}")
|
||||||
|
copy_to_current(fav_pick)
|
||||||
|
return
|
||||||
|
|
||||||
|
url = wallhaven_search_random(args.tags)
|
||||||
|
img = download_to_cache(url)
|
||||||
|
swww_set(img)
|
||||||
|
copy_to_current(img)
|
||||||
|
|
||||||
|
state["current"] = str(img)
|
||||||
|
state["source"] = "wallhaven"
|
||||||
|
state["wallhaven_url"] = url
|
||||||
|
write_state(state)
|
||||||
|
print(f"Set (download): {img}")
|
||||||
|
|
||||||
|
|
||||||
|
def cmd_favorite(args: argparse.Namespace) -> None:
|
||||||
|
ensure_dirs()
|
||||||
|
state = read_state()
|
||||||
|
cur = state.get("current")
|
||||||
|
|
||||||
|
if not cur:
|
||||||
|
print(
|
||||||
|
"No current wallpaper found in state. Please set one first via 'random'",
|
||||||
|
file=sys.stderr,
|
||||||
|
)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
src = Path(cur)
|
||||||
|
if not src.exists():
|
||||||
|
print(f"Current wallpaper does not exist anymore: {src}", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
dest = FAV_DIR / src.name
|
||||||
|
if dest.exists():
|
||||||
|
print(f"Already in favorites: {dest}")
|
||||||
|
return
|
||||||
|
|
||||||
|
shutil.copy2(src, dest)
|
||||||
|
print(f"Saved to favorites: {dest}")
|
||||||
|
|
||||||
|
|
||||||
|
def reload(args: argparse.Namespace) -> None:
|
||||||
|
ensure_dirs()
|
||||||
|
state = read_state()
|
||||||
|
cur = state.get("current")
|
||||||
|
|
||||||
|
if not cur:
|
||||||
|
print(
|
||||||
|
"No current wallpaper found in state. Please set one first via 'random'",
|
||||||
|
file=sys.stderr,
|
||||||
|
)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
src = Path(cur)
|
||||||
|
if not src.exists():
|
||||||
|
print(f"Current wallpaper does not exist anymore: {src}", file=sys.stderr)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
swww_set(cur)
|
||||||
|
|
||||||
|
|
||||||
|
def main() -> None:
|
||||||
|
parser = argparse.ArgumentParser(
|
||||||
|
description="Hyprland wallpaper helper (swww + wallhaven + favorites"
|
||||||
|
)
|
||||||
|
sub = parser.add_subparsers(dest="cmd", required=True)
|
||||||
|
|
||||||
|
p_random = sub.add_parser(
|
||||||
|
"random", help="Set random wallpaper (favorites or download)"
|
||||||
|
)
|
||||||
|
p_random.add_argument(
|
||||||
|
"--fav-weight",
|
||||||
|
type=float,
|
||||||
|
default=0.3,
|
||||||
|
help="Probability to pick from favorites (0..1). Default: 0.3",
|
||||||
|
)
|
||||||
|
p_random.add_argument(
|
||||||
|
"--tags",
|
||||||
|
nargs="+",
|
||||||
|
default=DEFAULT_TAGS,
|
||||||
|
help=f"Wall haven tags list. Default: {DEFAULT_TAGS}",
|
||||||
|
)
|
||||||
|
p_random.set_defaults(func=cmd_random)
|
||||||
|
|
||||||
|
p_fav = sub.add_parser("favorite", help="Save current wallpaper to favorites")
|
||||||
|
p_fav.set_defaults(func=cmd_favorite)
|
||||||
|
|
||||||
|
p_fav = sub.add_parser("reload", help="Reload current wallpaper")
|
||||||
|
p_fav.set_defaults(func=reload)
|
||||||
|
|
||||||
|
args = parser.parse_args()
|
||||||
|
args.func(args)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
102
hypr/scripts/weather.sh
Executable file
102
hypr/scripts/weather.sh
Executable file
@@ -0,0 +1,102 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# --- CONFIGURATION ---
|
||||||
|
LAT="51.0509" # Replace with your Latitude
|
||||||
|
LON="13.7383" # Replace with your Longitude
|
||||||
|
UNITS="metric" # Use "metric" for Celsius, "imperial" for Fahrenheit
|
||||||
|
TZ="Europe/Berlin"
|
||||||
|
# ---------------------
|
||||||
|
|
||||||
|
if [[ "$UNITS" == "metric" ]]; then
|
||||||
|
TEMP_UNIT="celsius"
|
||||||
|
LABEL="°C"
|
||||||
|
else
|
||||||
|
TEMP_UNIT="fahrenheit"
|
||||||
|
LABEL="°F"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Fetch the weather data
|
||||||
|
RESPONSE=$(curl -s "https://api.open-meteo.com/v1/forecast?latitude=${LAT}&longitude=${LON}¤t=temperature_2m,weather_code,is_day&timezone=${TZ}")
|
||||||
|
|
||||||
|
# Check if curl failed to get a response
|
||||||
|
if [ -z "$RESPONSE" ]; then
|
||||||
|
echo "No connection"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
TEMP=$(echo "$RESPONSE" | jq -r '.current.temperature_2m | round')
|
||||||
|
CODE=$(echo "$RESPONSE" | jq -r '.current.weather_code')
|
||||||
|
IS_DAY=$(echo "$RESPONSE" | jq -r '.current.is_day')
|
||||||
|
|
||||||
|
case "$CODE" in
|
||||||
|
0)
|
||||||
|
if [[ "$IS_DAY" == "1" ]]; then
|
||||||
|
ICON=" " # nf-weather-day_sunny
|
||||||
|
else
|
||||||
|
ICON=" " # nf-weather-night_clear
|
||||||
|
fi
|
||||||
|
DESC="Clear sky"
|
||||||
|
;;
|
||||||
|
1 | 2)
|
||||||
|
if [[ "$IS_DAY" == "1" ]]; then
|
||||||
|
ICON=" " # nf-weather-day_cloudy
|
||||||
|
else
|
||||||
|
ICON=" " # nf-weather-night_alt_cloudy
|
||||||
|
fi
|
||||||
|
DESC="Partly cloudy"
|
||||||
|
;;
|
||||||
|
3)
|
||||||
|
ICON=" " # nf-weather-cloudy
|
||||||
|
DESC="Overcast"
|
||||||
|
;;
|
||||||
|
45 | 48)
|
||||||
|
ICON=" " # nf-weather-fog
|
||||||
|
DESC="Fog"
|
||||||
|
;;
|
||||||
|
51 | 53 | 55)
|
||||||
|
ICON=" " # nf-weather-sprinkle
|
||||||
|
DESC="Drizzle"
|
||||||
|
;;
|
||||||
|
56 | 57)
|
||||||
|
ICON=" "
|
||||||
|
DESC="Freezing drizzle"
|
||||||
|
;;
|
||||||
|
61 | 63 | 65)
|
||||||
|
ICON=" " # nf-weather-rain
|
||||||
|
DESC="Rain"
|
||||||
|
;;
|
||||||
|
66 | 67)
|
||||||
|
ICON=" "
|
||||||
|
DESC="Freezing rain"
|
||||||
|
;;
|
||||||
|
71 | 73 | 75 | 77)
|
||||||
|
ICON=" " # nf-weather-snow
|
||||||
|
DESC="Snow"
|
||||||
|
;;
|
||||||
|
80 | 81 | 82)
|
||||||
|
ICON=" " # nf-weather-showers
|
||||||
|
DESC="Rain showers"
|
||||||
|
;;
|
||||||
|
85 | 86)
|
||||||
|
ICON=" "
|
||||||
|
DESC="Snow showers"
|
||||||
|
;;
|
||||||
|
95)
|
||||||
|
ICON=" " # nf-weather-thunderstorm
|
||||||
|
DESC="Thunderstorm"
|
||||||
|
;;
|
||||||
|
96 | 99)
|
||||||
|
ICON=" "
|
||||||
|
DESC="Thunderstorm with hail"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Determine unit label
|
||||||
|
if [ "$UNITS" = "metric" ]; then
|
||||||
|
LABEL="°C"
|
||||||
|
else
|
||||||
|
LABEL="°F"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Final JSON output for Waybar
|
||||||
|
echo "{\"text\": \"${ICON} ${TEMP}${LABEL}\", \"tooltip\": \"${DESC}\"}"
|
||||||
@@ -28,7 +28,8 @@ devices: (
|
|||||||
}
|
}
|
||||||
|
|
||||||
buttons: (
|
buttons: (
|
||||||
{ // thumb button
|
{
|
||||||
|
// thumb button
|
||||||
cid: 0xc3; action =
|
cid: 0xc3; action =
|
||||||
{
|
{
|
||||||
type: "Gestures";
|
type: "Gestures";
|
||||||
@@ -56,6 +57,7 @@ devices: (
|
|||||||
{
|
{
|
||||||
direction: "left";
|
direction: "left";
|
||||||
mode: "OnRelease";
|
mode: "OnRelease";
|
||||||
|
|
||||||
action = {
|
action = {
|
||||||
type: "Keypress";
|
type: "Keypress";
|
||||||
keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_RIGHT"];
|
keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_RIGHT"];
|
||||||
@@ -72,11 +74,10 @@ devices: (
|
|||||||
{
|
{
|
||||||
direction: "None";
|
direction: "None";
|
||||||
mode: "OnRelease";
|
mode: "OnRelease";
|
||||||
action =
|
action = {
|
||||||
{
|
|
||||||
type: "Keypress";
|
type: "Keypress";
|
||||||
keys: ["KEY_LEFTMETA"];
|
keys: ["KEY_LEFTMETA"];
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
direction: "LEFT";
|
direction: "LEFT";
|
||||||
@@ -87,5 +88,5 @@ devices: (
|
|||||||
}
|
}
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -57,3 +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
|
||||||
|
lalt - b : open -a "Zen" --new
|
||||||
|
lalt - e : open -a "Finder"
|
||||||
|
lalt - w : skhd -k "cmd - w"
|
||||||
|
|||||||
5
swww/config
Normal file
5
swww/config
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
transition-type = grow
|
||||||
|
transition-duration = 1.2
|
||||||
|
transition-fps = 60
|
||||||
|
transition-angle = 30
|
||||||
|
transition-step = 90
|
||||||
@@ -1,53 +1,63 @@
|
|||||||
{
|
{
|
||||||
"layer": "bottom",
|
"layer": "bottom",
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"height": 40,
|
"height": 30,
|
||||||
"spacing": 2,
|
"spacing": 2,
|
||||||
"exclusive": true,
|
"exclusive": true,
|
||||||
"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": [
|
||||||
"modules-center": ["mpris"],
|
"hyprland/workspaces",
|
||||||
|
"hyprland/window"
|
||||||
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"cpu",
|
"cpu",
|
||||||
"memory",
|
"memory",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"clock",
|
"clock",
|
||||||
"clock#simpleclock",
|
"clock#simpleclock",
|
||||||
|
"custom/weather",
|
||||||
|
"custom/tailscale",
|
||||||
|
"network",
|
||||||
|
"battery",
|
||||||
"tray",
|
"tray",
|
||||||
"custom/notification",
|
"custom/notification",
|
||||||
"custom/power",
|
"custom/power"
|
||||||
],
|
],
|
||||||
"custom/spotify": {
|
|
||||||
"format": " {}",
|
|
||||||
"return-type": "json",
|
|
||||||
"on-click": "playerctl -p spotify play-pause",
|
|
||||||
"on-click-right": "spotifatius toggle-liked",
|
|
||||||
"on-click-middle": "playerctl -p spotify next",
|
|
||||||
"exec": "spotifatius monitor",
|
|
||||||
},
|
|
||||||
"mpris": {
|
"mpris": {
|
||||||
"player": "spotify",
|
"format": "{cover_art} {artist} - {title}",
|
||||||
"dynamic-order": ["artist", "title"],
|
"icon-size": 20,
|
||||||
"format": "{player_icon} {dynamic}",
|
"max-length": 40
|
||||||
"format-paused": "{status_icon} <i>{dynamic}</i>",
|
|
||||||
"status-icons": {
|
|
||||||
"paused": "",
|
|
||||||
},
|
|
||||||
"player-icons": {
|
|
||||||
"default": "",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
"hyprland/workspaces": {
|
"hyprland/workspaces": {
|
||||||
"on-click": "activate",
|
"on-click": "activate",
|
||||||
"format": "{id}",
|
"format": "{windows}",
|
||||||
"all-outputs": true,
|
"all-outputs": true,
|
||||||
"disable-scroll": false,
|
"disable-scroll": false,
|
||||||
"active-only": false,
|
"active-only": false,
|
||||||
|
"window-rewrite": {
|
||||||
|
"class<*>": " ",
|
||||||
|
"class<firefox>": " ",
|
||||||
|
"class<app.zen_browser.zen>": " ",
|
||||||
|
"class<kitty>": " ",
|
||||||
|
"class<com.seafile.seafile-applet>": " ",
|
||||||
|
"class<org.gnome.Nautilus>": " ",
|
||||||
|
"class<org.gnome.Software>": " ",
|
||||||
|
"class<chromium-browser>": " ",
|
||||||
|
"class<chrome-web.telegram.org__-Default>": " ",
|
||||||
|
"class<chrome-music.youtube.com__-Default>": " "
|
||||||
|
},
|
||||||
|
"window-rewrite-default": " "
|
||||||
},
|
},
|
||||||
"hyprland/window": {
|
"hyprland/window": {
|
||||||
"format": "{title}",
|
"format": "{title}",
|
||||||
|
"icon": true,
|
||||||
|
"icon-size": 22,
|
||||||
|
"seperate-outputs": true,
|
||||||
|
"rewrite": {
|
||||||
|
"": " Empty Workspace"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"tray": {
|
"tray": {
|
||||||
"show-passive-items": true,
|
"show-passive-items": true,
|
||||||
@@ -72,32 +82,67 @@
|
|||||||
"on-scroll": 1,
|
"on-scroll": 1,
|
||||||
},
|
},
|
||||||
"tooltip-format": "<span color='#cdd6f4' font='Lexend 16'><tt><small>{calendar}</small></tt></span>",
|
"tooltip-format": "<span color='#cdd6f4' font='Lexend 16'><tt><small>{calendar}</small></tt></span>",
|
||||||
|
"on-click": "gnome-calendar"
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"format": " {usage}%",
|
"format": " {usage}%",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"interval": 1,
|
"interval": 1,
|
||||||
|
"on-click": "kitty btop"
|
||||||
},
|
},
|
||||||
"memory": {
|
"memory": {
|
||||||
"format": " {used:0.1f}Gi",
|
"format": " {used:0.1f}Gi",
|
||||||
|
"on-click": "kitty btop"
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"format": "{icon} {volume}%",
|
"format": "{icon} {volume}%",
|
||||||
"format-muted": " muted",
|
"format-muted": " muted",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"headphone": "",
|
"headphone": " ",
|
||||||
"default": [" ", " ", " "],
|
"default": [
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" "
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"on-click": "pavucontrol",
|
"on-click": "pavucontrol"
|
||||||
|
},
|
||||||
|
"battery": {
|
||||||
|
"format": "{icon} {capacity}%",
|
||||||
|
"format-charging": "{icon} {capacity}%",
|
||||||
|
"format-plugged": "{icon} {capacity}%",
|
||||||
|
"format-icons": [
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
"",
|
||||||
|
""
|
||||||
|
],
|
||||||
|
"states": {
|
||||||
|
"critical": 15,
|
||||||
|
"warning": 30
|
||||||
|
},
|
||||||
|
"events": {
|
||||||
|
"on-discharging-critical": "notify-send -u critical 'Low Battery'"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"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": {
|
||||||
|
"exec": "~/.config/waybar/scripts/nowplaying.sh",
|
||||||
|
"interval": 2,
|
||||||
|
"return-type": "json",
|
||||||
|
"on-click": "playerctl play-pause"
|
||||||
},
|
},
|
||||||
"custom/notification": {
|
"custom/notification": {
|
||||||
"escape": true,
|
"escape": true,
|
||||||
@@ -107,9 +152,44 @@
|
|||||||
"format-icons": {
|
"format-icons": {
|
||||||
"none": "",
|
"none": "",
|
||||||
"notification": "",
|
"notification": "",
|
||||||
|
"dnd-notification": "",
|
||||||
|
"": "",
|
||||||
|
"inhibited": ""
|
||||||
},
|
},
|
||||||
"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": {
|
||||||
|
"format": "{}",
|
||||||
|
"interval": 600,
|
||||||
|
"exec": "~/.config/hypr/scripts/weather.sh", // or your dotfiles folder if you use stow
|
||||||
|
"return-type": "json",
|
||||||
|
"on-click": "gnome-weather"
|
||||||
|
},
|
||||||
|
"custom/tailscale": {
|
||||||
|
"exec": "~/.config/waybar/scripts/tailscale.sh",
|
||||||
|
"interval": 5,
|
||||||
|
"return-type": "json",
|
||||||
|
"on-click": "~/.config/waybar/scripts/tailscale-toggle.sh",
|
||||||
|
"tooltip": true
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"interface": "wlp1s0",
|
||||||
|
"format": "",
|
||||||
|
"format-icons": [
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" ",
|
||||||
|
" "
|
||||||
|
],
|
||||||
|
"format-wifi": "{icon} {essid}",
|
||||||
|
"format-ethernet": " Ethernet",
|
||||||
|
"format-disconnected": " Disconnected",
|
||||||
|
"tooltip-format": "{ifname}",
|
||||||
|
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
|
||||||
|
"tooltip-format-ethernet": "{ifname}",
|
||||||
|
"tooltip-format-disconnected": "Disconnected",
|
||||||
|
"max-length": 50
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
24
waybar/scripts/nowplaying.sh
Executable file
24
waybar/scripts/nowplaying.sh
Executable file
@@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CACHE="$HOME/.cache/waybar-cover.jpg"
|
||||||
|
TMP="$HOME/.cache/waybar-cover.tmp.jpg"
|
||||||
|
|
||||||
|
status=$(playerctl status 2>/dev/null)
|
||||||
|
|
||||||
|
if [ "$status" = "Playing" ]; then
|
||||||
|
artist=$(playerctl metadata artist)
|
||||||
|
title=$(playerctl metadata title)
|
||||||
|
url=$(playerctl metadata mpris:artUrl)
|
||||||
|
|
||||||
|
if [[ "$url" == file://* ]]; then
|
||||||
|
cp "${url#file://}" "$TMP"
|
||||||
|
else
|
||||||
|
curl -sL "$url" -o "$TMP"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mv -f "$TMP" "$CACHE"
|
||||||
|
|
||||||
|
echo "{\"text\": \"$artist - $title\", \"tooltip\": \"$artist - $title\", \"class\": \"playing\", \"alt\": \"$CACHE\"}"
|
||||||
|
else
|
||||||
|
echo "{\"text\": \" \", \"class\": \"stopped\"}"
|
||||||
|
fi
|
||||||
7
waybar/scripts/tailscale-toggle.sh
Executable file
7
waybar/scripts/tailscale-toggle.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if tailscale status --json 2>/dev/null | grep -q '"BackendState": "Running"'; then
|
||||||
|
tailscale down
|
||||||
|
else
|
||||||
|
tailscale up
|
||||||
|
fi
|
||||||
7
waybar/scripts/tailscale.sh
Executable file
7
waybar/scripts/tailscale.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if tailscale status --json 2>/dev/null | grep -q '"BackendState": "Running"'; then
|
||||||
|
echo '{"text":" ","class":"connected","tooltip":"Tailscale Connected"}'
|
||||||
|
else
|
||||||
|
echo '{"text":" ","class":"disconnected","tooltip":"Tailscale Disconnected"}'
|
||||||
|
fi
|
||||||
110
waybar/style.css
110
waybar/style.css
@@ -1,59 +1,107 @@
|
|||||||
|
@define-color bg #1e1e2e;
|
||||||
|
@define-color accent #b4befe;
|
||||||
|
|
||||||
* {
|
* {
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
font-family: Lexend, "JetBrainsMono NFP";
|
font-family: "Lexend", "JetBrainsMono Nerd Font";
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-weight: 600;
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces {
|
||||||
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
transition-property: background-color;
|
min-height: 0;
|
||||||
transition-duration: 0.5s;
|
background: transparent;
|
||||||
/* background-color: #1e1e2e; */
|
}
|
||||||
/* background-color: #181825; */
|
|
||||||
background-color: rgba(24, 24, 37, 0.6);
|
#window {
|
||||||
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0.3rem 0.6rem;
|
padding-left: 5px;
|
||||||
margin: 0.4rem 0.25rem;
|
padding-right: 0;
|
||||||
|
margin-top: 3px;
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
border: 0;
|
||||||
|
margin-left: 4px;
|
||||||
|
margin-right: 0;
|
||||||
|
|
||||||
|
min-height: 10px;
|
||||||
|
min-width: 24px;
|
||||||
|
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
/* background-color: #181825; */
|
background: alpha(@bg, 0.3);
|
||||||
background-color: #1e1e2e;
|
|
||||||
color: #cdd6f4;
|
transition:
|
||||||
|
all 180ms cubic-bezier(.4,0,.2,1),
|
||||||
|
color 800ms cubic-bezier(.4, 0, .2, 1);
|
||||||
|
|
||||||
|
opacity: 0.3;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button label {
|
||||||
|
font-size: 18px;
|
||||||
|
letter-spacing: -3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:hover {
|
#workspaces button:hover {
|
||||||
color: #1e1e2e;
|
background: rgba(255,255,255,0.45);
|
||||||
background-color: #cdd6f4;
|
opacity: 0.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.active {
|
#workspaces button.active {
|
||||||
background-color: #1e1e2e;
|
min-width: 34px;
|
||||||
color: #89b4fa;
|
background: white;
|
||||||
|
background: alpha(@bg,0.3);
|
||||||
|
color: white;
|
||||||
|
border: 1px solid alpha(white, 0.7);
|
||||||
|
opacity: 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.visible {
|
||||||
|
background: alpha(@bg,0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.urgent {
|
#workspaces button.urgent {
|
||||||
background-color: #1e1e2e;
|
background: #ff5f5f;
|
||||||
color: #f38ba8;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock,
|
#clock,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
|
#custom-nowplaying,
|
||||||
#custom-logo,
|
#custom-logo,
|
||||||
#custom-power,
|
#custom-power,
|
||||||
#custom-spotify,
|
#custom-spotify,
|
||||||
#custom-notification,
|
#custom-notification,
|
||||||
|
#custom-tailscale,
|
||||||
|
#custom-weather,
|
||||||
#cpu,
|
#cpu,
|
||||||
#tray,
|
#tray,
|
||||||
#memory,
|
#memory,
|
||||||
|
#battery,
|
||||||
|
#network,
|
||||||
#window,
|
#window,
|
||||||
#mpris {
|
#mpris {
|
||||||
padding: 0.3rem 0.6rem;
|
padding: 0.1rem 0.6rem;
|
||||||
margin: 0.4rem 0.25rem;
|
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
/* background-color: #181825; */
|
background-color: alpha(@bg, 0.3);
|
||||||
background-color: #1e1e2e;
|
margin-top: 3px;
|
||||||
|
margin-left: 3px;
|
||||||
|
margin-right: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-nowplaying {
|
||||||
|
padding-left: 40px;
|
||||||
|
background-size: 30px 30px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: left center;
|
||||||
|
background-image: url('/home/stereov/.cache/nowplaying-cover.jpg')
|
||||||
}
|
}
|
||||||
|
|
||||||
#mpris.playing {
|
#mpris.playing {
|
||||||
@@ -68,11 +116,7 @@ window#waybar {
|
|||||||
padding: 0px;
|
padding: 0px;
|
||||||
color: #585b70;
|
color: #585b70;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
window#waybar.empty #window {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#cpu {
|
#cpu {
|
||||||
color: #94e2d5;
|
color: #94e2d5;
|
||||||
}
|
}
|
||||||
@@ -89,9 +133,6 @@ window#waybar.empty #window {
|
|||||||
color: #89b4fa;
|
color: #89b4fa;
|
||||||
}
|
}
|
||||||
|
|
||||||
#window {
|
|
||||||
color: #cdd6f4;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pulseaudio {
|
#pulseaudio {
|
||||||
color: #b4befe;
|
color: #b4befe;
|
||||||
@@ -109,7 +150,16 @@ window#waybar.empty #window {
|
|||||||
color: #f38ba8;
|
color: #f38ba8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#battery {
|
||||||
|
color: #94e2d5;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.critical {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
tooltip {
|
tooltip {
|
||||||
background-color: #181825;
|
background-color: #181825;
|
||||||
border: 2px solid #89b4fa;
|
border: 2px solid #89b4fa;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|||||||
BIN
wlogout/icons/hibernate.png
Normal file
BIN
wlogout/icons/hibernate.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
BIN
wlogout/icons/lock.png
Normal file
BIN
wlogout/icons/lock.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.9 KiB |
BIN
wlogout/icons/logout.png
Normal file
BIN
wlogout/icons/logout.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.2 KiB |
BIN
wlogout/icons/reboot.png
Normal file
BIN
wlogout/icons/reboot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
wlogout/icons/shutdown.png
Normal file
BIN
wlogout/icons/shutdown.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
wlogout/icons/suspend.png
Normal file
BIN
wlogout/icons/suspend.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
36
wlogout/layout
Normal file
36
wlogout/layout
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
"label" : "lock",
|
||||||
|
"action" : "hyprlock",
|
||||||
|
"text" : "Lock",
|
||||||
|
"keybind" : "l"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "logout",
|
||||||
|
"action" : "hyprctl dispatch exit",
|
||||||
|
"text" : "Logout",
|
||||||
|
"keybind" : "e"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "suspend",
|
||||||
|
"action" : "systemctl suspend",
|
||||||
|
"text" : "Suspend",
|
||||||
|
"keybind" : "u"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "hibernate",
|
||||||
|
"action" : "systemctl hibernate",
|
||||||
|
"text" : "Hibernate",
|
||||||
|
"keybind" : "h"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "shutdown",
|
||||||
|
"action" : "systemctl poweroff",
|
||||||
|
"text" : "Shutdown",
|
||||||
|
"keybind" : "s"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"label" : "reboot",
|
||||||
|
"action" : "systemctl reboot",
|
||||||
|
"text" : "Reboot",
|
||||||
|
"keybind" : "r"
|
||||||
|
}
|
||||||
43
wlogout/style.css
Normal file
43
wlogout/style.css
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
window {
|
||||||
|
font-family: "Lexend";
|
||||||
|
font-size: 12pt;
|
||||||
|
color: #cdd6f4;
|
||||||
|
background-color: rgba(30, 30, 46, 0.9);
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: 25%;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 3px;
|
||||||
|
background-color: rgba(12, 12, 12, 0.3);
|
||||||
|
border-color: #313244;
|
||||||
|
margin: 5px;
|
||||||
|
border-radius: 20px;
|
||||||
|
transition: all 0.3s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
#lock {
|
||||||
|
background-image: image(url("icons/lock.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#logout {
|
||||||
|
background-image: image(url("icons/logout.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#suspend {
|
||||||
|
background-image: image(url("icons/suspend.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#hibernate {
|
||||||
|
background-image: image(url("icons/hibernate.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#reboot {
|
||||||
|
background-image: image(url("icons/reboot.png"));
|
||||||
|
}
|
||||||
|
|
||||||
|
#shutdown {
|
||||||
|
background-image: image(url("icons/shutdown.png"));
|
||||||
|
}
|
||||||
@@ -21,22 +21,35 @@ yabai -m rule --add title='^Archive Utility$' manage=off
|
|||||||
|
|
||||||
yabai -m rule --add app="^IntelliJ IDEA$" title="^Welcome to IntelliJ IDEA$" manage=off
|
yabai -m rule --add app="^IntelliJ IDEA$" title="^Welcome to IntelliJ IDEA$" manage=off
|
||||||
yabai -m rule --add app="^WebStorm$" title="^Welcome to WebStorm$" manage=off
|
yabai -m rule --add app="^WebStorm$" title="^Welcome to WebStorm$" manage=off
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Add File to Git$" manage=off
|
jetbrains_dialogs=(
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Delete$" manage=off
|
"^Add File to Git$"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Push Commits" manage=off
|
"^Delete$"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Update Project$" manage=off
|
"^Push Commits"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^New Project$" manage=off
|
"^Update Project$"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Clone Repository$" manage=off
|
"^New Project$"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Project Structure$" manage=off
|
"^Clone Repository$"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Settings$" manage=off
|
"^Project Structure$"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Run/Debug Configurations$" manage=off
|
"^Settings$"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Data Sources and Drivers$" manage=off
|
"^Run/Debug Configurations$"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Choose Plugins to Install or Enable$" manage=off
|
"^Data Sources and Drivers$"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Create New Branch$" manage=off
|
"^Choose Plugins to Install or Enable$"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Copy$" manage=off
|
"^Create New Branch$"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Rename$" manage=off
|
"^Copy$"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Rename Branch" manage=off
|
"^Rename$"
|
||||||
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="^Rollback Changes$"" manage=off
|
"^Rename Branch"
|
||||||
|
"^Rollback Changes$"
|
||||||
|
"^Copy Files/Directory$"
|
||||||
|
"^Choose Package$"
|
||||||
|
"^Move Package$"
|
||||||
|
"^Move$"
|
||||||
|
"^Git Editor$"
|
||||||
|
"^Create New Tag"
|
||||||
|
)
|
||||||
|
|
||||||
|
for title in "${jetbrains_dialogs[@]}"; do
|
||||||
|
yabai -m rule --add app="^(IntelliJ IDEA|WebStorm)$" title="$title" manage=off
|
||||||
|
done
|
||||||
|
|
||||||
# float settings windows
|
# float settings windows
|
||||||
yabai -m rule --add title='Settings$' manage=off
|
yabai -m rule --add title='Settings$' manage=off
|
||||||
|
|
||||||
@@ -67,3 +80,4 @@ yabai -m signal --add event=application_activated action="zsh ~/.config/yabai/ap
|
|||||||
yabai -m signal --add event=window_created action="zsh ~/.config/yabai/window-created.zsh"
|
yabai -m signal --add event=window_created action="zsh ~/.config/yabai/window-created.zsh"
|
||||||
|
|
||||||
echo "yabai configuration loaded.."
|
echo "yabai configuration loaded.."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user