Compare commits

..

No commits in common. "dbf5d34ada85cc5788cded05d34ed8d75d7eaaac" and "361615266c5f1b0085453cc7273978e0c1fcc1c3" have entirely different histories.

21 changed files with 55 additions and 187 deletions

7
.gitignore vendored
View file

@ -1,9 +1,2 @@
# TOML Bombadil templating directory
.dots/ .dots/
# Python cache files
**/__pycache__/ **/__pycache__/
# Program-specific cache files
nvim/lazy-lock.json
zsh/.zcompdump*

View file

@ -12,4 +12,4 @@ The dotfiles are managed with [TOML Bombadil](https://github.com/oknozor/toml-bo
* Make sure changed wallpaper is new * Make sure changed wallpaper is new
* EWW * EWW
* Create radar widget * Create radar widget
* Make separate scroll jumps for `chonk` vs `framework`? * Make separate scroll jumps for `chonk` vs `hpomen`?

View file

@ -29,17 +29,18 @@ swww-daemon = { source = "systemd/swww-daemon.service", target = ".config/system
btop = { source = "btop", target = ".config/btop", direct = true } btop = { source = "btop", target = ".config/btop", direct = true }
dunst = { source = "dunst", target = ".config/dunst", direct = true } dunst = { source = "dunst", target = ".config/dunst", direct = true }
eww = { source = "eww", target = ".config/eww" } eww = { source = "eww", target = ".config/eww", direct = true }
fastfetch = { source = "fastfetch", target = ".config/fastfetch", direct = true } fastfetch = { source = "fastfetch", target = ".config/fastfetch", direct = true }
gtk2 = { source = "gtk/gtk-2.0", target = ".config/gtk-2.0", direct = true } gtk2 = { source = "gtk/gtk-2.0", target = ".config/gtk-2.0", direct = true }
gtk3 = { source = "gtk/gtk-3.0", target = ".config/gtk-3.0", direct = true } gtk3 = { source = "gtk/gtk-3.0", target = ".config/gtk-3.0", direct = true }
git = { source = "git/config", target = ".config/git/config" } git = { source = "git/config", target = ".config/git/config", direct = true }
hypr = { source = "hypr", target = ".config/hypr" } hypr = { source = "hypr", target = ".config/hypr" }
kitty = { source = "kitty", target = ".config/kitty", direct = true } kitty = { source = "kitty", target = ".config/kitty", direct = true }
lsd = { source = "lsd", target = ".config/lsd", direct = true } lsd = { source = "lsd", target = ".config/lsd", direct = true }
nvim = { source = "nvim", target = ".config/nvim", direct = true } nvim = { source = "nvim", target = ".config/nvim", direct = true }
rofi = { source = "rofi", target = ".config/rofi", direct = true } rofi = { source = "rofi", target = ".config/rofi", direct = true }
steam = { source = "steam/steam_dev.cfg", target = ".steam/steam/steam_dev.cfg", direct = true } steam = { source = "steam/steam_dev.cfg", target = ".steam/steam/steam_dev.cfg", direct = true }
swaylock = { source = "swaylock", target = ".config/swaylock", direct = true }
uwsm = { source = "uwsm", target = ".config/uwsm" } uwsm = { source = "uwsm", target = ".config/uwsm" }
vim = { source = "vim/vimrc", target = ".config/vim/vimrc", direct = true } vim = { source = "vim/vimrc", target = ".config/vim/vimrc", direct = true }
yazi = { source = "yazi", target = ".config/yazi", direct = true } yazi = { source = "yazi", target = ".config/yazi", direct = true }
@ -48,5 +49,5 @@ zsh = { source = "zsh", target = ".config/zsh", direct = true }
[profiles.chonk] [profiles.chonk]
vars = [ "chonk.toml" ] vars = [ "chonk.toml" ]
[profiles.framework] [profiles.hpomen]
vars = [ "framework.toml" ] vars = [ "hpomen.toml" ]

View file

@ -1,4 +1,4 @@
#? Config file for btop v. 1.4.1 #? Config file for btop v. 1.2.2
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes. #* 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" #* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
@ -37,9 +37,6 @@ graph_symbol = "braille"
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". # Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_cpu = "default" 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 to use for graphs in cpu box, "default", "braille", "block" or "tty".
graph_symbol_mem = "default" graph_symbol_mem = "default"
@ -55,8 +52,8 @@ shown_boxes = "proc cpu mem net gpu0"
#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs. #* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs.
update_ms = 1500 update_ms = 1500
#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct", #* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu responsive",
#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly. #* "cpu lazy" sorts top process over time (easier to follow), "cpu responsive" updates top process directly.
proc_sorting = "cpu lazy" proc_sorting = "cpu lazy"
#* Reverse sorting order, True or False. #* Reverse sorting order, True or False.
@ -77,21 +74,12 @@ proc_per_core = False
#* Show process memory as bytes instead of percent. #* Show process memory as bytes instead of percent.
proc_mem_bytes = True 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) #* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
proc_info_smaps = False proc_info_smaps = False
#* Show proc box on left side of screen instead of right. #* Show proc box on left side of screen instead of right.
proc_left = False 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. #* 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. #* Select from a list of detected attributes from the options menu.
cpu_graph_upper = "total" cpu_graph_upper = "total"
@ -100,9 +88,6 @@ cpu_graph_upper = "total"
#* Select from a list of detected attributes from the options menu. #* Select from a list of detected attributes from the options menu.
cpu_graph_lower = "total" cpu_graph_lower = "total"
#* 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. #* Toggles if the lower CPU graph should be inverted.
cpu_invert_lower = True cpu_invert_lower = True
@ -177,9 +162,6 @@ only_physical = True
#* Read disks list from /etc/fstab. This also disables only_physical. #* Read disks list from /etc/fstab. This also disables only_physical.
use_fstab = True 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. #* Set to true to show available disk space for privileged users.
disk_free_priv = False disk_free_priv = False
@ -210,45 +192,12 @@ net_sync = False
#* Starts with the Network Interface specified here. #* Starts with the Network Interface specified here.
net_iface = "" 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 stats in top right if battery is present.
show_battery = True show_battery = True
#* Which battery to use if multiple are present. "Auto" for auto detection. #* Which battery to use if multiple are present. "Auto" for auto detection.
selected_battery = "Auto" 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". #* 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. #* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
log_level = "WARNING" 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 = ""

View file

@ -101,10 +101,6 @@ window, tooltip {
color: #00FF7F; color: #00FF7F;
} }
.hibernate {
color: #7FFF00;
}
.reboot { .reboot {
color: #FF7F00; color: #FF7F00;
} }

