migration
This commit is contained in:
257
hyprland/btop/btop.conf
Normal file
257
hyprland/btop/btop.conf
Normal file
@@ -0,0 +1,257 @@
|
||||
#? Config file for btop v. 1.4.5
|
||||
|
||||
#* 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 = "catppuccin_mocha"
|
||||
|
||||
#* 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
|
||||
|
||||
#* 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 = "cpu mem net proc"
|
||||
|
||||
#* 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 = "memory"
|
||||
|
||||
#* 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
|
||||
|
||||
#* 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
|
||||
|
||||
#* 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 "~/.config/btop/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"
|
||||
|
||||
#* 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
|
||||
|
||||
#* 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
hyprland/btop/themes/catppuccin_mocha.theme
Normal file
83
hyprland/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]=""
|
||||
|
||||
# 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"
|
||||
26
hyprland/fastfetch/config.jsonc
Normal file
26
hyprland/fastfetch/config.jsonc
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"modules": [
|
||||
"title",
|
||||
"separator",
|
||||
"os",
|
||||
"kernel",
|
||||
"uptime",
|
||||
"packages",
|
||||
"shell",
|
||||
"de",
|
||||
"wm",
|
||||
{
|
||||
"type": "theme",
|
||||
"key": "Theme"
|
||||
},
|
||||
{
|
||||
"type": "icons",
|
||||
"key": "Icons"
|
||||
},
|
||||
"terminal",
|
||||
"cpu",
|
||||
"gpu",
|
||||
"memory",
|
||||
"colors"
|
||||
]
|
||||
}
|
||||
52
hyprland/ghostty/config
Normal file
52
hyprland/ghostty/config
Normal file
@@ -0,0 +1,52 @@
|
||||
# This is the configuration file for Ghostty.
|
||||
#
|
||||
# This template file has been automatically created at the following
|
||||
# path since Ghostty couldn't find any existing config files on your system:
|
||||
#
|
||||
# /home/kokopi/.config/ghostty/config
|
||||
#
|
||||
# The template does not set any default options, since Ghostty ships
|
||||
# with sensible defaults for all options. Users should only need to set
|
||||
# options that they want to change from the default.
|
||||
#
|
||||
# Run `ghostty +show-config --default --docs` to view a list of
|
||||
# all available config options and their default values.
|
||||
#
|
||||
# Additionally, each config option is also explained in detail
|
||||
# on Ghostty's website, at https://ghostty.org/docs/config.
|
||||
|
||||
theme = navarch
|
||||
|
||||
font-size = 12.5
|
||||
font-family = "Geist Mono"
|
||||
window-padding-x = 10
|
||||
window-padding-y = 10
|
||||
window-padding-color = background
|
||||
window-title-font-family = "Geist"
|
||||
window-theme = ghostty
|
||||
window-inherit-working-directory = true
|
||||
window-inherit-font-size = true
|
||||
focus-follows-mouse = true
|
||||
gtk-tabs-location = bottom
|
||||
background = #14111C
|
||||
background-opacity = 0.35
|
||||
background-blur = true
|
||||
foreground = #E6DDD1
|
||||
cursor-style = bar
|
||||
# # Any line beginning with a # is a comment. It's not possible to put
|
||||
# # a comment after a config option, since it would be interpreted as a
|
||||
# # part of the value. For example, this will have a value of "#123abc":
|
||||
# background = #123abc
|
||||
#
|
||||
# # Empty values are used to reset config keys to default.
|
||||
# key =
|
||||
#
|
||||
# # Some config options have unique syntaxes for their value,
|
||||
# # which is explained in the docs for that config option.
|
||||
# # Just for example:
|
||||
# resize-overlay-duration = 4s 200ms
|
||||
#
|
||||
keybind = ctrl+shift+.=move_tab:1
|
||||
keybind = ctrl+shift+,=move_tab:-1
|
||||
|
||||
app-notifications = no-clipboard-copy
|
||||
8
hyprland/ghostty/themes/cheatsheet
Normal file
8
hyprland/ghostty/themes/cheatsheet
Normal file
@@ -0,0 +1,8 @@
|
||||
0=#1e1f21 # Black - terminal background color
|
||||
1=#bf6b69 # Red - error messages and warnings
|
||||
2=#b7bd73 # Green - success messages
|
||||
3=#e9c880 # Yellow - warnings and highlights
|
||||
4=#88a1bb # Blue - links and info
|
||||
5=#ad95b8 # Purple - special syntax
|
||||
6=#95bdb7 # Cyan - comments in code
|
||||
7=#c5c8c6 # White - normal text
|
||||
22
hyprland/ghostty/themes/navarch
Normal file
22
hyprland/ghostty/themes/navarch
Normal file
@@ -0,0 +1,22 @@
|
||||
palette = 0=#3d3555
|
||||
palette = 1=#d18585
|
||||
palette = 2=#8ab88a
|
||||
palette = 3=#e0cd93
|
||||
palette = 4=#8aade0
|
||||
palette = 5=#d093d1
|
||||
palette = 6=#8acaca
|
||||
palette = 7=#d0b5d2
|
||||
palette = 8=#594d67
|
||||
palette = 9=#db9a9a
|
||||
palette = 10=#a5c5a5
|
||||
palette = 11=#e2d0a3
|
||||
palette = 12=#9dbae6
|
||||
palette = 13=#d6aad7
|
||||
palette = 14=#9dd2d2
|
||||
palette = 15=#dfced9
|
||||
background = #211C2E
|
||||
foreground = #ddced8
|
||||
cursor-color = #d5aed6
|
||||
cursor-text = #211C2E
|
||||
selection-background = #d5aed6
|
||||
selection-foreground = #211C2E
|
||||
125
hyprland/gtk-3.0/gtk.css
Normal file
125
hyprland/gtk-3.0/gtk.css
Normal file
@@ -0,0 +1,125 @@
|
||||
@define-color hl_text_color #e0cd93;
|
||||
@define-color cover_bg rgba(27, 22, 38, 0.9);
|
||||
@define-color border_color rgb(113, 142, 184);
|
||||
@define-color text_color #ddced8;
|
||||
|
||||
/* global */
|
||||
.view:hover, iconview:hover, .view:hover:focus, iconview:hover:focus, .view text:hover, iconview text:hover, textview text:hover, iconview text:hover:focus, textview text:hover:focus, flowbox flowboxchild:hover, row:hover, .view:selected, iconview:selected, .view:selected:focus, iconview:selected:focus, .view text:selected, iconview text:selected, textview text:selected, iconview text:selected:focus, textview text:selected:focus, .view text selection:focus, iconview text selection:focus, .view text selection, iconview text selection, textview text selection:focus, textview text selection, flowbox flowboxchild:selected, entry selection, entry selection:focus, row:selected {
|
||||
color: @cover_bg;
|
||||
background-color: #8aade0;
|
||||
}
|
||||
check:checked,
|
||||
check:indeterminate,
|
||||
radio:checked,
|
||||
radio:indeterminate,
|
||||
switch:checked {
|
||||
background-color: #d093d1;
|
||||
}
|
||||
menubar {
|
||||
background-color: #211c2e;
|
||||
}
|
||||
window.background headerbar {
|
||||
background-color: #211c2e;
|
||||
}
|
||||
.background {
|
||||
background: rgba(33, 28, 46, 0.8);
|
||||
color: @text_color;
|
||||
}
|
||||
|
||||
/* most inputs */
|
||||
entry:focus {
|
||||
box-shadow: inset 0 0 0 2px @border_color;
|
||||
}
|
||||
|
||||
treeview.view {
|
||||
color: #8aade0;
|
||||
background-color: transparent;
|
||||
}
|
||||
treeview.view:selected {
|
||||
color: #d093d1;
|
||||
background-color: rgba(208, 181, 210, 0.2);
|
||||
}
|
||||
toolbar.primary-toolbar {
|
||||
background: rgba(21, 24, 40, 0.3);
|
||||
}
|
||||
|
||||
/* firefox */
|
||||
firefox headerbar {
|
||||
background: rgba(33, 28, 46, 0.5);
|
||||
color: @text_color;
|
||||
}
|
||||
|
||||
/* global dropdowns, target: thunar menu item text hover */
|
||||
menu menuitem:hover {
|
||||
transition: none;
|
||||
background-color: rgba(233, 233, 237, 0.04);
|
||||
}
|
||||
menu menuitem label {
|
||||
color: #8aade0;
|
||||
}
|
||||
|
||||
/* menu item right label */
|
||||
menu menuitem:hover accelerator {
|
||||
color: #d093d1;
|
||||
}
|
||||
menu {
|
||||
background-color: #211c2e;
|
||||
}
|
||||
|
||||
/* icon styles */
|
||||
.thunar .view .cell:hover {
|
||||
color: @hl_text_color;
|
||||
}
|
||||
.thunar .view .cell {
|
||||
border-radius: 8px;
|
||||
background: rgba(33, 28, 46, 0.15);
|
||||
color: @text_color;
|
||||
}
|
||||
|
||||
.thunar {
|
||||
background: none;
|
||||
}
|
||||
.thunar toolbar {
|
||||
background: @cover_bg;
|
||||
padding: 8px 10px;
|
||||
border-top: 1px solid @border_color;
|
||||
}
|
||||
/* toolbar back btns and stuff */
|
||||
.thunar toolbar .image-button {
|
||||
color: @hl_text_color;
|
||||
}
|
||||
/* input bar */
|
||||
.thunar toolbar toolitem widget box entry {
|
||||
color: @hl_text_color;
|
||||
background: linear-gradient(35deg, rgb(68, 59, 79), rgb(33, 28, 46));
|
||||
}
|
||||
/* sidebar */
|
||||
.thunar .sidebar .view {
|
||||
background: @cover_bg;
|
||||
color: @hl_text_color;
|
||||
border-radius: 0px;
|
||||
}
|
||||
/* main body */
|
||||
.thunar notebook .view {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(35, 34, 56, 0.8),
|
||||
rgba(54, 33, 52, 0.8),
|
||||
rgba(33, 28, 46, 0.8)
|
||||
);
|
||||
}
|
||||
/* bottom right section */
|
||||
.thunar statusbar {
|
||||
color: @hl_text_color;
|
||||
background: @cover_bg;
|
||||
}
|
||||
|
||||
/* dbeaver */
|
||||
/* partial label text */
|
||||
.image-button.flat.text-button box:dir(ltr).horizontal label:dir(ltr) {
|
||||
color: @text_color;
|
||||
}
|
||||
/* dropdown arrow icon */
|
||||
.flat.toggle.popup image {
|
||||
color: @hl_text_color;
|
||||
}
|
||||
7
hyprland/gtk-3.0/settings.ini
Normal file
7
hyprland/gtk-3.0/settings.ini
Normal file
@@ -0,0 +1,7 @@
|
||||
[Settings]
|
||||
gtk-application-prefer-dark-theme=1
|
||||
gtk-icon-theme-name=catppuccin-mocha
|
||||
gtk-theme-name=tokyonight-dark
|
||||
gtk-font-name=Geist
|
||||
gtk-cursor-theme-name=catppuccin-mocha-dark-cursors
|
||||
gtk-im-module=fcitx
|
||||
61
hyprland/gtk-4.0/gtk.css
Normal file
61
hyprland/gtk-4.0/gtk.css
Normal file
@@ -0,0 +1,61 @@
|
||||
@define-color cover_bg rgba(27, 22, 38, 0.9);
|
||||
@define-color hl_text_color #e0cd93;
|
||||
* {
|
||||
color: #ddced8;
|
||||
}
|
||||
tab label {
|
||||
color: @hl_text_color;
|
||||
}
|
||||
slider {
|
||||
box-shadow: inset 0 0 0 2px @hl_text_color;
|
||||
}
|
||||
button.toggle:checked:not(:hover):not(:focus):not(.flat),
|
||||
button.toggle:checked:not(:hover):not(:focus):not(.flat) label {
|
||||
background-color: #8aade0;
|
||||
color: @cover_bg;
|
||||
}
|
||||
|
||||
combobox button:active, combobox button:checked {
|
||||
background: #8aade0;
|
||||
}
|
||||
combobox button:active cellview, combobox button:checked cellview {
|
||||
color: @cover_bg;
|
||||
}
|
||||
|
||||
window {
|
||||
background: @cover_bg;
|
||||
}
|
||||
header {
|
||||
background: @cover_bg;
|
||||
}
|
||||
scrolledwindow {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(35, 34, 56, 0.6),
|
||||
rgba(43, 26, 42, 0.6),
|
||||
rgba(33, 28, 46, 0.6)
|
||||
);
|
||||
color: #ddced8;
|
||||
}
|
||||
|
||||
/* ghostty */
|
||||
.terminal-window box notebook header {
|
||||
background-color: #1a1b26;
|
||||
margin: 2px;
|
||||
}
|
||||
.terminal-window box notebook header tab {
|
||||
font-family: "Octal";
|
||||
background-color: #1a1b26;
|
||||
color: #e6ddd1;
|
||||
padding: 0.5px 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.terminal-window box notebook header tab:hover {
|
||||
background-color: #24283b;
|
||||
}
|
||||
|
||||
.terminal-window box notebook header tab:checked {
|
||||
color: #bf9fd8;
|
||||
background-color: #414868;
|
||||
}
|
||||
6
hyprland/gtk-4.0/settings.ini
Normal file
6
hyprland/gtk-4.0/settings.ini
Normal file
@@ -0,0 +1,6 @@
|
||||
[Settings]
|
||||
gtk-icon-theme-name=catppuccin-mocha
|
||||
gtk-theme-name=tokyonight-dark
|
||||
gtk-font-name=Geist 12
|
||||
gtk-cursor-theme-name=catppuccin-mocha-dark-cursors
|
||||
gtk-im-module=fcitx
|
||||
12
hyprland/hypr/hypridle.conf
Normal file
12
hyprland/hypr/hypridle.conf
Normal file
@@ -0,0 +1,12 @@
|
||||
general {
|
||||
lock_cmd = pidof hyprlock || ~/.config/hypr/run-hyprlock.sh
|
||||
before_sleep_cmd = loginctl lock-session # lock before suspend
|
||||
after_sleep_cmd = hyprctl dispatch dpms on
|
||||
inhibit_sleep = 2
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 600 # 10 minutes
|
||||
on-timeout = hyprctl dispatch dpms off # screen off
|
||||
on-resume = hyprctl dispatch dpms on # screen on when activity detected
|
||||
}
|
||||
382
hyprland/hypr/hyprland.conf
Normal file
382
hyprland/hypr/hyprland.conf
Normal file
@@ -0,0 +1,382 @@
|
||||
# This is an example Hyprland config file.
|
||||
# Refer to the wiki for more information.
|
||||
# https://wiki.hypr.land/Configuring/
|
||||
|
||||
# Please note not all available settings / options are set here.
|
||||
# For a full list, see the wiki
|
||||
|
||||
# You can split this configuration into multiple files
|
||||
# Create your files separately and then link them to this file like this:
|
||||
# source = ~/.config/hypr/myColors.conf
|
||||
|
||||
|
||||
################
|
||||
### MONITORS ###
|
||||
################
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Monitors/
|
||||
monitor=eDP-1,2256x1504@60,auto,1.33
|
||||
monitor=DP-3,2560x1080@60,auto,1.0 # at home dock
|
||||
|
||||
###################
|
||||
### MY PROGRAMS ###
|
||||
###################
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Keywords/
|
||||
|
||||
# Set programs that you use
|
||||
$terminal = ghostty
|
||||
$fileManager = thunar
|
||||
$menu = ~/.local/bin/rofi-app-manager.sh
|
||||
$configMenu = ~/.local/bin/rofi-config-manager.sh
|
||||
$helpMenu = ~/.local/bin/rofi-help-manager.sh
|
||||
$settingsMenu = ~/.local/bin/rofi-settings-manager.sh
|
||||
$powerMenu = ~/.local/bin/rofi-power-manager.sh
|
||||
# $menu = rofi -show drun -theme ~/.config/rofi/config.rasi
|
||||
|
||||
|
||||
# https://github.com/catppuccin/cursors
|
||||
env = XCURSOR_THEME,catppuccin-mocha-dark-cursors
|
||||
env = GTK_THEME=tokyonight-dark
|
||||
env = XCURSOR_SIZE,24
|
||||
# for discord
|
||||
env = GDK_SCALE,1.33
|
||||
env = GDK_DPI_SCALE,1.0
|
||||
# env = HYPRCURSOR_SIZE,24
|
||||
|
||||
# styling qt ui to gtk3 style
|
||||
env = QT_QPA_PLATFORMTHEME,gtk3
|
||||
|
||||
env = GTK_IM_MODULE,fcitx
|
||||
env = QT_IM_MODULE,fcitx
|
||||
env = XMODIFIERS,@im=fcitx
|
||||
env = INPUT_METHOD,fcitx
|
||||
env = SDL_IM_MODULE,fcitx
|
||||
env = GLFW_IM_MODULE,fcitx
|
||||
|
||||
#################
|
||||
### AUTOSTART ###
|
||||
#################
|
||||
|
||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||
# Or execute your favorite apps at launch like this:
|
||||
|
||||
exec-once = fcitx5 -d
|
||||
exec-once = hyprpaper & hypridle & mako
|
||||
exec-once = gsettings set org.gnome.desktop.interface gtk-theme 'tokyonight-dark'
|
||||
exec-once = gsettings set org.gnome.desktop.interface icon-theme 'catppuccin-mocha'
|
||||
exec-once = gsettings set org.gnome.desktop.interface font-name 'Geist 11'
|
||||
exec-once = ~/.config/hypr/reload-monitors.sh # contains waybar
|
||||
exec-once = ~/.config/wlsunset/run-wlsunset.sh init
|
||||
exec-once = ~/.config/waybar/scripts/fcitx5-monitor.sh &
|
||||
|
||||
# so far, for bazecor
|
||||
exec-once = /usr/lib/hyprpolkitagent/hyprpolkitagent & disown
|
||||
|
||||
source = /tmp/hyprland-workspaces.conf
|
||||
#############################
|
||||
### ENVIRONMENT VARIABLES ###
|
||||
#############################
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Environment-variables/
|
||||
|
||||
# for discord
|
||||
xwayland {
|
||||
force_zero_scaling = true
|
||||
}
|
||||
|
||||
###################
|
||||
### PERMISSIONS ###
|
||||
###################
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Permissions/
|
||||
# Please note permission changes here require a Hyprland restart and are not applied on-the-fly
|
||||
# for security reasons
|
||||
|
||||
ecosystem {
|
||||
no_update_news = true
|
||||
# enforce_permissions = 1
|
||||
}
|
||||
|
||||
# permission = /usr/(bin|local/bin)/grim, screencopy, allow
|
||||
# permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
|
||||
# permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
|
||||
|
||||
|
||||
#####################
|
||||
### LOOK AND FEEL ###
|
||||
#####################
|
||||
|
||||
# Refer to https://wiki.hypr.land/Configuring/Variables/
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#general
|
||||
general {
|
||||
gaps_in = 3
|
||||
gaps_out = 15
|
||||
|
||||
border_size = 2
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#variable-types for info about colors
|
||||
col.active_border = rgb(d093d1) rgb(8aade0) rgb(e0cd93) 45deg
|
||||
col.inactive_border = rgba(C9C5BB4d)
|
||||
|
||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||
resize_on_border = false
|
||||
|
||||
# Please see https://wiki.hypr.land/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#decoration
|
||||
decoration {
|
||||
rounding = 8
|
||||
rounding_power = 2
|
||||
|
||||
# Change transparency of focused and unfocused windows
|
||||
active_opacity = 1.0
|
||||
inactive_opacity = 1.0
|
||||
|
||||
shadow {
|
||||
enabled = true
|
||||
range = 4
|
||||
render_power = 3
|
||||
color = rgba(1a1a1aee)
|
||||
}
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#blur
|
||||
blur {
|
||||
enabled = true
|
||||
size = 3
|
||||
passes = 2
|
||||
new_optimizations = true
|
||||
vibrancy = 0.1696
|
||||
}
|
||||
}
|
||||
layerrule = blur, waybar
|
||||
layerrule = blur, rofi
|
||||
layerrule = blur, notifications
|
||||
layerrule = ignorezero, notifications
|
||||
|
||||
### animatons ###
|
||||
# https://wiki.hypr.land/Configuring/Variables/#animations
|
||||
animations {
|
||||
enabled = yes, please :)
|
||||
|
||||
# Default curves, see https://wiki.hypr.land/Configuring/Animations/#curves
|
||||
# NAME, X0, Y0, X1, Y1
|
||||
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
|
||||
bezier = quick, 0.15, 0, 0.1, 1
|
||||
|
||||
# Default animations, see https://wiki.hypr.land/Configuring/Animations/
|
||||
# NAME, ONOFF, SPEED, CURVE, [STYLE]
|
||||
animation = global, 1, 10, default
|
||||
animation = border, 1, 5.39, easeOutQuint
|
||||
animation = windows, 1, 4.79, easeOutQuint
|
||||
animation = windowsIn, 1, 1.94, almostLinear, popin 55%
|
||||
animation = windowsOut, 1, 1.49, linear, popin 82%
|
||||
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 = workspacesIn, 1, 1.01, almostLinear, slidefade
|
||||
animation = workspacesOut, 1, 1.94, almostLinear, fade
|
||||
animation = zoomFactor, 1, 7, quick
|
||||
animation = specialWorkspaceIn, 1, 3, easeInOutCubic, slidevertfade -50%
|
||||
animation = specialWorkspaceOut, 1, 3, easeInOutCubic, slidevertfade -50%
|
||||
}
|
||||
|
||||
# specific animations for programs
|
||||
layerrule = animation popin 88%, rofi
|
||||
layerrule = animation slide top, waybar
|
||||
layerrule = noanim, notifications
|
||||
|
||||
# Ref https://wiki.hypr.land/Configuring/Workspace-Rules/
|
||||
# "Smart gaps" / "No gaps when only"
|
||||
# uncomment all if you wish to use that.
|
||||
# workspace = w[tv1], gapsout:0, gapsin:0
|
||||
# workspace = f[1], gapsout:0, gapsin:0
|
||||
# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
|
||||
# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
|
||||
# windowrule = bordersize 0, floating:0, onworkspace:f[1]
|
||||
# windowrule = rounding 0, floating:0, onworkspace:f[1]
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more
|
||||
dwindle {
|
||||
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
preserve_split = true # You probably want this
|
||||
}
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Master-Layout/ for more
|
||||
master {
|
||||
new_status = master
|
||||
}
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#misc
|
||||
misc {
|
||||
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
|
||||
|
||||
new_window_takes_over_fullscreen = 1
|
||||
}
|
||||
|
||||
|
||||
#############
|
||||
### INPUT ###
|
||||
#############
|
||||
|
||||
# https://wiki.hypr.land/Configuring/Variables/#input
|
||||
input {
|
||||
kb_layout = us
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options =
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
|
||||
touchpad {
|
||||
natural_scroll = false
|
||||
}
|
||||
}
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Gestures
|
||||
# gesture = 3, horizontal, workspace
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hypr.land/Configuring/Keywords/#per-device-input-configs for more
|
||||
device {
|
||||
name = epic-mouse-v1
|
||||
sensitivity = -0.5
|
||||
}
|
||||
|
||||
|
||||
###################
|
||||
### KEYBINDINGS ###
|
||||
###################
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Keywords/
|
||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
||||
|
||||
# Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more
|
||||
bind = , Print, exec, grim -g "$(slurp)" - | wl-copy && notify-send "📸 Screenshot" "Region copied to clipboard"
|
||||
bind = $mainMod, Print, exec, bash -c 'file=~/pictures/$(date +"%Y-%m-%d_%H-%M-%S").png; if grim -g "$(slurp)" "$file"; then notify-send "📸 Screenshot" "Saved: $file"; else notify-send "❌ Screenshot Failed" "Could not save screenshot"; fi'
|
||||
bind = $mainMod, Return, exec, $terminal
|
||||
# bind = $mainMod, M, exit,
|
||||
bind = $mainMod, E, exec, $fileManager
|
||||
bind = $mainMod, T, togglefloating, # float window
|
||||
bind = $mainMod, D, exec, $menu
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, J, togglesplit, # dwindle
|
||||
|
||||
bind = $mainMod SHIFT, Q, killactive,
|
||||
bind = $mainMod SHIFT, P, exec, $powerMenu
|
||||
bind = $mainMod SHIFT, X, exec, $settingsMenu
|
||||
bind = $mainMod SHIFT, C, exec, $configMenu
|
||||
bind = $mainMod SHIFT, H, exec, $helpMenu
|
||||
|
||||
|
||||
# overlay workspace (scratchpad)
|
||||
bind = $mainMod, S, togglespecialworkspace, magic
|
||||
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, left, movefocus, l
|
||||
bind = $mainMod, right, movefocus, r
|
||||
bind = $mainMod, up, movefocus, u
|
||||
bind = $mainMod, down, movefocus, d
|
||||
bind = $mainMod, h, movefocus, l
|
||||
bind = $mainMod, l, movefocus, r
|
||||
bind = $mainMod, j, movefocus, u
|
||||
bind = $mainMod, k, movefocus, d
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
bind = $mainMod, 2, workspace, 2
|
||||
bind = $mainMod, 3, workspace, 3
|
||||
bind = $mainMod, 4, workspace, 4
|
||||
bind = $mainMod, 5, workspace, 5
|
||||
bind = $mainMod, 6, workspace, 6
|
||||
bind = $mainMod, 7, workspace, 7
|
||||
bind = $mainMod, 8, workspace, 8
|
||||
bind = $mainMod, 9, workspace, 9
|
||||
bind = $mainMod, 0, workspace, 10
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3
|
||||
bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4
|
||||
bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5
|
||||
bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6
|
||||
bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7
|
||||
bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8
|
||||
bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow # left click
|
||||
bindm = $mainMod, mouse:273, resizewindow # right click
|
||||
|
||||
# Laptop multimedia keys for volume and LCD brightness
|
||||
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @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, python ~/00/framework_arch_tools/brightness.py +
|
||||
bindel = ,XF86MonBrightnessDown, exec, python ~/00/framework_arch_tools/brightness.py -
|
||||
|
||||
# Requires playerctl
|
||||
bindl = , XF86AudioNext, exec, playerctl next
|
||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
# resize
|
||||
binde = SUPER ALT, right, resizeactive, 10 0
|
||||
binde = SUPER ALT, left, resizeactive, -10 0
|
||||
binde = SUPER ALT, up, resizeactive, 0 -10
|
||||
binde = SUPER ALT, down, resizeactive, 0 10
|
||||
|
||||
# reorder
|
||||
bind = SUPER SHIFT, left, movewindow, l
|
||||
bind = SUPER SHIFT, right, movewindow, r
|
||||
bind = SUPER SHIFT, up, movewindow, u
|
||||
bind = SUPER SHIFT, down, movewindow, d
|
||||
|
||||
##############################
|
||||
### WINDOWS AND WORKSPACES ###
|
||||
##############################
|
||||
|
||||
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
|
||||
# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
|
||||
|
||||
# Example windowrule
|
||||
# windowrule = float,class:^(kitty)$,title:^(kitty)$
|
||||
|
||||
# Ignore maximize requests from apps. You'll probably like this.
|
||||
windowrule = suppressevent maximize, class:.*
|
||||
|
||||
# Fix some dragging issues with XWayland
|
||||
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||
|
||||
windowrulev2 = stayfocused, class:^(Rofi)$
|
||||
windowrulev2 = minsize 1 1, class:^(Rofi)$
|
||||
|
||||
debug {
|
||||
disable_logs = true # if need logs, enable this
|
||||
}
|
||||
121
hyprland/hypr/hyprlock.conf
Normal file
121
hyprland/hypr/hyprlock.conf
Normal file
@@ -0,0 +1,121 @@
|
||||
# BACKGROUND
|
||||
background {
|
||||
monitor =
|
||||
path = ~/pictures/bgs/lockscreen/neco2.png
|
||||
blur_passes = 1
|
||||
blur_size = 3
|
||||
noise = 0.075
|
||||
contrast = 1.0
|
||||
brightness = 0.25
|
||||
vibrancy = 0.1
|
||||
vibrancy_darkness = 0.0
|
||||
}
|
||||
|
||||
# GENERAL
|
||||
general {
|
||||
}
|
||||
animations {
|
||||
enabled = true
|
||||
animation = fadeIn, 1, 5, linear
|
||||
animation = fadeOut, 1, 7, linear
|
||||
}
|
||||
|
||||
# small box background
|
||||
shape {
|
||||
position = 0, 30
|
||||
monitor =
|
||||
size = 380, 400
|
||||
color = rgba(44, 39, 61, 0.5)
|
||||
rounding = 8
|
||||
border_size = 2
|
||||
border_color = rgba(243, 226, 169, 0.60) rgba(213, 174, 214, 0.80) 45deg
|
||||
rotate = 0
|
||||
xray = false
|
||||
|
||||
halign = center
|
||||
valign = center
|
||||
}
|
||||
# border for small box
|
||||
shape {
|
||||
position = 0, 120
|
||||
monitor =
|
||||
size = 330, 0
|
||||
border_size = 1
|
||||
rounding = 1
|
||||
border_color = rgba(213, 174, 214, 0.80) rgba(243, 226, 169, 0.80) 145deg
|
||||
}
|
||||
|
||||
# date
|
||||
label {
|
||||
position = 0, 172
|
||||
monitor =
|
||||
text = cmd[update:1000] echo "$(date +"%m/%d - %H:%M:%S")"
|
||||
color = rgb(219, 218, 215)
|
||||
font_size = 28
|
||||
font_family = Octal
|
||||
halign = center
|
||||
valign = center
|
||||
shadow_passes = 1
|
||||
shadow_size = 5
|
||||
shadow_boost = 0.5
|
||||
}
|
||||
|
||||
# display pic
|
||||
image {
|
||||
position = 0, 45
|
||||
path = ~/pictures/profile_pics/biyo.png
|
||||
size = 100
|
||||
halign = center
|
||||
valign = center
|
||||
border_size = 0
|
||||
shadow_passes = 1
|
||||
shadow_size = 5
|
||||
shadow_boost = 0.5
|
||||
}
|
||||
shape {
|
||||
position = -1, 45
|
||||
size = 68, 68
|
||||
rounding = 100
|
||||
border_size = 16
|
||||
border_color = rgb(213, 174, 214) rgba(122, 127, 222, 0.8) 145deg
|
||||
}
|
||||
|
||||
# username
|
||||
label {
|
||||
position = 0, -45
|
||||
monitor =
|
||||
text = cmd[update:1000] echo "$USER@$HOSTNAME"
|
||||
color = rgb(219, 218, 215)
|
||||
font_size = 16
|
||||
font_family = Octal Medium
|
||||
halign = center
|
||||
valign = center
|
||||
shadow_passes = 1
|
||||
shadow_size = 5
|
||||
shadow_boost = 0.5
|
||||
}
|
||||
|
||||
input-field {
|
||||
position = 0, -100
|
||||
monitor =
|
||||
size = 256, 48
|
||||
outline_thickness = 2
|
||||
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
|
||||
dots_spacing = 0.5 # Scale of dots' absolute size, 0.0 - 1.0
|
||||
dots_center = true
|
||||
outer_color = rgba(243, 226, 169, 0.75) rgba(213, 174, 214, 0.85) 0deg
|
||||
inner_color = rgba(57, 51, 66, 0.8)
|
||||
font_color = rgba(243, 226, 169, 0.75)
|
||||
fail_color = rgba(192, 149, 149, 0.75)
|
||||
check_color = rgba(149, 203, 173, 0.75)
|
||||
capslock_color = rgba(149, 182, 203, 0.5)
|
||||
fade_on_empty = false
|
||||
font_family = Noto Sans
|
||||
placeholder_text = ...... #text for input password
|
||||
hide_input = false
|
||||
halign = center
|
||||
valign = center
|
||||
shadow_passes = 1
|
||||
shadow_size = 5
|
||||
shadow_boost = 0.5
|
||||
}
|
||||
4
hyprland/hypr/hyprpaper.conf
Normal file
4
hyprland/hypr/hyprpaper.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
preload = ~/pictures/bgs/redjuice-alt-2.png
|
||||
preload = ~/pictures/bgs/wide-neco-1.png
|
||||
wallpaper = eDP-1,~/pictures/bgs/redjuice-alt-2.png
|
||||
wallpaper = DP-3,~/pictures/bgs/wide-neco-1.png
|
||||
48
hyprland/hypr/reload-monitors.sh
Executable file
48
hyprland/hypr/reload-monitors.sh
Executable file
@@ -0,0 +1,48 @@
|
||||
#!/bin/bash
|
||||
move_all_windows_to_workspace1() {
|
||||
# Get window count for feedback
|
||||
window_count=$(hyprctl clients -j | jq '. | length')
|
||||
# echo "Found $window_count windows to move"
|
||||
|
||||
# Move all windows using xargs
|
||||
hyprctl clients -j | jq -r '.[].address' | xargs -I {} hyprctl dispatch movetoworkspacesilent "1,address:{}"
|
||||
|
||||
# Switch to workspace 1 to make it active
|
||||
hyprctl dispatch workspace 1
|
||||
}
|
||||
home_dock=$(hyprctl monitors | grep -E "(DP-3|eDP-1)" | wc -l)
|
||||
|
||||
workspace_file="/tmp/hyprland-workspaces.conf"
|
||||
|
||||
echo "" > $workspace_file
|
||||
|
||||
if [[ $home_dock == 2 ]]; then
|
||||
move_all_windows_to_workspace1
|
||||
echo "workspace = 1,monitor:DP-3,default:true,persistent:true" >> $workspace_file
|
||||
echo "workspace = 2,monitor:DP-3,persistent:true" >> $workspace_file
|
||||
echo "workspace = 3,monitor:DP-3,persistent:true" >> $workspace_file
|
||||
echo "workspace = 4,monitor:DP-3,persistent:true" >> $workspace_file
|
||||
echo "workspace = 5,monitor:DP-3,persistent:true" >> $workspace_file
|
||||
|
||||
echo "workspace = 6,monitor:eDP-1,default:true,persistent:true" >> $workspace_file
|
||||
echo "workspace = 7,monitor:eDP-1,persistent:true" >> $workspace_file
|
||||
echo "workspace = 8,monitor:eDP-1,persistent:true" >> $workspace_file
|
||||
echo "workspace = 9,monitor:eDP-1,persistent:true" >> $workspace_file
|
||||
echo "workspace = 10,monitor:eDP-1,persistent:true" >> $workspace_file
|
||||
notify-send "Monitor Reload" "Detected Home Dock Settings"
|
||||
else
|
||||
move_all_windows_to_workspace1
|
||||
# default
|
||||
for i in {1..8}; do
|
||||
echo "workspace = $i,monitor:auto,persistent:true" >> $workspace_file
|
||||
done
|
||||
notify-send "Monitor Reload" "Detected Default Settings"
|
||||
fi
|
||||
|
||||
hyprctl reload
|
||||
|
||||
if pidof waybar >/dev/null; then
|
||||
killall waybar && waybar & disown
|
||||
else
|
||||
waybar & disown
|
||||
fi
|
||||
16
hyprland/hypr/run-hyprlock.sh
Executable file
16
hyprland/hypr/run-hyprlock.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
post_unlock() {
|
||||
local image_dir="$HOME/pictures/bgs/lockscreen"
|
||||
local current_image=$(grep "path =" ~/.config/hypr/hyprlock.conf | cut -d'=' -f2 | tr -d ' ' | head -1)
|
||||
local new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|")
|
||||
while true; do
|
||||
if [[ "$new_image" != "$current_image" ]]; then
|
||||
sed -i '0,/path =/{s|path =.*|path = '"$new_image"'|}' ~/.config/hypr/hyprlock.conf
|
||||
break
|
||||
fi
|
||||
new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|")
|
||||
done
|
||||
}
|
||||
|
||||
post_unlock
|
||||
hyprlock
|
||||
41
hyprland/hyprland_setup_manual
Normal file
41
hyprland/hyprland_setup_manual
Normal file
@@ -0,0 +1,41 @@
|
||||
# Hyprland notes
|
||||
|
||||
main config: ~/.config/hypr/hyprland.conf
|
||||
|
||||
* mako (toasts)
|
||||
- config: ~/.config/mako/config
|
||||
* hyprpaper (wallpaper, used in hyprland config)
|
||||
* hypridle (auto lock watcher + screen off timer)
|
||||
- config: ~/.config/hypr/hypridle.conf
|
||||
* hyprlock (lock on laptop lid close)
|
||||
- config: ~/.config/hypr/hyprlock.conf
|
||||
* waybar
|
||||
- configs: ~/.config/waybar/config.jsonc + style.css
|
||||
|
||||
* ability to use clipboard:
|
||||
- sudo pacman -S wl-clipboard
|
||||
|
||||
* hyprmon (monitor manager) (https://github.com/erans/hyprmon/)
|
||||
- yay -S hyprmon-bin
|
||||
|
||||
* sudo pacman -S xdg-desktop-portal-hyprland xdg-desktop-portal-gtk
|
||||
- this helps with obs having a screen capture source
|
||||
- this also helps with general screen capturing on most apps
|
||||
|
||||
* sudo pacman -S obs-studio
|
||||
* sudo pacman -S mpv (lightweight video player/image viewer)
|
||||
|
||||
---
|
||||
## Non config settings
|
||||
|
||||
Thunar custom action Open Terminal Here:
|
||||
- command: ghostty -e bash -c "cd %f && exec bash" & disown
|
||||
Thunar default image viewer:
|
||||
- mpv with custom command: mpv --image-display-duration=inf
|
||||
---
|
||||
master settings:
|
||||
|
||||
## Fonts
|
||||
- Geist (sans) (https://github.com/vercel/geist-font/releases/tag/1.5.1)
|
||||
- Geist (mono) (https://github.com/vercel/geist-font/releases/tag/1.5.1)
|
||||
- Octal (self-bought)
|
||||
38
hyprland/mako/config
Normal file
38
hyprland/mako/config
Normal file
@@ -0,0 +1,38 @@
|
||||
border-size=1
|
||||
border-radius=8
|
||||
font=Geist 10
|
||||
max-visible=3
|
||||
|
||||
width=330
|
||||
padding=8
|
||||
margin=14,15,0,0
|
||||
anchor=top-right
|
||||
|
||||
default-timeout=5000
|
||||
ignore-timeout=0
|
||||
|
||||
icons=1
|
||||
max-icon-size=48
|
||||
icon-path=/usr/share/icons/Adwaita
|
||||
|
||||
markup=1
|
||||
actions=1
|
||||
format=<b>%s</b>\n%b
|
||||
|
||||
background-color=#3D344580
|
||||
|
||||
[urgency=low]
|
||||
default-timeout=3000
|
||||
border-color=#6c7086
|
||||
text-color=#B1B4C7
|
||||
|
||||
[urgency=normal]
|
||||
border-color=#e1b4e2
|
||||
text-color=#E6D4E6
|
||||
|
||||
[urgency=critical]
|
||||
border-color=#f38ba8
|
||||
background-color=#f38ba81a
|
||||
text-color=#f38ba8
|
||||
default-timeout=0
|
||||
|
||||
39
hyprland/manual-updaters/update-discord.sh
Executable file
39
hyprland/manual-updaters/update-discord.sh
Executable file
@@ -0,0 +1,39 @@
|
||||
#!/bin/bash
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <string_to_check>"
|
||||
echo "Example: $0 discord-0.0.20.tar.gz"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
func_validate_filename() {
|
||||
# Convert to lowercase for case-insensitive matching
|
||||
local lower_input=$(echo "$1" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
# Check if both "discord" and ".deb" are present
|
||||
if [[ "$lower_input" == *"discord"* ]] && [[ "$lower_input" == *".tar.gz"* ]]; then
|
||||
echo "✓ Updated Discord with file: '$1'"
|
||||
return 0
|
||||
else
|
||||
echo "✗ No match: '$1' does not contain both 'discord' and '.tar.gz'"
|
||||
|
||||
# Provide specific feedback
|
||||
if [[ "$lower_input" != *"discord"* ]]; then
|
||||
echo " - Missing 'discord' ✗"
|
||||
fi
|
||||
|
||||
if [[ "$lower_input" != *".deb"* ]]; then
|
||||
echo " - Missing '.deb' ✗"
|
||||
fi
|
||||
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
if func_validate_filename "$1"; then
|
||||
sudo tar -xzf "$1"
|
||||
sudo rm -rf /opt/discord
|
||||
sudo mv Discord /opt/discord
|
||||
sudo ln -sf /opt/discord/Discord /usr/bin/discord
|
||||
fi
|
||||
|
||||
#TODO check for .desktop file and create if not exists
|
||||
154
hyprland/rofi/app-manager/app-manager-wide.rasi
Normal file
154
hyprland/rofi/app-manager/app-manager-wide.rasi
Normal file
@@ -0,0 +1,154 @@
|
||||
configuration {
|
||||
hover-select: true;
|
||||
me-select-entry: "MousePrimary";
|
||||
me-accept-entry: "!MousePrimary";
|
||||
font: "Geist 12";
|
||||
show-icons: true;
|
||||
icon-theme: "Papirus";
|
||||
display-drun: " ";
|
||||
}
|
||||
|
||||
@theme "~/.config/rofi/theme.rasi"
|
||||
|
||||
// Main //
|
||||
window {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
transparency: "real";
|
||||
fullscreen: false;
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
padding: 0em;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
orientation: horizontal;
|
||||
children: [ "imageBoxOverlay" , "listbox", "rightTab" ];
|
||||
background-color: @base-200-opa;
|
||||
margin: 24% 27.5%;
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
border-radius: 1em;
|
||||
}
|
||||
|
||||
rightTab {
|
||||
background-color: transparent;
|
||||
background-image: linear-gradient(135deg,#B37ADE26,#d5aed6d9);
|
||||
expand: false;
|
||||
width: 3.5em;
|
||||
}
|
||||
|
||||
imageBoxOverlay {
|
||||
children: ["imageBox"];
|
||||
background-color: rgba(0,0,0,0.9);
|
||||
margin: 1.4em 0.8em 1.4em 1.4em;
|
||||
border-radius: 1em;
|
||||
padding: 0.6em;
|
||||
background-image: linear-gradient(135deg,#B37ADE,#f3e2a9,#DE7AB9,#7A7FDE);
|
||||
}
|
||||
imageBox {
|
||||
enabled: true;
|
||||
background-image: url("~/.config/rofi/images/neco/25.jpg", width);
|
||||
border-radius: 1em;
|
||||
}
|
||||
// Lists //
|
||||
listbox {
|
||||
spacing: 0em;
|
||||
padding: 1.4em 0.8em 1.4em 0em;
|
||||
children: [ "inputbar" , "listview" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
// Inputs //
|
||||
inputbar {
|
||||
enabled: true;
|
||||
margin: 0.2em 0.8em 0.8em 0.8em;
|
||||
children: [ "prompt", "entry" ];
|
||||
background-color: transparent;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
prompt {
|
||||
font: "Geist 14";
|
||||
text-color: #E5C38F;
|
||||
background-color: transparent;
|
||||
padding: 0.8em 0.5em 0em 0.5em;
|
||||
}
|
||||
entry {
|
||||
font: "Fira Code Retina 11";
|
||||
text-color: #f5e0dcff;
|
||||
background-color: #1E1B21;
|
||||
background-image: linear-gradient(135deg,#2E2A33,#1E1B21);
|
||||
border-radius: 0.5em;
|
||||
border-color: @secondary;
|
||||
placeholder: "Search...";
|
||||
placeholder-color: #BF9FD875;
|
||||
border: 1px;
|
||||
padding: 0.7em 0.9em 0.7em 0.7em;
|
||||
enabled: true;
|
||||
}
|
||||
listview {
|
||||
enabled: true;
|
||||
spacing: 0.6em;
|
||||
padding: 0em 1em;
|
||||
columns: 1;
|
||||
lines: 8;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
expand: true;
|
||||
fixed-height: false;
|
||||
fixed-columns: true;
|
||||
cursor: "default";
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
// Elements //
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 1em;
|
||||
padding: 0.4em 0.5em 0.4em 1.5em;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
text-color: #E6D5E6;
|
||||
}
|
||||
element selected.normal {
|
||||
border-radius: 0.5em;
|
||||
background-image: linear-gradient(135deg,#d5aed666,#7866C44d,#7A7FDE66);
|
||||
text-color: @secondary;
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
}
|
||||
element-icon {
|
||||
size: 1.5em;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
element-text {
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: bold;
|
||||
}
|
||||
|
||||
// Error message //
|
||||
error-message {
|
||||
text-color: #cdd6f4ff;
|
||||
background-color: #11111be6;
|
||||
text-transform: capitalize;
|
||||
children: [ "textbox" ];
|
||||
}
|
||||
|
||||
textbox {
|
||||
text-color: inherit;
|
||||
background-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
154
hyprland/rofi/app-manager/app-manager.rasi
Normal file
154
hyprland/rofi/app-manager/app-manager.rasi
Normal file
@@ -0,0 +1,154 @@
|
||||
configuration {
|
||||
hover-select: true;
|
||||
me-select-entry: "MousePrimary";
|
||||
me-accept-entry: "!MousePrimary";
|
||||
font: "Geist 12";
|
||||
show-icons: true;
|
||||
icon-theme: "Papirus";
|
||||
display-drun: " ";
|
||||
}
|
||||
|
||||
@theme "~/.config/rofi/theme.rasi"
|
||||
|
||||
// Main //
|
||||
window {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
transparency: "real";
|
||||
fullscreen: false;
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
padding: 0em;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
orientation: horizontal;
|
||||
children: [ "imageBoxOverlay" , "listbox", "rightTab" ];
|
||||
background-color: @base-200-opa;
|
||||
margin: 25% 17%;
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
border-radius: 1em;
|
||||
}
|
||||
|
||||
rightTab {
|
||||
background-color: transparent;
|
||||
background-image: linear-gradient(135deg,#B37ADE26,#d5aed6d9);
|
||||
expand: false;
|
||||
width: 3.5em;
|
||||
}
|
||||
|
||||
imageBoxOverlay {
|
||||
children: ["imageBox"];
|
||||
background-color: rgba(0,0,0,0.9);
|
||||
margin: 1.4em 0.8em 1.4em 1.4em;
|
||||
border-radius: 1em;
|
||||
padding: 0.6em;
|
||||
background-image: linear-gradient(135deg,#B37ADE,#f3e2a9,#DE7AB9,#7A7FDE);
|
||||
}
|
||||
imageBox {
|
||||
enabled: true;
|
||||
background-image: url("~/.config/rofi/images/neco/25.jpg", width);
|
||||
border-radius: 1em;
|
||||
}
|
||||
// Lists //
|
||||
listbox {
|
||||
spacing: 0em;
|
||||
padding: 1.4em 0.8em 1.4em 0em;
|
||||
children: [ "inputbar" , "listview" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
// Inputs //
|
||||
inputbar {
|
||||
enabled: true;
|
||||
margin: 0.2em 0.8em 0.8em 0.8em;
|
||||
children: [ "prompt", "entry" ];
|
||||
background-color: transparent;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
prompt {
|
||||
font: "Geist 14";
|
||||
text-color: #E5C38F;
|
||||
background-color: transparent;
|
||||
padding: 0.8em 0.5em 0em 0.5em;
|
||||
}
|
||||
entry {
|
||||
font: "Fira Code Retina 11";
|
||||
text-color: #f5e0dcff;
|
||||
background-color: #1E1B21;
|
||||
background-image: linear-gradient(135deg,#2E2A33,#1E1B21);
|
||||
border-radius: 0.5em;
|
||||
border-color: @secondary;
|
||||
placeholder: "Search...";
|
||||
placeholder-color: #BF9FD875;
|
||||
border: 1px;
|
||||
padding: 0.7em 0.9em 0.7em 0.7em;
|
||||
enabled: true;
|
||||
}
|
||||
listview {
|
||||
enabled: true;
|
||||
spacing: 0.6em;
|
||||
padding: 0em 1em;
|
||||
columns: 1;
|
||||
lines: 8;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
expand: true;
|
||||
fixed-height: false;
|
||||
fixed-columns: true;
|
||||
cursor: "default";
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
// Elements //
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 1em;
|
||||
padding: 0.4em 0.5em 0.4em 1.5em;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
text-color: #E6D5E6;
|
||||
}
|
||||
element selected.normal {
|
||||
border-radius: 0.5em;
|
||||
background-image: linear-gradient(135deg,#d5aed666,#7866C44d,#7A7FDE66);
|
||||
text-color: @secondary;
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
}
|
||||
element-icon {
|
||||
size: 1.5em;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
element-text {
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: bold;
|
||||
}
|
||||
|
||||
// Error message //
|
||||
error-message {
|
||||
text-color: #cdd6f4ff;
|
||||
background-color: #11111be6;
|
||||
text-transform: capitalize;
|
||||
children: [ "textbox" ];
|
||||
}
|
||||
|
||||
textbox {
|
||||
text-color: inherit;
|
||||
background-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
50
hyprland/rofi/app-manager/rofi-app-manager.sh
Executable file
50
hyprland/rofi/app-manager/rofi-app-manager.sh
Executable file
@@ -0,0 +1,50 @@
|
||||
#!/bin/bash
|
||||
|
||||
get_current_monitor_width() {
|
||||
# Get cursor position from Hyprland
|
||||
local pos=$(hyprctl cursorpos 2>/dev/null | head -n 1)
|
||||
|
||||
if [ -z "$pos" ]; then
|
||||
echo "Error: Could not get cursor position from Hyprland" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Extract coordinates (hyprctl cursorpos returns: "x, y")
|
||||
local x=$(echo "$pos" | awk -F',' '{print $1}' | tr -d ' ')
|
||||
local y=$(echo "$pos" | awk -F',' '{print $2}' | tr -d ' ')
|
||||
|
||||
# Get the width of the monitor containing the cursor
|
||||
local width=$(hyprctl monitors -j | jq -r --argjson x "$x" --argjson y "$y" '
|
||||
.[] | select(
|
||||
.x <= $x and
|
||||
.y <= $y and
|
||||
(.x + .width) > $x and
|
||||
(.y + .height) > $y
|
||||
) | .width' | head -n 1)
|
||||
|
||||
echo "$width"
|
||||
}
|
||||
|
||||
post_rofi() {
|
||||
local image_dir="$HOME/.config/rofi/images/neco"
|
||||
local current_image=$(grep "background-image: url" "$THEME_FILE" | cut -d'"' -f2)
|
||||
local new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|")
|
||||
while true; do
|
||||
if [[ "$new_image" != "$current_image" ]]; then
|
||||
sed -i 's|url("[^"]*"|url("'"$new_image"'"|' "$THEME_FILE"
|
||||
break
|
||||
fi
|
||||
new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|")
|
||||
done
|
||||
}
|
||||
|
||||
width=$(get_current_monitor_width)
|
||||
if [ "$width" -gt 2256 ]; then
|
||||
#is wider than laptop monitor
|
||||
THEME_FILE=~/.config/rofi/app-manager/app-manager-wide.rasi
|
||||
else
|
||||
#laptop monitor
|
||||
THEME_FILE=~/.config/rofi/app-manager/app-manager.rasi
|
||||
fi
|
||||
rofi -show drun -theme $THEME_FILE
|
||||
post_rofi &
|
||||
129
hyprland/rofi/config-manager/config-manager.rasi
Normal file
129
hyprland/rofi/config-manager/config-manager.rasi
Normal file
@@ -0,0 +1,129 @@
|
||||
configuration {
|
||||
font: "Geist 12";
|
||||
hover-select: true;
|
||||
me-select-entry: "MousePrimary";
|
||||
me-accept-entry: "!MousePrimary";
|
||||
click-to-exit: true;
|
||||
}
|
||||
|
||||
@theme "~/.config/rofi/theme.rasi"
|
||||
|
||||
// Main //
|
||||
window {
|
||||
width: 20.3em;
|
||||
height: 13.5em;
|
||||
fullscreen: false;
|
||||
enabled: true;
|
||||
cursor: "default";
|
||||
spacing: 0em;
|
||||
opacity: 0;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
orientation: vertical;
|
||||
children: [ "message", "mainContent" ];
|
||||
border: 1px;
|
||||
border-color: @primary-opa;
|
||||
border-radius: 1em;
|
||||
background-color: transparent;
|
||||
}
|
||||
// decorative text at top
|
||||
message {
|
||||
enabled: true;
|
||||
background-color: @base-200;
|
||||
text-color: @primary;
|
||||
border: none;
|
||||
}
|
||||
textbox {
|
||||
padding: 12px 1em 12px 0px;
|
||||
font: "Octal Light 18";
|
||||
letter-spacing: 5px;
|
||||
horizontal-align: 0.0;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
mainContent {
|
||||
orientation: horizontal;
|
||||
children: [ "listview", "imageBoxOverlay" ];
|
||||
background-color: @base-200-opa;
|
||||
padding: 1em 0 1em 0;
|
||||
}
|
||||
imageBoxOverlay {
|
||||
children: ["imageBox"];
|
||||
margin: 0em 1em 0em 0em;
|
||||
border-radius: 1em;
|
||||
padding: 0.4em;
|
||||
background-image: linear-gradient(135deg,#B37ADE,#F59FD5,#7A7FDE);
|
||||
}
|
||||
imageBox {
|
||||
enabled: true;
|
||||
background-image: url("~/.config/rofi/images/sg/12.jpg", width);
|
||||
border-radius: 1em;
|
||||
}
|
||||
|
||||
// Lists //
|
||||
listview {
|
||||
enabled: true;
|
||||
spacing: 0.6em;
|
||||
padding: 0em 1em;
|
||||
columns: 1;
|
||||
lines: 3;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
expand: true;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
cursor: "default";
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
// Elements //
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 1em;
|
||||
padding: 0.4em 0.5em 0.4em 1.5em;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
text-color: #E6D5E6;
|
||||
}
|
||||
element selected.normal {
|
||||
border-radius: 0.5em;
|
||||
background-image: linear-gradient(135deg,#d5aed666,#7866C44d,#7A7FDE66);
|
||||
text-color: @secondary;
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
}
|
||||
element-icon {
|
||||
size: 1.5em;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
element-text {
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: bold;
|
||||
}
|
||||
|
||||
// Error message //
|
||||
error-message {
|
||||
text-color: #cdd6f4ff;
|
||||
background-color: #11111be6;
|
||||
text-transform: capitalize;
|
||||
children: [ "textbox" ];
|
||||
}
|
||||
|
||||
textbox {
|
||||
text-color: inherit;
|
||||
background-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
78
hyprland/rofi/config-manager/rofi-config-manager.sh
Executable file
78
hyprland/rofi/config-manager/rofi-config-manager.sh
Executable file
@@ -0,0 +1,78 @@
|
||||
#!/bin/bash
|
||||
# ln -s ~/.config/rofi/config-manager/rofi-config-manager.sh ~/.local/bin/rofi-config-manager.sh
|
||||
THEME_FILE=~/.config/rofi/config-manager/config-manager.rasi
|
||||
|
||||
post_rofi() {
|
||||
local image_dir="$HOME/.config/rofi/images/sg"
|
||||
local current_image=$(grep "background-image: url" "$THEME_FILE" | cut -d'"' -f2)
|
||||
local new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|")
|
||||
while true; do
|
||||
if [[ "$new_image" != "$current_image" ]]; then
|
||||
sed -i 's|url("[^"]*"|url("'"$new_image"'"|' "$THEME_FILE"
|
||||
break
|
||||
fi
|
||||
new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|")
|
||||
done
|
||||
}
|
||||
|
||||
NVIM=" Neovim"
|
||||
HYPRLAND=" Hyprland"
|
||||
WAYBAR=" Waybar"
|
||||
GHOSTTY=" Ghostty"
|
||||
ROFI_APP=" Rofi App"
|
||||
ROFI_SETT=" Rofi Sett"
|
||||
ROFI_CONF=" Rofi Conf"
|
||||
ROFI_POW=" Rofi Pow"
|
||||
HYPRLOCK=" Hyprlock"
|
||||
HYPRIDLE=" Hypridle"
|
||||
HYPRPAPER=" Hyprpaper"
|
||||
MAKO=" Mako"
|
||||
chosen=$(echo -e "$NVIM\n$HYPRLAND\n$WAYBAR\n$GHOSTTY\n$ROFI_APP\n$ROFI_SETT\n$ROFI_CONF\n$ROFI_POW\n$HYPRLOCK\n$HYPRIDLE\n$MAKO\n$HYPRPAPER" | rofi -mesg " Configs" -dmenu -p "Action:" -config ~/.config/rofi/config-manager/config-manager.rasi)
|
||||
|
||||
case $chosen in
|
||||
"$NVIM")
|
||||
ghostty -e nvim ~/.config/nvim/init.lua & disown
|
||||
ghostty -e nvim ~/.config/nvim/lua/settings.lua & disown
|
||||
;;
|
||||
"$HYPRLAND")
|
||||
ghostty -e nvim ~/.config/hypr/hyprland.conf & disown
|
||||
;;
|
||||
"$HYPRLOCK")
|
||||
ghostty -e nvim ~/.config/hypr/hyprlock.conf & disown
|
||||
;;
|
||||
"$HYPRIDLE")
|
||||
ghostty -e nvim ~/.config/hypr/hypridle.conf & disown
|
||||
;;
|
||||
"$WAYBAR")
|
||||
ghostty -e nvim ~/.config/waybar/config.jsonc & disown
|
||||
ghostty -e nvim ~/.config/waybar/style.css & disown
|
||||
;;
|
||||
"$GHOSTTY")
|
||||
ghostty -e nvim ~/.config/ghostty/config & disown
|
||||
ghostty -e nvim ~/.config/ghostty/themes/navarch & disown
|
||||
;;
|
||||
"$MAKO")
|
||||
ghostty -e nvim ~/.config/mako/config & disown
|
||||
;;
|
||||
"$ROFI_APP")
|
||||
ghostty -e nvim ~/.config/rofi/app-manager/app-manager.rasi & disown
|
||||
ghostty -e nvim ~/.config/rofi/app-manager/rofi-app-manager.sh & disown
|
||||
;;
|
||||
"$ROFI_SETT")
|
||||
ghostty -e nvim ~/.config/rofi/settings-manager/settings-manager.rasi & disown
|
||||
ghostty -e nvim ~/.config/rofi/settings-manager/rofi-settings-manager.sh & disown
|
||||
;;
|
||||
"$ROFI_CONF")
|
||||
ghostty -e nvim ~/.config/rofi/config-manager/config-manager.rasi & disown
|
||||
ghostty -e nvim ~/.config/rofi/config-manager/rofi-config-manager.sh & disown
|
||||
;;
|
||||
"$ROFI_POW")
|
||||
ghostty -e nvim ~/.config/rofi/power-manager/power-manager.rasi & disown
|
||||
ghostty -e nvim ~/.config/rofi/power-manager/rofi-power-manager.sh & disown
|
||||
;;
|
||||
"$HYPRPAPER")
|
||||
ghostty -e nvim ~/.config/hypr/hyprpaper.conf & disown
|
||||
;;
|
||||
esac
|
||||
|
||||
post_rofi &
|
||||
152
hyprland/rofi/help-manager/help-manager-wide.rasi
Normal file
152
hyprland/rofi/help-manager/help-manager-wide.rasi
Normal file
@@ -0,0 +1,152 @@
|
||||
configuration {
|
||||
hover-select: true;
|
||||
font: "Geist 12";
|
||||
show-icons: true;
|
||||
icon-theme: "Papirus";
|
||||
display-drun: " ";
|
||||
}
|
||||
|
||||
@theme "~/.config/rofi/theme.rasi"
|
||||
|
||||
// Main //
|
||||
window {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
transparency: "real";
|
||||
fullscreen: false;
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
padding: 0em;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
orientation: horizontal;
|
||||
children: [ "imageBoxOverlay" , "listbox", "rightTab" ];
|
||||
background-color: @base-200-opa;
|
||||
margin: 19% 22.5%;
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
border-radius: 1em;
|
||||
}
|
||||
|
||||
rightTab {
|
||||
background-color: transparent;
|
||||
background-image: linear-gradient(135deg,#B37ADE26,#d5aed6d9);
|
||||
expand: false;
|
||||
width: 3.5em;
|
||||
}
|
||||
|
||||
imageBoxOverlay {
|
||||
children: ["imageBox"];
|
||||
background-color: rgba(0,0,0,0.9);
|
||||
margin: 1.4em 0.8em 1.4em 1.4em;
|
||||
border-radius: 1em;
|
||||
padding: 0.6em;
|
||||
background-image: linear-gradient(135deg,#B37ADE,#f3e2a9,#DE7AB9,#7A7FDE);
|
||||
}
|
||||
imageBox {
|
||||
enabled: true;
|
||||
background-image: url("~/.config/rofi/images/neco/11.jpg", width);
|
||||
border-radius: 1em;
|
||||
}
|
||||
// Lists //
|
||||
listbox {
|
||||
spacing: 0em;
|
||||
padding: 1.4em 0.8em 1.4em 0em;
|
||||
children: [ "inputbar" , "listview" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
// Inputs //
|
||||
inputbar {
|
||||
enabled: true;
|
||||
margin: 0.2em 0.8em 0.8em 0.8em;
|
||||
children: [ "prompt", "entry" ];
|
||||
background-color: transparent;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
prompt {
|
||||
font: "Geist 14";
|
||||
text-color: #E5C38F;
|
||||
background-color: transparent;
|
||||
padding: 0.8em 0.5em 0em 0.5em;
|
||||
}
|
||||
entry {
|
||||
font: "Fira Code Retina 11";
|
||||
text-color: #f5e0dcff;
|
||||
background-color: #1E1B21;
|
||||
background-image: linear-gradient(135deg,#2E2A33,#1E1B21);
|
||||
border-radius: 0.5em;
|
||||
border-color: @secondary;
|
||||
placeholder: "Search...";
|
||||
placeholder-color: #BF9FD875;
|
||||
border: 1px;
|
||||
padding: 0.7em 0.9em 0.7em 0.7em;
|
||||
enabled: true;
|
||||
}
|
||||
listview {
|
||||
enabled: true;
|
||||
spacing: 0.6em;
|
||||
padding: 0em 0em;
|
||||
columns: 1;
|
||||
lines: 8;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
expand: true;
|
||||
fixed-height: false;
|
||||
fixed-columns: true;
|
||||
cursor: "default";
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
// Elements //
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 1em;
|
||||
padding: 0.4em 0.5em 0.4em 0.4em;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
text-color: #E6D5E6;
|
||||
}
|
||||
element selected.normal {
|
||||
border-radius: 0.5em;
|
||||
background-image: linear-gradient(135deg,#d5aed666,#7866C44d,#7A7FDE66);
|
||||
text-color: @secondary;
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
}
|
||||
element-icon {
|
||||
size: 0em;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
element-text {
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: bold;
|
||||
}
|
||||
|
||||
// Error message //
|
||||
error-message {
|
||||
text-color: #cdd6f4ff;
|
||||
background-color: #11111be6;
|
||||
text-transform: capitalize;
|
||||
children: [ "textbox" ];
|
||||
}
|
||||
|
||||
textbox {
|
||||
text-color: inherit;
|
||||
background-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
152
hyprland/rofi/help-manager/help-manager.rasi
Normal file
152
hyprland/rofi/help-manager/help-manager.rasi
Normal file
@@ -0,0 +1,152 @@
|
||||
configuration {
|
||||
hover-select: true;
|
||||
font: "Geist 12";
|
||||
show-icons: true;
|
||||
icon-theme: "Papirus";
|
||||
display-drun: " ";
|
||||
}
|
||||
|
||||
@theme "~/.config/rofi/theme.rasi"
|
||||
|
||||
// Main //
|
||||
window {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
transparency: "real";
|
||||
fullscreen: false;
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
padding: 0em;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
orientation: horizontal;
|
||||
children: [ "imageBoxOverlay" , "listbox", "rightTab" ];
|
||||
background-color: @base-200-opa;
|
||||
margin: 21.2% 8%;
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
border-radius: 1em;
|
||||
}
|
||||
|
||||
rightTab {
|
||||
background-color: transparent;
|
||||
background-image: linear-gradient(135deg,#B37ADE26,#d5aed6d9);
|
||||
expand: false;
|
||||
width: 3.5em;
|
||||
}
|
||||
|
||||
imageBoxOverlay {
|
||||
children: ["imageBox"];
|
||||
background-color: rgba(0,0,0,0.9);
|
||||
margin: 1.4em 0.8em 1.4em 1.4em;
|
||||
border-radius: 1em;
|
||||
padding: 0.6em;
|
||||
background-image: linear-gradient(135deg,#B37ADE,#f3e2a9,#DE7AB9,#7A7FDE);
|
||||
}
|
||||
imageBox {
|
||||
enabled: true;
|
||||
background-image: url("~/.config/rofi/images/neco/3.jpg", width);
|
||||
border-radius: 1em;
|
||||
}
|
||||
// Lists //
|
||||
listbox {
|
||||
spacing: 0em;
|
||||
padding: 1.4em 0.8em 1.4em 0em;
|
||||
children: [ "inputbar" , "listview" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
// Inputs //
|
||||
inputbar {
|
||||
enabled: true;
|
||||
margin: 0.2em 0.8em 0.8em 0.8em;
|
||||
children: [ "prompt", "entry" ];
|
||||
background-color: transparent;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
prompt {
|
||||
font: "Geist 14";
|
||||
text-color: #E5C38F;
|
||||
background-color: transparent;
|
||||
padding: 0.8em 0.5em 0em 0.5em;
|
||||
}
|
||||
entry {
|
||||
font: "Fira Code Retina 11";
|
||||
text-color: #f5e0dcff;
|
||||
background-color: #1E1B21;
|
||||
background-image: linear-gradient(135deg,#2E2A33,#1E1B21);
|
||||
border-radius: 0.5em;
|
||||
border-color: @secondary;
|
||||
placeholder: "Search...";
|
||||
placeholder-color: #BF9FD875;
|
||||
border: 1px;
|
||||
padding: 0.7em 0.9em 0.7em 0.7em;
|
||||
enabled: true;
|
||||
}
|
||||
listview {
|
||||
enabled: true;
|
||||
spacing: 0.6em;
|
||||
padding: 0em 0em;
|
||||
columns: 1;
|
||||
lines: 8;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
expand: true;
|
||||
fixed-height: false;
|
||||
fixed-columns: true;
|
||||
cursor: "default";
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
|
||||
// Elements //
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 1em;
|
||||
padding: 0.4em 0.5em 0.4em 0.4em;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
text-color: #E6D5E6;
|
||||
}
|
||||
element selected.normal {
|
||||
border-radius: 0.5em;
|
||||
background-image: linear-gradient(135deg,#d5aed666,#7866C44d,#7A7FDE66);
|
||||
text-color: @secondary;
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
}
|
||||
element-icon {
|
||||
size: 0em;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
element-text {
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: bold;
|
||||
}
|
||||
|
||||
// Error message //
|
||||
error-message {
|
||||
text-color: #cdd6f4ff;
|
||||
background-color: #11111be6;
|
||||
text-transform: capitalize;
|
||||
children: [ "textbox" ];
|
||||
}
|
||||
|
||||
textbox {
|
||||
text-color: inherit;
|
||||
background-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
13
hyprland/rofi/help-manager/neovim-keybinds.txt
Normal file
13
hyprland/rofi/help-manager/neovim-keybinds.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
Ldr + l → Refresh LSP
|
||||
Ldr + s → Search Replace Current
|
||||
Ldr + S → Search Replace Global
|
||||
Ldr + cc → Comment/Uncomment
|
||||
Ldr + x → Navigate/Show Errors/Warnings
|
||||
Ctrl + f → Find Search File
|
||||
Ldr + fg → Find Live Grep Search
|
||||
Ldr + ca → Show Code Actions
|
||||
K → Peek Signature
|
||||
gd → Go To Definition
|
||||
gr → Find References
|
||||
Ctrl + l → Clear Highlights
|
||||
Alt + Arrows → Navigate/Switch Panels
|
||||
67
hyprland/rofi/help-manager/rofi-help-manager.sh
Executable file
67
hyprland/rofi/help-manager/rofi-help-manager.sh
Executable file
@@ -0,0 +1,67 @@
|
||||
#!/bin/bash
|
||||
get_current_monitor_width() {
|
||||
# Get cursor position from Hyprland
|
||||
local pos=$(hyprctl cursorpos 2>/dev/null | head -n 1)
|
||||
|
||||
if [ -z "$pos" ]; then
|
||||
echo "Error: Could not get cursor position from Hyprland" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Extract coordinates (hyprctl cursorpos returns: "x, y")
|
||||
local x=$(echo "$pos" | awk -F',' '{print $1}' | tr -d ' ')
|
||||
local y=$(echo "$pos" | awk -F',' '{print $2}' | tr -d ' ')
|
||||
|
||||
# Get the width of the monitor containing the cursor
|
||||
local width=$(hyprctl monitors -j | jq -r --argjson x "$x" --argjson y "$y" '
|
||||
.[] | select(
|
||||
.x <= $x and
|
||||
.y <= $y and
|
||||
(.x + .width) > $x and
|
||||
(.y + .height) > $y
|
||||
) | .width' | head -n 1)
|
||||
|
||||
echo "$width"
|
||||
}
|
||||
|
||||
post_rofi() {
|
||||
local image_dir="$HOME/.config/rofi/images/neco"
|
||||
local current_image=$(grep "background-image: url" "$THEME_FILE" | cut -d'"' -f2)
|
||||
local new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|")
|
||||
while true; do
|
||||
if [[ "$new_image" != "$current_image" ]]; then
|
||||
sed -i 's|url("[^"]*"|url("'"$new_image"'"|' "$THEME_FILE"
|
||||
break
|
||||
fi
|
||||
new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|")
|
||||
done
|
||||
}
|
||||
|
||||
width=$(get_current_monitor_width)
|
||||
if [ "$width" -gt 2256 ]; then
|
||||
echo "showing wide"
|
||||
#is wider than laptop monitor
|
||||
THEME_FILE=~/.config/rofi/help-manager/help-manager-wide.rasi
|
||||
else
|
||||
#laptop monitor
|
||||
THEME_FILE=~/.config/rofi/help-manager/help-manager.rasi
|
||||
fi
|
||||
|
||||
|
||||
SYSTEM=" System"
|
||||
NVIM=" Neovim"
|
||||
chosen=$(echo -e "$SYSTEM\n$NVIM" | rofi -mesg " Keybinds" -dmenu -p "Action:" -config ~/.config/rofi/config-manager/config-manager.rasi)
|
||||
|
||||
case $chosen in
|
||||
"$NVIM")
|
||||
cat ~/.config/rofi/help-manager/neovim-keybinds.txt | rofi -mesg " Neovim Binds" -dmenu -i -p "" -config $THEME_FILE \
|
||||
-font "Geist Mono 14" \
|
||||
-kb-accept-entry ""
|
||||
;;
|
||||
"$SYSTEM")
|
||||
cat ~/.config/rofi/help-manager/system-keybinds.txt | rofi -mesg " System Binds" -dmenu -i -p "" -config $THEME_FILE \
|
||||
-font "Geist Mono 14" \
|
||||
-kb-accept-entry ""
|
||||
;;
|
||||
esac
|
||||
post_rofi &
|
||||
11
hyprland/rofi/help-manager/system-keybinds.txt
Normal file
11
hyprland/rofi/help-manager/system-keybinds.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
Super + Return → Terminal
|
||||
Super + B → Browser
|
||||
Super + Shift + q → Quit Window
|
||||
Super + Shift + c → Configs Launcher
|
||||
Super + Shift + x → Settings Launcher
|
||||
Super + Shift + p → Power/System Launcher
|
||||
Super + d → App/Program Launcher
|
||||
Super + t → Toggle Floating Window
|
||||
Super + Arrows → Navigate Windows
|
||||
Super + Shft + Arrows → Move Windows
|
||||
Super + s → Toggle Scratchpad/Special
|
||||
116
hyprland/rofi/power-manager/power-manager.rasi
Normal file
116
hyprland/rofi/power-manager/power-manager.rasi
Normal file
@@ -0,0 +1,116 @@
|
||||
configuration {
|
||||
hover-select: true;
|
||||
me-select-entry: "MousePrimary";
|
||||
me-accept-entry: "!MousePrimary";
|
||||
click-to-exit: true;
|
||||
}
|
||||
|
||||
@theme "~/.config/rofi/theme.rasi"
|
||||
// Main //
|
||||
window {
|
||||
font: "Geist 12";
|
||||
width: 15em;
|
||||
height: 13.75em;
|
||||
transparency: "real";
|
||||
enabled: true;
|
||||
cursor: "default";
|
||||
spacing: 0em;
|
||||
background-color: transparent;
|
||||
border-radius: 1em;
|
||||
}
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
orientation: vertical;
|
||||
children: [ "message", "listview" ];
|
||||
background-color: @base-200-opa;
|
||||
border-radius: 1em;
|
||||
border-color: @primary-opa;
|
||||
border: 3px;
|
||||
}
|
||||
|
||||
// decorative text at top
|
||||
message {
|
||||
enabled: true;
|
||||
background-color: @base-200;
|
||||
text-color: @primary;
|
||||
border: none;
|
||||
}
|
||||
textbox {
|
||||
padding: 12px 1em 12px 0px;
|
||||
font: "Octal Light 20";
|
||||
horizontal-align: 0.0;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
|
||||
// Lists //
|
||||
listview {
|
||||
enabled: true;
|
||||
spacing: 0.6em;
|
||||
padding: 1em;
|
||||
columns: 1;
|
||||
lines: 3;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
expand: true;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
cursor: "default";
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
// Elements //
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 1em;
|
||||
padding: 0.4em 0.5em 0.4em 3.3em;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
element.normal.normal,
|
||||
element.alternate.normal {
|
||||
background-color: transparent;
|
||||
text-color: @neutral;
|
||||
}
|
||||
|
||||
element selected.normal {
|
||||
border-radius: 0.5em;
|
||||
// background-color: @primary-opa;
|
||||
background-image: linear-gradient(135deg,#d5aed666,#7866C44d,#7A7FDE66);
|
||||
text-color: @secondary;
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
}
|
||||
element-icon {
|
||||
size: 1.5em;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
element-text {
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: bold;
|
||||
}
|
||||
|
||||
// Error message //
|
||||
error-message {
|
||||
text-color: #cdd6f4ff;
|
||||
background-color: #11111be6;
|
||||
text-transform: capitalize;
|
||||
children: [ "textbox" ];
|
||||
}
|
||||
|
||||
textbox {
|
||||
text-color: inherit;
|
||||
background-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
23
hyprland/rofi/power-manager/rofi-power-manager.sh
Executable file
23
hyprland/rofi/power-manager/rofi-power-manager.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
# save as ~/.local/bin/rofi-power-manager.sh
|
||||
|
||||
LOCKSCREEN=" Lock Screen"
|
||||
SLEEP=" Sleep"
|
||||
REBOOT=" Reboot"
|
||||
SHUTDOWN=" Shutdown"
|
||||
chosen=$(echo -e "$SLEEP\n$REBOOT\n$SHUTDOWN\n$LOCKSCREEN" | rofi -mesg " $HOSTNAME" -dmenu -p "Action:" -config ~/.config/rofi/power-manager/power-manager.rasi)
|
||||
|
||||
case $chosen in
|
||||
"$SLEEP")
|
||||
systemctl suspend-then-hibernate
|
||||
;;
|
||||
"$LOCKSCREEN")
|
||||
pid hyprlock || ~/.config/hypr/run-hyprlock.sh
|
||||
;;
|
||||
"$REBOOT")
|
||||
systemctl reboot
|
||||
;;
|
||||
"$SHUTDOWN")
|
||||
systemctl poweroff
|
||||
;;
|
||||
esac
|
||||
87
hyprland/rofi/settings-manager/rofi-settings-manager.sh
Executable file
87
hyprland/rofi/settings-manager/rofi-settings-manager.sh
Executable file
@@ -0,0 +1,87 @@
|
||||
#!/bin/bash
|
||||
# run init setup.sh to symlink scripts
|
||||
THEME_FILE=~/.config/rofi/settings-manager/settings-manager.rasi
|
||||
get_current_monitor() {
|
||||
# Use Hyprland's native cursor position
|
||||
local pos=$(hyprctl cursorpos 2>/dev/null)
|
||||
|
||||
if [ -z "$pos" ]; then
|
||||
echo "Error: Could not get cursor position from Hyprland" >&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Strip whitespace and extract coordinates
|
||||
local x=$(echo "$pos" | cut -d',' -f1 | tr -d ' ')
|
||||
local y=$(echo "$pos" | cut -d',' -f2 | tr -d ' ')
|
||||
|
||||
hyprctl monitors -j | jq -r --arg x "$x" --arg y "$y" '
|
||||
.[] | select(
|
||||
.x <= ($x | tonumber) and
|
||||
.y <= ($y | tonumber) and
|
||||
(.x + .width) >= ($x | tonumber) and
|
||||
(.y + .height) >= ($y | tonumber)
|
||||
) | .name'
|
||||
}
|
||||
|
||||
# Store the monitor at the start
|
||||
if [ -z "$ROFI_MONITOR" ]; then
|
||||
export ROFI_MONITOR=$(get_current_monitor)
|
||||
fi
|
||||
|
||||
post_rofi() {
|
||||
local image_dir="$HOME/.config/rofi/images/sg"
|
||||
local current_image=$(grep "background-image: url" "$THEME_FILE" | cut -d'"' -f2)
|
||||
local new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|")
|
||||
while true; do
|
||||
if [[ "$new_image" != "$current_image" ]]; then
|
||||
sed -i 's|url("[^"]*"|url("'"$new_image"'"|' "$THEME_FILE"
|
||||
break
|
||||
fi
|
||||
new_image=$(find "$image_dir" -type f | sort -R | head -n 1 | sed "s|^$HOME|~|")
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
MONITOR_RELOAD=" Refresh"
|
||||
MONITOR_SETTINGS=" Settings"
|
||||
MONITOR_BACK=" Back"
|
||||
MONITOR=" Monitor"
|
||||
SOUND=" Sound"
|
||||
BLUETOOTH=" Bluetooth"
|
||||
NETWORK=" Network"
|
||||
NIGHTLIGHT=" Night Light"
|
||||
|
||||
if [[ "$1" == "monitor" ]]; then
|
||||
chosen=$(echo -e "$MONITOR_RELOAD\n$MONITOR_SETTINGS\n$MONITOR_BACK" | rofi -mesg " Monitor" -dmenu -p "Action:" -config ~/.config/rofi/settings-manager/settings-manager.rasi -monitor "$ROFI_MONITOR")
|
||||
else
|
||||
chosen=$(echo -e "$MONITOR\n$SOUND\n$BLUETOOTH\n$NETWORK\n$NIGHTLIGHT" | rofi -mesg " Settings" -dmenu -p "Action:" -config ~/.config/rofi/settings-manager/settings-manager.rasi -monitor "$ROFI_MONITOR")
|
||||
fi
|
||||
|
||||
case $chosen in
|
||||
"$MONITOR_BACK")
|
||||
bash ~/.config/rofi/settings-manager/rofi-settings-manager.sh
|
||||
;;
|
||||
"$MONITOR")
|
||||
bash ~/.config/rofi/settings-manager/rofi-settings-manager.sh "monitor"
|
||||
;;
|
||||
"$MONITOR_RELOAD")
|
||||
bash ~/.config/hypr/reload-monitors.sh
|
||||
;;
|
||||
"$MONITOR_SETTINGS")
|
||||
ghostty -e hyprmon
|
||||
;;
|
||||
"$SOUND")
|
||||
pavucontrol
|
||||
;;
|
||||
"$BLUETOOTH")
|
||||
blueman-manager
|
||||
;;
|
||||
"$NETWORK")
|
||||
ghostty -e nmtui
|
||||
;;
|
||||
"$NIGHTLIGHT")
|
||||
ghostty -e ~/.config/wlsunset/run-wlsunset.sh
|
||||
;;
|
||||
esac
|
||||
|
||||
post_rofi &
|
||||
129
hyprland/rofi/settings-manager/settings-manager.rasi
Normal file
129
hyprland/rofi/settings-manager/settings-manager.rasi
Normal file
@@ -0,0 +1,129 @@
|
||||
configuration {
|
||||
font: "Geist 12";
|
||||
hover-select: true;
|
||||
me-select-entry: "MousePrimary";
|
||||
me-accept-entry: "!MousePrimary";
|
||||
click-to-exit: true;
|
||||
}
|
||||
|
||||
@theme "~/.config/rofi/theme.rasi"
|
||||
|
||||
// Main //
|
||||
window {
|
||||
width: 26em;
|
||||
height: 15.8em;
|
||||
fullscreen: false;
|
||||
enabled: true;
|
||||
cursor: "default";
|
||||
spacing: 0em;
|
||||
opacity: 0;
|
||||
background-color: transparent;
|
||||
extend: false;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
enabled: true;
|
||||
spacing: 0em;
|
||||
orientation: vertical;
|
||||
children: [ "message", "mainContent" ];
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
border-radius: 1em;
|
||||
background-color: transparent;
|
||||
}
|
||||
// decorative text at top
|
||||
message {
|
||||
enabled: true;
|
||||
background-color: @base-200;
|
||||
text-color: @primary;
|
||||
border: none;
|
||||
}
|
||||
textbox {
|
||||
padding: 12px 1em 12px 0px;
|
||||
font: "Octal Light 18";
|
||||
horizontal-align: 0.0;
|
||||
vertical-align: 0.5;
|
||||
}
|
||||
mainContent {
|
||||
padding: 1em 0;
|
||||
orientation: horizontal;
|
||||
children: [ "listview", "imageBoxOverlay" ];
|
||||
background-color: @base-200-opa;
|
||||
}
|
||||
imageBoxOverlay {
|
||||
children: ["imageBox"];
|
||||
margin: 0em 1em 0em 0em;
|
||||
border-radius: 1em;
|
||||
padding: 0.4em;
|
||||
background-image: linear-gradient(135deg,#B575E6,#EBD488,#9084E8);
|
||||
}
|
||||
imageBox {
|
||||
enabled: true;
|
||||
background-image: url("~/.config/rofi/images/sg/15.jpg", width);
|
||||
border-radius: 1em;
|
||||
}
|
||||
|
||||
// Lists //
|
||||
listview {
|
||||
enabled: true;
|
||||
spacing: 0.6em;
|
||||
padding: 0em 1em;
|
||||
columns: 1;
|
||||
lines: 3;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
expand: true;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
cursor: "default";
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
// Elements //
|
||||
element {
|
||||
enabled: true;
|
||||
spacing: 1em;
|
||||
padding: 0.4em 0em 0.4em 2.9em;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
text-color: #E6D5E6;
|
||||
}
|
||||
element selected.normal {
|
||||
border-radius: 0.5em;
|
||||
background-image: linear-gradient(135deg,#d5aed666,#7866C44d,#7A7FDE66);
|
||||
text-color: @secondary;
|
||||
border-color: @primary-opa;
|
||||
border: 1px;
|
||||
}
|
||||
element-icon {
|
||||
size: 1.5em;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
element-text {
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.0;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
highlight: bold;
|
||||
}
|
||||
|
||||
// Error message //
|
||||
error-message {
|
||||
text-color: #cdd6f4ff;
|
||||
background-color: #11111be6;
|
||||
text-transform: capitalize;
|
||||
children: [ "textbox" ];
|
||||
}
|
||||
|
||||
textbox {
|
||||
text-color: inherit;
|
||||
background-color: inherit;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
}
|
||||
7
hyprland/rofi/setup.sh
Executable file
7
hyprland/rofi/setup.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
ln -s ~/.config/rofi/app-manager/rofi-app-manager.sh ~/.local/bin/rofi-app-manager.sh
|
||||
ln -s ~/.config/rofi/config-manager/rofi-config-manager.sh ~/.local/bin/rofi-config-manager.sh
|
||||
ln -s ~/.config/rofi/settings-manager/rofi-settings-manager.sh ~/.local/bin/rofi-settings-manager.sh
|
||||
ln -s ~/.config/rofi/power-manager/rofi-power-manager.sh ~/.local/bin/rofi-power-manager.sh
|
||||
ln -s ~/.config/rofi/help-manager/rofi-help-manager.sh ~/.local/bin/rofi-help-manager.sh
|
||||
|
||||
16
hyprland/rofi/theme.rasi
Normal file
16
hyprland/rofi/theme.rasi
Normal file
@@ -0,0 +1,16 @@
|
||||
* {
|
||||
base-300: #000000;
|
||||
|
||||
base-100: #393342;
|
||||
base-200: #211C2E;
|
||||
base-200-opa: #3D3445a6;
|
||||
neutral: #BAB6A9;
|
||||
neutral-content:#5C543E;
|
||||
primary: #d5aed6;
|
||||
primary-opa: #d5aed699;
|
||||
secondary: #f3e2a9;
|
||||
accent: #7866C4;
|
||||
|
||||
success: #a3be8c;
|
||||
error: #C97F87;
|
||||
}
|
||||
2
hyprland/setups/jp-keyboard-setup.sh
Executable file
2
hyprland/setups/jp-keyboard-setup.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
sudo pacman -S fcitx5 fcitx5-anthy fcitx5-gtk fcitx5-qt fcitx5-configtool
|
||||
57
hyprland/setups/monitor-detection-setup.sh
Executable file
57
hyprland/setups/monitor-detection-setup.sh
Executable file
@@ -0,0 +1,57 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root (use sudo)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -n "$SUDO_USER" ]]; then
|
||||
USER_HOME=$(getent passwd "$SUDO_USER" | cut -d: -f6)
|
||||
else
|
||||
USER_HOME="$HOME"
|
||||
fi
|
||||
|
||||
SOURCE_FILE="$USER_HOME/.config/hypr/reload-monitors.sh"
|
||||
TARGET_LINK="/usr/local/bin/reload-monitors.sh"
|
||||
|
||||
# Check if source file exists
|
||||
if [[ ! -f "$SOURCE_FILE" ]]; then
|
||||
echo "Error: Source file does not exist: $SOURCE_FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Check if source file is executable
|
||||
if [[ ! -x "$SOURCE_FILE" ]]; then
|
||||
echo "Warning: Source file is not executable. Making it executable..."
|
||||
chmod +x "$SOURCE_FILE"
|
||||
fi
|
||||
|
||||
# Create the symlink
|
||||
echo "Creating symlink..."
|
||||
sudo ln -sf "$SOURCE_FILE" "$TARGET_LINK"
|
||||
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo "✓ Symlink created successfully:"
|
||||
else
|
||||
echo "✗ Failed to create symlink"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
RULE_FILE="/etc/udev/rules.d/99-hypr-monitor-hotplug.rules"
|
||||
RULE_CONTENT='ACTION=="change", SUBSYSTEM=="drm", RUN+="/usr/local/bin/reload-monitors.sh"'
|
||||
|
||||
echo "$RULE_CONTENT" > "$RULE_FILE"
|
||||
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo "✓ Rule file created successfully at: $RULE_FILE"
|
||||
|
||||
# Reload udev rules
|
||||
echo "Reloading udev rules..."
|
||||
udevadm control --reload-rules
|
||||
udevadm trigger
|
||||
|
||||
echo "✓ Done! The monitor hotplug detection should now be active."
|
||||
else
|
||||
echo "✗ Failed to create rule file"
|
||||
exit 1
|
||||
fi
|
||||
28
hyprland/update.sh
Executable file
28
hyprland/update.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
cp ~/.config/rofi/theme.rasi ./rofi
|
||||
cp ~/.config/rofi/app-manager/* ./rofi/app-manager
|
||||
cp ~/.config/rofi/settings-manager/* ./rofi/settings-manager
|
||||
cp ~/.config/rofi/config-manager/* ./rofi/config-manager
|
||||
cp ~/.config/rofi/power-manager/* ./rofi/power-manager
|
||||
cp ~/.config/rofi/help-manager/* ./rofi/help-manager
|
||||
cp ~/.config/rofi/setup.sh ./rofi
|
||||
|
||||
cp ~/.config/wlsunset/run-wlsunset.sh ./wlsunset
|
||||
|
||||
cp ~/.config/hypr/* ./hypr
|
||||
|
||||
cp ~/.config/fastfetch/* ./fastfetch
|
||||
|
||||
cp -r ~/.config/waybar/* ./waybar
|
||||
|
||||
cp ~/.config/mako/* ./mako
|
||||
|
||||
cp -r ~/.config/ghostty/* ./ghostty
|
||||
|
||||
cp -r ~/.config/btop/* ./btop
|
||||
|
||||
cp -r ~/.config/gtk-3.0/* ./gtk-3.0
|
||||
|
||||
cp -r ~/.config/gtk-4.0/* ./gtk-4.0
|
||||
|
||||
10
hyprland/usr.share.applications/discord.desktop
Normal file
10
hyprland/usr.share.applications/discord.desktop
Normal file
@@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Name=Discord
|
||||
StartupWMClass=discord
|
||||
Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone.
|
||||
GenericName=Internet Messenger
|
||||
Exec=/usr/bin/discord --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime
|
||||
Icon=discord
|
||||
Type=Application
|
||||
Categories=Network;InstantMessaging;
|
||||
Path=/usr/bin
|
||||
112
hyprland/waybar/config.jsonc
Normal file
112
hyprland/waybar/config.jsonc
Normal file
@@ -0,0 +1,112 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"margin-top": 12,
|
||||
"margin-left": 15,
|
||||
"margin-right": 15,
|
||||
"spacing": 12,
|
||||
"modules-left": ["clock#date", "hyprland/workspaces", "custom/settings", "custom/configs", "custom/discord"],
|
||||
"modules-right": ["custom/keyboard", "wireplumber", "network", "custom/gpu", "cpu", "memory", "battery", "custom/power"],
|
||||
"modules-center": ["clock#time"],
|
||||
|
||||
"custom/gpu": {
|
||||
"exec": "cat /sys/class/drm/card*/device/gpu_busy_percent 2>/dev/null | head -1",
|
||||
"format-icons": ["<span color='#BCB9EB'></span>"],
|
||||
"format": "{}% {icon}",
|
||||
"interval": 8
|
||||
},
|
||||
"custom/keyboard": {
|
||||
"signal": 8,
|
||||
"format-icons": ["<span color='#BCB9EB'>⌨</span>"],
|
||||
"format": "{} {icon}",
|
||||
"exec": "~/.config/waybar/scripts/fcitx5-status.sh"
|
||||
},
|
||||
"custom/configs": {
|
||||
"format-icons": ["<span color='#BCB9EB'></span>"],
|
||||
"format": "{icon}",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "Config list",
|
||||
"on-click": "~/.local/bin/rofi-config-manager.sh"
|
||||
},
|
||||
"custom/settings": {
|
||||
"format-icons": ["<span color='#BCB9EB'></span>"],
|
||||
"format": "{icon}",
|
||||
"tooltip": true,
|
||||
"tooltip-format": "Control panel",
|
||||
"on-click": "~/.local/bin/rofi-settings-manager.sh"
|
||||
},
|
||||
"custom/discord": {
|
||||
"format-icons": ["<span color='#BCB9EB'></span>"],
|
||||
"format": "{icon}",
|
||||
"tooltip": false,
|
||||
"on-click": "discord --enable-features=UseOzonePlatform --ozone-platform=wayland"
|
||||
},
|
||||
"hyprland/workspaces": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"active": "",
|
||||
"default": "",
|
||||
"urgent": ""
|
||||
},
|
||||
"on-click": "activate"
|
||||
},
|
||||
"cpu": {
|
||||
"format-icons": ["<span color='#BCB9EB'></span>"],
|
||||
"format": "{usage}% {icon}",
|
||||
"tooltip": false
|
||||
},
|
||||
"memory": {
|
||||
"format-icons": ["<span color='#BCB9EB'></span>"],
|
||||
"format": "{}% {icon}"
|
||||
},
|
||||
"clock#date": {
|
||||
"format": "{:%m/%d}"
|
||||
},
|
||||
"clock#time": {
|
||||
"format": "{:%H:%M}"
|
||||
},
|
||||
"custom/power": {
|
||||
"format-icons": ["<span color='#C97F87'></span>"],
|
||||
"format": "{icon}",
|
||||
"tooltip": false,
|
||||
"on-click": "~/.local/bin/rofi-power-manager.sh"
|
||||
},
|
||||
|
||||
"network": {
|
||||
"max-length": 10,
|
||||
"format-wifi": "{essid} <span color='#BCB9EB'></span>",
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"on-click": "ghostty -e nmtui & disown"
|
||||
// "format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||
},
|
||||
"wireplumber": {
|
||||
"format": "{volume}% <span color='#BCB9EB'>{icon}</span>",
|
||||
"format-icons": {
|
||||
"default": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
]
|
||||
},
|
||||
"format-muted": "<span color='#BCB9EB'></span>",
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-full": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["<span color='#BCB9EB'></span>", "<span color='#BCB9EB'></span>", "<span color='#BCB9EB'></span>", "<span color='#BCB9EB'></span>", "<span color='#BCB9EB'></span>"]
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
// "format-plugged": "{capacity}% ",
|
||||
}
|
||||
}
|
||||
27
hyprland/waybar/scripts/fcitx5-monitor.sh
Executable file
27
hyprland/waybar/scripts/fcitx5-monitor.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
current_im=$(fcitx5-remote -n 2>/dev/null)
|
||||
if [[ "$current_im" == "anthy" ]]; then
|
||||
CURRENT_STATUS="JP"
|
||||
else
|
||||
CURRENT_STATUS="EN"
|
||||
fi
|
||||
|
||||
dbus-monitor --session "type='signal',interface='org.fcitx.Fcitx.InputContext1',member='CurrentIM'" 2>/dev/null | \
|
||||
while IFS= read -r line; do
|
||||
if [[ "$line" == *"member=CurrentIM"* ]]; then
|
||||
# Read the next line which contains the input method string
|
||||
read -r im_line
|
||||
if [[ "$im_line" == *"Anthy"* ]]; then
|
||||
NEW_STATUS="JP"
|
||||
else
|
||||
NEW_STATUS="EN"
|
||||
fi
|
||||
|
||||
# Only refresh if status actually changed
|
||||
if [[ "$NEW_STATUS" != "$CURRENT_STATUS" ]]; then
|
||||
sleep 0.1
|
||||
pkill -RTMIN+8 waybar
|
||||
CURRENT_STATUS="$NEW_STATUS"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
25
hyprland/waybar/scripts/fcitx5-status.sh
Executable file
25
hyprland/waybar/scripts/fcitx5-status.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# Get current fcitx5 input method
|
||||
IM=$(fcitx5-remote -n 2>/dev/null)
|
||||
|
||||
# Check if fcitx5 is running
|
||||
if [ -z "$IM" ]; then
|
||||
echo "EN"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
case "$IM" in
|
||||
"keyboard-us")
|
||||
echo "EN"
|
||||
;;
|
||||
"anthy")
|
||||
echo "JP"
|
||||
;;
|
||||
"mozc-jp")
|
||||
echo "JP"
|
||||
;;
|
||||
*)
|
||||
# Fallback - show first 2 characters of input method name
|
||||
echo "${IM:0:2}" | tr '[:lower:]' '[:upper:]'
|
||||
;;
|
||||
esac
|
||||
95
hyprland/waybar/style.css
Normal file
95
hyprland/waybar/style.css
Normal file
@@ -0,0 +1,95 @@
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: "Geist", sans-serif;
|
||||
font-size: 12px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
border-radius: 10px;
|
||||
background-color: rgba(18, 18, 36, 0.35);
|
||||
border: 1px solid rgb(213, 174, 214);
|
||||
transition-property: background-color;
|
||||
transition-duration: 0.5s;
|
||||
}
|
||||
|
||||
.modules-left {
|
||||
padding-left: 18px;
|
||||
}
|
||||
.modules-right {
|
||||
padding-right: 18px;
|
||||
}
|
||||
#clock,
|
||||
#workspaces,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#cpu,
|
||||
#custom-power,
|
||||
#custom-discord,
|
||||
#memory,
|
||||
#battery,
|
||||
#battery.charging,
|
||||
#battery.plugged {
|
||||
background: transparent;
|
||||
color: #e6d4e6;
|
||||
padding: 8px 0px;
|
||||
}
|
||||
#clock {
|
||||
color: #C9C5BB;
|
||||
}
|
||||
#clock.time {
|
||||
font-family: "Octal", monospace;
|
||||
font-weight:400;
|
||||
letter-spacing: 1px;
|
||||
font-size: 14px;
|
||||
}
|
||||
#custom-power {
|
||||
padding-right: 1px;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
background: transparent;
|
||||
color: #9EA0AD;
|
||||
padding: 0 4px;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: #f3e2a9;
|
||||
background: transparent;
|
||||
font-weight: bold;
|
||||
}
|
||||
#workspaces button.urgent {
|
||||
color: #e39696;
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
animation: battery-charging 2s steps(5) infinite;
|
||||
color: #a6e3a1; /* Green charging color */
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
animation: color-shift 8s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes color-shift {
|
||||
0% {
|
||||
color: #a6e3a1;
|
||||
}
|
||||
25% {
|
||||
color: #74c7ec;
|
||||
}
|
||||
50% {
|
||||
color: #cba6f7;
|
||||
}
|
||||
75% {
|
||||
color: #74c7ec;
|
||||
}
|
||||
100% {
|
||||
color: #a6e3a1;
|
||||
}
|
||||
}
|
||||
163
hyprland/wlsunset/run-wlsunset.sh
Executable file
163
hyprland/wlsunset/run-wlsunset.sh
Executable file
@@ -0,0 +1,163 @@
|
||||
#!/bin/bash
|
||||
if ! command -v gum &> /dev/null; then
|
||||
echo "❌ Error: 'gum' is not installed."
|
||||
echo "Install with: go install github.com/charmbracelet/gum@latest"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v wlsunset &> /dev/null; then
|
||||
echo "❌ Error: 'wlsunset' is not installed."
|
||||
echo "Install with your package manager (e.g., pacman -S wlsunset)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
LAT_LON_FILE="$HOME/.config/wlsunset/location"
|
||||
|
||||
PRIMARY="#cba6f7"
|
||||
SECONDARY="#89b4fa"
|
||||
SUCCESS="#a6e3a1"
|
||||
WARNING="#f9e2af"
|
||||
DANGER="#f38ba8"
|
||||
ACCENT="#f5c2e7"
|
||||
MUTED="#6c7086"
|
||||
|
||||
BTN_TOGGLE=" ╭─────────────────────────────╮
|
||||
│ Toggle │
|
||||
╰─────────────────────────────╯"
|
||||
BTN_FORCE=" ╭─────────────────────────────╮
|
||||
│ Force On │
|
||||
╰─────────────────────────────╯"
|
||||
BTN_CHANGE_LOC=" ╭─────────────────────────────╮
|
||||
│ Change Location │
|
||||
╰─────────────────────────────╯"
|
||||
BTN_CHANGE_STR=" ╭─────────────────────────────╮
|
||||
│ Change Strength │
|
||||
╰─────────────────────────────╯"
|
||||
BTN_EXIT=" ╭─────────────────────────────╮
|
||||
│ Exit │
|
||||
╰─────────────────────────────╯"
|
||||
|
||||
show_header() {
|
||||
TERM_WIDTH=$(tput cols)
|
||||
total_width=$((TERM_WIDTH - 2))
|
||||
# Main title box
|
||||
gum style \
|
||||
--foreground "$ACCENT" \
|
||||
--border-foreground "$ACCENT" \
|
||||
--border "rounded" \
|
||||
--width $total_width \
|
||||
--align "center" \
|
||||
--padding "2 0" \
|
||||
"🌅 NIGHT LIGHT 🌙"
|
||||
|
||||
echo ""
|
||||
|
||||
if pidof wlsunset > /dev/null; then
|
||||
status=" ACTIVE"
|
||||
foreground_color=$SUCCESS
|
||||
else
|
||||
status=" INACTIVE"
|
||||
foreground_color=$MUTED
|
||||
fi
|
||||
gum join --horizontal \
|
||||
"$(gum style --width $total_width --align "center" --foreground "$foreground_color" --padding "0 2" --margin "0 1" "$status")" \
|
||||
|
||||
echo ""
|
||||
}
|
||||
|
||||
get_status() {
|
||||
if pidof wlsunset > /dev/null; then
|
||||
echo " ACTIVE"
|
||||
else
|
||||
echo " INACTIVE"
|
||||
fi
|
||||
}
|
||||
|
||||
show_menu() {
|
||||
term_width=$(tput cols)
|
||||
button_width=33
|
||||
padding=$(( (term_width - button_width) / 2 ))
|
||||
pad_str=$(printf "%*s" $padding "")
|
||||
|
||||
# Pad each button using sed to add padding to every line
|
||||
padded_buttons=()
|
||||
for btn in "$BTN_TOGGLE" "$BTN_FORCE" "$BTN_CHANGE_LOC" "$BTN_CHANGE_STR" "$BTN_EXIT"; do
|
||||
padded_btn=$(echo "$btn" | sed "s/^/$pad_str/")
|
||||
padded_buttons+=("$padded_btn")
|
||||
done
|
||||
|
||||
choice=$(gum choose \
|
||||
--header "" \
|
||||
--cursor " " \
|
||||
--cursor.foreground "$PRIMARY" \
|
||||
--selected.foreground "$SUCCESS" \
|
||||
--item.foreground "$SECONDARY" \
|
||||
"${padded_buttons[@]}")
|
||||
|
||||
echo "$choice"
|
||||
}
|
||||
|
||||
if [ -f "$LAT_LON_FILE" ]; then
|
||||
source "$LAT_LON_FILE"
|
||||
else
|
||||
location=$(curl -s "https://ipinfo.io/loc")
|
||||
if [ ! -z "$location" ]; then
|
||||
LAT=$(echo "$location" | cut -d',' -f1)
|
||||
LON=$(echo "$location" | cut -d',' -f2)
|
||||
else
|
||||
# random default in LA
|
||||
LAT=34.0522
|
||||
LON=-118.2437
|
||||
fi
|
||||
echo -e "LAT=$LAT\nLON=$LON\nSTRENGTH=4750" > "$LAT_LON_FILE"
|
||||
fi
|
||||
|
||||
expand_terminal() {
|
||||
# launching via rofi doesnt expand terminal at start
|
||||
gum style --width 120 " " > /dev/null 2>&1 || true
|
||||
gum style --width 120 --foreground "#00000000" " "
|
||||
printf "\033[1A\033[K" # Move up and clear line
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
"init")
|
||||
# turn on
|
||||
wlsunset -l $LAT -L $LON -t $STRENGTH
|
||||
;;
|
||||
*)
|
||||
expand_terminal
|
||||
show_header
|
||||
choice=$(show_menu)
|
||||
case "$choice" in
|
||||
*"Toggle"*)
|
||||
if pidof wlsunset > /dev/null; then
|
||||
if killall wlsunset; then
|
||||
gum style --foreground "$MUTED" "Disabled night light"
|
||||
notify-send "wlsunset" " Disabled night light"
|
||||
else
|
||||
notify-send "wlsunset" " Failed to disable night light"
|
||||
fi
|
||||
else
|
||||
setsid wlsunset -l "$LAT" -L "$LON" -t $STRENGTH & disown
|
||||
gum style --foreground "$SUCCESS" "Enabled night light"
|
||||
notify-send "wlsunset" " Enabled night light"
|
||||
fi
|
||||
exit 0
|
||||
;;
|
||||
*"Force"*)
|
||||
setsid wlsunset -s 00:00 -S 23:59 -t $STRENGTH & disown
|
||||
notify-send "wlsunset" " Force enabled night light"
|
||||
exit 0
|
||||
;;
|
||||
*"Exit"*)
|
||||
clear
|
||||
gum style --foreground "$MUTED" --align "center" "👋 Goodbye!"
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo " choice not found"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user