View file

@ -62,13 +62,8 @@
(defwidget eth [] (defwidget eth []
(network_speed :label "󰈀" :interface "enp6s0")) (network_speed :label "󰈀" :interface "enp6s0"))
(defwidget wlan [] (defwidget wlan []
(network_speed :label "" (network_speed :label "" :interface "wlo1"))
{% if host.name == "chonk" %}
:interface "wlo1"
{% else %}
:interface "wlp1s0"
{% endif %}
))
(defwidget date [] (defwidget date []
(tooltip (tooltip
@ -90,12 +85,10 @@
(box :space-evenly false :class "power" (box :space-evenly false :class "power"
(revealer :transition "slideleft" :reveal reveal_power (revealer :transition "slideleft" :reveal reveal_power
(box :space-evenly true :spacing 2 (box :space-evenly true :spacing 2
(eventbox :onclick "loginctl lock-session" :cursor "pointer" ; (eventbox :onclick "swaylock" :cursor "pointer"
(label :text "" :class "lock")) ; (label :text "" :class "lock"))
(eventbox :onclick "systemctl suspend" :cursor "pointer" (eventbox :onclick "systemctl suspend" :cursor "pointer"
(label :text "鈴" :class "sleep")) (label :text "鈴" :class "sleep"))
; (eventbox :onclick "systemctl hibernate" :cursor "pointer"
; (label :text "" :class "hibernate"))
(eventbox :onclick "reboot" :cursor "pointer" (eventbox :onclick "reboot" :cursor "pointer"
(label :text "ﰇ" :class "reboot")) (label :text "ﰇ" :class "reboot"))
(eventbox :onclick "shutdown now" :cursor "pointer" (eventbox :onclick "shutdown now" :cursor "pointer"
@ -104,6 +97,11 @@
(stack :selected {reveal_power ? 1 : 0} :transition "crossfade" :same-size true (stack :selected {reveal_power ? 1 : 0} :transition "crossfade" :same-size true
(label :text "" :class "control") (label :text "" :class "control")
(label :text "×" :class "control"))))) (label :text "×" :class "control")))))
; Unused entries from my Polybar version of this that may end up being useful later
;menu-0-2 = %{F#7FFF00}
;menu-0-2-exec = systemctl hibernate
;menu-0-3 = %{F#00A2ED}
;menu-0-3-exec = grub-reboot "$(rg -i windows /boot/grub/grub.cfg|head -n 1|cut -d "'" -f 2)" && reboot
(defvar notifications true) (defvar notifications true)
@ -117,8 +115,8 @@
(defwidget clicker [text command] (defwidget clicker [text command]
(eventbox :onclick command :cursor "pointer" :timeout "3600s" (eventbox :onclick command :cursor "pointer" :timeout "3600s"
(label :text text :class "primary"))) (label :text text :class "primary")))
;(defwidget colour_selector [] (defwidget colour_selector []
; (clicker :text "" :command "uwsm-app -- hyprpicker -a")) (clicker :text "" :command "uwsm-app -- hyprpicker -a"))
(defwidget wallpaper [] (defwidget wallpaper []
(clicker :text "󰸉" :command "~/scripts/swww_change.py")) (clicker :text "󰸉" :command "~/scripts/swww_change.py"))
@ -183,7 +181,7 @@
(systray :pack_direction "ltr" :icon-size 20) (systray :pack_direction "ltr" :icon-size 20)
(box :class "right" :orientation "h" :space-evenly false :halign "end" (box :class "right" :orientation "h" :space-evenly false :halign "end"
(weather)(sep) (weather)(sep)
; (colour_selector)(space) (colour_selector)(space)
(wallpaper)(sep) (wallpaper)(sep)
(ram)(space) (ram)(space)
(cpu)(sep) (cpu)(sep)
@ -219,7 +217,7 @@
(right_bar)) (right_bar))
(defwindow laptop (defwindow laptop
:monitor 0 :monitor "0x1502"
:geometry (geometry :x "0px" :geometry (geometry :x "0px"
:y "4px" :y "4px"
:width "1912px" :width "1912px"

View file

@ -1,8 +1,7 @@
#!/bin/env sh #!/bin/env sh
BATTERY='/sys/class/power_supply/BAT1/' FULL="$(cat /sys/class/power_supply/BAT0/charge_full)"
FULL="$(cat "${BATTERY}/charge_full")" NOW="$(cat /sys/class/power_supply/BAT0/charge_now)"
NOW="$(cat "${BATTERY}/charge_now")"
CHARGE=$((100*NOW/FULL)) CHARGE=$((100*NOW/FULL))
CHARGE_ICONS="󰂎󰁺󰁻󰁼󰁽󰁾󰁿󰂀󰂁󰂂󰁹" CHARGE_ICONS="󰂎󰁺󰁻󰁼󰁽󰁾󰁿󰂀󰂁󰂂󰁹"
@ -10,7 +9,7 @@ CHARGE_ICON_INDEX=$((CHARGE/10))
CHARGE_ICON="${CHARGE_ICONS:CHARGE_ICON_INDEX:1}" CHARGE_ICON="${CHARGE_ICONS:CHARGE_ICON_INDEX:1}"
charging() { charging() {
case "$(cat "${BATTERY}/status")" in case "$(cat /sys/class/power_supply/BAT0/status)" in
"Charging") echo "true";; "Charging") echo "true";;
*) echo "false";; *) echo "false";;
esac esac

View file

@ -1,2 +0,0 @@
[host]
name = "framework"

View file

@ -1,11 +1,7 @@
[user] [user]
name = Michael Bradley name = Michael Bradley
email = michaelmbrad@gmail.com email = michaelmbrad@gmail.com
{% if host.name == "chonk" %} signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAVoIshBPg9X4mVzqEx75qXJiVoNC9mbj0bOAMq5ZUIw
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICgufkBHFXb36n7RpzkNZviLEWiHPRoM4Ip+k2mm2x1w
{% else %}
signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPO2DlWJWyN5/KlDmCN8zvkVCVvFgz2r5AZeGTYju8Xq
{% endif %}
[init] [init]
defaultBranch = main defaultBranch = main
@ -30,9 +26,3 @@
helper = !/usr/bin/gh auth git-credential helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"] [credential "https://gist.github.com"]
helper = !/usr/bin/gh auth git-credential helper = !/usr/bin/gh auth git-credential
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true

2
hpomen.toml Normal file
View file

@ -0,0 +1,2 @@
[host]
name = "hpomen"

View file

@ -1,5 +1,4 @@
monitor = eDP-1, 2880x1920@120, 0x0, 1.5 monitor = eDP-1, 1920x1080@60, 0x0, 1
monitor = DP-3, 1920x1080@60, -1920x0, 1
decoration { decoration {
blur { blur {
@ -25,10 +24,9 @@ misc {
gestures { gestures {
workspace_swipe = true workspace_swipe = true
workspace_swipe_min_fingers = true workspace_swipe_min_fingers = true
workspace_swipe_distance = 300 workspace_swipe_distance = 100
workspace_swipe_invert = false workspace_swipe_invert = false
workspace_swipe_forever = true workspace_swipe_forever = true
workspace_swipe_cancel_ratio = 0.1
} }
workspace = 1, monitor:eDP-1, default:true workspace = 1, monitor:eDP-1, default:true

View file

@ -1,34 +0,0 @@
general {
lock_cmd = pidof hyprlock || hyprlock
before_sleep_cmd = loginctl lock-session
after_sleep_cmd = hyprctl dispatch dmps on
inhibit_sleep = 0
}
listener {
timeout = 120
on-timeout = brightnessctl -sd amdgpu_bl1 set 66-
on-resume = brightnessctl -rd amdgpu_bl1
}
listener {
timeout = 240
on-timeout = brightnessctl -d amdgpu_bl1 set 0 && brightnessctl -sd chromeos::kbd_backlight set 0
on-resume = brightnessctl -rd chromeos::kbd_backlight
}
listener {
timeout = 270
on-timeout = loginctl lock-session
}
listener {
timeout = 300
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}
listener {
timeout = 330
on-timeout = systemctl suspend
}

View file

@ -1,7 +1,7 @@
{% if host.name == "chonk" %} {% if host.name == "chonk" %}
source = ~/.config/hypr/chonk.conf source = ~/.config/hypr/chonk.conf
{% else %} {% else %}
source = ~/.config/hypr/framework.conf source = ~/.config/hypr/hpomen.conf
{% endif %} {% endif %}
monitor = , preferred, auto, 1 monitor = , preferred, auto, 1
@ -97,7 +97,7 @@ bind = SUPER, RETURN, exec, $terminal
bind = SUPER SHIFT, Q, killactive, bind = SUPER SHIFT, Q, killactive,
bind = SUPER SHIFT, S, exec, uwsm-app -- env sh ~/scripts/screenshot.sh bind = SUPER SHIFT, S, exec, uwsm-app -- env sh ~/scripts/screenshot.sh
bind = SUPER SHIFT, C, exec, uwsm-app -- hyprpicker -a bind = SUPER SHIFT, C, exec, uwsm-app -- hyprpicker -a
bind = SUPER, L, exec, uwsm-app -- hyprlock bind = SUPER SHIFT, L, exec, uwsm-app -- swaylock
bind = SUPER, F, togglefloating, bind = SUPER, F, togglefloating,

View file

@ -1,37 +0,0 @@
general {
hide_cursor = true
ignore_empty_input = true
}
background {
monitor =
path = screenshot
blur_passes = 3
blur_size = 5
}
input-field {
monitor =
size = 300, 300
outline_thickness = 30
outer_color = rgb(0, 205, 0)
inner_color = rgba(0, 0, 0, 0)
fade_on_empty = false
placeholder_text =
hide_input = true
capslock_color = rgb(205, 0, 0)
}
label {
monitor =
text = cmd[update:1000] date '+%y/%-m/%-d'
font_size = 20
position = 0, -250
}
label {
monitor =
text = cmd[update:1000] date '+%H:%M:%S'
font_size = 40
position = 0, 250
}

View file

@ -1,6 +1,6 @@
@theme "arthuredit" @theme "arthuredit"
configuration { configuration {
modi: "drun,calc,emoji:/usr/bin/rofimoji -a copy -f emojis math"; modi: "drun,calc,emoji:/usr/bin/rofimoji -a copy -f emojis math,audio:/home/mbradley/dev/rofi-audio/rofi-audio.py";
icon-theme: "Papirus"; icon-theme: "Papirus";
show-icons: true; show-icons: true;
run-command: "uwsm-app -- {cmd}"; run-command: "uwsm-app -- {cmd}";

View file

@ -2,4 +2,5 @@
hyprctl keyword unbind CONTROL,TAB hyprctl keyword unbind CONTROL,TAB
rofi -show rofi -show
#rofi -show drun file-browser-extended calc emoji
hyprctl keyword bind 'CONTROL,TAB,exec,/home/mbradley/.config/rofi/launch.sh' hyprctl keyword bind 'CONTROL,TAB,exec,/home/mbradley/.config/rofi/launch.sh'

View file

@ -9,7 +9,6 @@ if [ ! -f "$API_KEY_FILE" ]; then
fi fi
CACHE_DIR="$XDG_CACHE_HOME/openweathermap" CACHE_DIR="$XDG_CACHE_HOME/openweathermap"
mkdir -p "$CACHE_DIR"
#RAIN_FILE="$CACHE_DIR/rain" #RAIN_FILE="$CACHE_DIR/rain"
#if [ ! -f "$RAIN_FILE" ] || [ "$(find "$RAIN_FILE" -mmin +10)" ]; then #if [ ! -f "$RAIN_FILE" ] || [ "$(find "$RAIN_FILE" -mmin +10)" ]; then

View file

@ -7,15 +7,13 @@ from socket import gethostname
from subprocess import run from subprocess import run
IS_DESKTOP = gethostname() == "chonk" MONITORS = ("DP-1", "DP-2", "HDMI-A-1") if gethostname() == "chonk" else ("eDP-1",)
MONITORS = ("DP-1", "DP-2") if IS_DESKTOP else ("eDP-1",)
ANGLE_TRANSITION_ARGS = [ ANGLE_TRANSITION_ARGS = [
"--transition-type", "wipe", "--transition-type", "wipe",
"--transition-angle", "30", "--transition-angle", "30",
"--transition-step", "45", "--transition-step", "45",
"--transition-fps", "165" if IS_DESKTOP else "120", "--transition-fps", "60",
] ]
IMMEDIATE_TRANSITION_ARGS = [ IMMEDIATE_TRANSITION_ARGS = [
"--transition-step", "255", "--transition-step", "255",

View file

@ -1,5 +1,5 @@
#!/bin/env sh #!/bin/env sh
if ! pidof slurp; then if [ "$(pidof slurp)" = "" ]; then
GRIMBLAST_HIDE_CURSOR=0 grimblast copy area grimblast copy area
fi fi

7
swaylock/config Normal file
View file

@ -0,0 +1,7 @@
daemonize
indicator-caps-lock
indicator-idle-visible
screenshots
clock
fade-in=1
effect-blur=10x3

View file

@ -11,3 +11,13 @@ export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export QT_QPA_PLATFORMTHEME=qt6ct export QT_QPA_PLATFORMTHEME=qt6ct
export ELECTRON_OZONE_PLATFORM_HINT=wayland export ELECTRON_OZONE_PLATFORM_HINT=wayland
{% if host.name == "hpomen" %}
export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export LIBVA_DRIVER_NAME=nvidia
export __GL_VRR_ALLOWED=0
export WLR_NO_HARDWARE_CURSORS=1
export NVD_BACKEND=direct
{% endif %}