Skip to content

Commit 70cdb5c

Browse files
committed
Merge branch 'master' of github.com:fbosch/dotfiles
2 parents 26c22c7 + 23882f6 commit 70cdb5c

24 files changed

+1597
-57
lines changed

.config/btop/btop.conf

Lines changed: 94 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
#? Config file for btop v. 1.4.5
1+
#? Config file for btop v.1.4.6
22

33
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
44
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
5-
color_theme = "TTY"
5+
color_theme = "/home/fbb/.config/btop/themes/zenwritten-dark.theme"
66

77
#* If the theme set background should be shown, set to False if you want terminal background transparency.
8-
theme_background = True
8+
theme_background = true
99

1010
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
11-
truecolor = True
11+
truecolor = true
1212

1313
#* Set to true to force tty mode regardless if a real tty has been detected or not.
1414
#* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols.
15-
force_tty = False
15+
force_tty = false
1616

1717
#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets.
1818
#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box.
@@ -22,10 +22,13 @@ presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:defaul
2222

2323
#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists.
2424
#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift.
25-
vim_keys = False
25+
vim_keys = false
2626

2727
#* Rounded corners on boxes, is ignored if TTY mode is ON.
28-
rounded_corners = True
28+
rounded_corners = true
29+
30+
#* Use terminal synchronized output sequences to reduce flickering on supported terminals.
31+
terminal_sync = true
2932

3033
#* Default symbols to use for graph creation, "braille", "block" or "tty".
3134
#* "braille" offers the highest resolution but might not be included in all fonts.
@@ -37,6 +40,9 @@ graph_symbol = "braille"
3740
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
3841
graph_symbol_cpu = "default"
3942

43+
# Graph symbol to use for graphs in gpu box, "default", "braille", "block" or "tty".
44+
graph_symbol_gpu = "default"
45+
4046
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
4147
graph_symbol_mem = "default"
4248

@@ -57,37 +63,40 @@ update_ms = 1000
5763
proc_sorting = "command"
5864

5965
#* Reverse sorting order, True or False.
60-
proc_reversed = True
66+
proc_reversed = true
6167

6268
#* Show processes as a tree.
63-
proc_tree = True
69+
proc_tree = true
6470

6571
#* Use the cpu graph colors in the process list.
66-
proc_colors = True
72+
proc_colors = true
6773

6874
#* Use a darkening gradient in the process list.
69-
proc_gradient = True
75+
proc_gradient = true
7076

7177
#* If process cpu usage should be of the core it's running on or usage of the total available cpu power.
72-
proc_per_core = False
78+
proc_per_core = false
7379

7480
#* Show process memory as bytes instead of percent.
75-
proc_mem_bytes = True
81+
proc_mem_bytes = true
7682

7783
#* Show cpu graph for each process.
78-
proc_cpu_graphs = True
84+
proc_cpu_graphs = true
7985

8086
#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
81-
proc_info_smaps = False
87+
proc_info_smaps = false
8288

8389
#* Show proc box on left side of screen instead of right.
84-
proc_left = False
90+
proc_left = false
8591

8692
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
87-
proc_filter_kernel = False
93+
proc_filter_kernel = false
8894

8995
#* In tree-view, always accumulate child process resources in the parent process.
90-
proc_aggregate = False
96+
proc_aggregate = false
97+
98+
#* Should cpu and memory usage display be preserved for dead processes when paused.
99+
keep_dead_proc_usage = false
91100

92101
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
93102
#* Select from a list of detected attributes from the options menu.
@@ -97,29 +106,32 @@ cpu_graph_upper = "total"
97106
#* Select from a list of detected attributes from the options menu.
98107
cpu_graph_lower = "total"
99108

109+
#* If gpu info should be shown in the cpu box. Available values = "Auto", "On" and "Off".
110+
show_gpu_info = "Auto"
111+
100112
#* Toggles if the lower CPU graph should be inverted.
101-
cpu_invert_lower = True
113+
cpu_invert_lower = true
102114

103115
#* Set to True to completely disable the lower CPU graph.
104-
cpu_single_graph = False
116+
cpu_single_graph = false
105117

106118
#* Show cpu box at bottom of screen instead of top.
107-
cpu_bottom = False
119+
cpu_bottom = false
108120

109121
#* Shows the system uptime in the CPU box.
110-
show_uptime = True
122+
show_uptime = true
111123

112124
#* Shows the CPU package current power consumption in watts. Requires running `make setcap` or `make setuid` or running with sudo.
113-
show_cpu_watts = True
125+
show_cpu_watts = true
114126

115127
#* Show cpu temperature.
116-
check_temp = True
128+
check_temp = true
117129

118130
#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors.
119131
cpu_sensor = "Auto"
120132

121133
#* Show temperatures for cpu cores also if check_temp is True and sensors has been found.
122-
show_coretemp = True
134+
show_coretemp = true
123135

124136
#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core.
125137
#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine.
@@ -131,17 +143,20 @@ cpu_core_map = ""
131143
temp_scale = "celsius"
132144

133145
#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024.
134-
base_10_sizes = False
146+
base_10_sizes = false
135147

136148
#* Show CPU frequency.
137-
show_cpu_freq = True
149+
show_cpu_freq = true
150+
151+
#* How to calculate CPU frequency, available values: "first", "range", "lowest", "highest" and "average".
152+
freq_mode = "first"
138153

139154
#* Draw a clock at top of screen, formatting according to strftime, empty string to disable.
140155
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime
141156
clock_format = "%X"
142157

143158
#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort.
144-
background_update = True
159+
background_update = true
145160

146161
#* Custom cpu model name, empty string to disable.
147162
custom_cpu_name = ""
@@ -151,43 +166,43 @@ custom_cpu_name = ""
151166
disks_filter = ""
152167

153168
#* Show graphs instead of meters for memory values.
154-
mem_graphs = True
169+
mem_graphs = true
155170

156171
#* Show mem box below net box instead of above.
157-
mem_below_net = False
172+
mem_below_net = false
158173

159174
#* Count ZFS ARC in cached and available memory.
160-
zfs_arc_cached = True
175+
zfs_arc_cached = true
161176

162177
#* If swap memory should be shown in memory box.
163-
show_swap = True
178+
show_swap = true
164179

165180
#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk.
166-
swap_disk = True
181+
swap_disk = true
167182

168183
#* If mem box should be split to also show disks info.
169-
show_disks = False
184+
show_disks = false
170185

171186
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
172-
only_physical = True
187+
only_physical = true
173188

174189
#* Read disks list from /etc/fstab. This also disables only_physical.
175-
use_fstab = True
190+
use_fstab = true
176191

177192
#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool)
178-
zfs_hide_datasets = False
193+
zfs_hide_datasets = false
179194

180195
#* Set to true to show available disk space for privileged users.
181-
disk_free_priv = False
196+
disk_free_priv = false
182197

183198
#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view.
184-
show_io_stat = True
199+
show_io_stat = true
185200

186201
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
187-
io_mode = False
202+
io_mode = false
188203

189204
#* Set to True to show combined read/write io graphs in io mode.
190-
io_graph_combined = False
205+
io_graph_combined = false
191206

192207
#* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ".
193208
#* Example: "/mnt/media:100 /:20 /boot:1".
@@ -199,10 +214,10 @@ net_download = 100
199214
net_upload = 100
200215

201216
#* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest.
202-
net_auto = True
217+
net_auto = true
203218

204219
#* Sync the auto scaling for download and upload to whichever currently has the highest scale.
205-
net_sync = True
220+
net_sync = true
206221

207222
#* Starts with the Network Interface specified here.
208223
net_iface = ""
@@ -211,14 +226,47 @@ net_iface = ""
211226
base_10_bitrate = "Auto"
212227

213228
#* Show battery stats in top right if battery is present.
214-
show_battery = True
229+
show_battery = true
215230

216231
#* Which battery to use if multiple are present. "Auto" for auto detection.
217232
selected_battery = "Auto"
218233

219234
#* Show power stats of battery next to charge indicator.
220-
show_battery_watts = True
235+
show_battery_watts = true
221236

222-
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
237+
#* Set loglevel for "~/.local/state/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
223238
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
224239
log_level = "WARNING"
240+
241+
#* Automatically save current settings to config file on exit.
242+
save_config_on_exit = true
243+
244+
#* Measure PCIe throughput on NVIDIA cards, may impact performance on certain cards.
245+
nvml_measure_pcie_speeds = true
246+
247+
#* Measure PCIe throughput on AMD cards, may impact performance on certain cards.
248+
rsmi_measure_pcie_speeds = true
249+
250+
#* Horizontally mirror the GPU graph.
251+
gpu_mirror_graph = true
252+
253+
#* Set which GPU vendors to show. Available values are "nvidia amd intel"
254+
shown_gpus = "nvidia amd intel"
255+
256+
#* Custom gpu0 model name, empty string to disable.
257+
custom_gpu_name0 = ""
258+
259+
#* Custom gpu1 model name, empty string to disable.
260+
custom_gpu_name1 = ""
261+
262+
#* Custom gpu2 model name, empty string to disable.
263+
custom_gpu_name2 = ""
264+
265+
#* Custom gpu3 model name, empty string to disable.
266+
custom_gpu_name3 = ""
267+
268+
#* Custom gpu4 model name, empty string to disable.
269+
custom_gpu_name4 = ""
270+
271+
#* Custom gpu5 model name, empty string to disable.
272+
custom_gpu_name5 = ""
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
function hyprprop_kill --description 'Select a window with hyprprop and kill it with pkill'
2+
set -l options h/help
3+
argparse -n hyprprop_kill $options -- $argv
4+
or return
5+
6+
if set -q _flag_help
7+
echo "Usage: hyprprop_kill"
8+
echo "Interactively select a window with hyprprop and kill its process"
9+
return 0
10+
end
11+
12+
# Check if hyprprop is available
13+
if not command -v hyprprop >/dev/null
14+
echo "hyprprop_kill: hyprprop not found" >&2
15+
return 1
16+
end
17+
18+
# Get window info as JSON
19+
set -l window_json (hyprprop --raw 2>/dev/null)
20+
21+
if test $status -ne 0
22+
echo "hyprprop_kill: Failed to get window information (selection cancelled?)" >&2
23+
return 1
24+
end
25+
26+
# Extract PID and process info from JSON
27+
set -l pid (echo $window_json | jq -r '.pid // empty' 2>/dev/null)
28+
set -l title (echo $window_json | jq -r '.title // empty' 2>/dev/null)
29+
set -l class (echo $window_json | jq -r '.class // .initialClass // empty' 2>/dev/null)
30+
31+
if test -z "$pid"
32+
echo "hyprprop_kill: Could not determine PID from window" >&2
33+
return 1
34+
end
35+
36+
# Show process info for confirmation
37+
set -l display_name "$class"
38+
if test -n "$title"
39+
set display_name "$class ($title)"
40+
end
41+
42+
# Confirm before killing
43+
if not gum confirm "Kill process: $display_name [PID: $pid]?"
44+
echo "Cancelled"
45+
return 0
46+
end
47+
48+
# Kill the process by PID
49+
if kill $pid 2>/dev/null
50+
echo "Killed: $display_name [PID: $pid]"
51+
else
52+
# Try with force if regular kill failed
53+
if kill -9 $pid 2>/dev/null
54+
echo "Force killed: $display_name [PID: $pid]"
55+
else
56+
echo "hyprprop_kill: Failed to kill PID $pid" >&2
57+
return 1
58+
end
59+
end
60+
end

.config/hypr/generated-rules.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,11 @@ windowrule = match:class ^(be\.alexandervanhee\.gradia)$, hyprbars:no_bar 1
2222
# Generated by hypr-quickrule for be.alexandervanhee.gradia
2323
windowrule = match:class ^(be\.alexandervanhee\.gradia)$, float on
2424
windowrule = match:class ^(be\.alexandervanhee\.gradia)$, center on
25+
26+
# Generated by hypr-quickrule for net.davidotek.pupgui2
27+
windowrule = match:class ^(net\.davidotek\.pupgui2)$, float on
28+
windowrule = match:class ^(net\.davidotek\.pupgui2)$, size 750 900
29+
30+
# Generated by hypr-quickrule for net.davidotek.pupgui2
31+
windowrule = match:class ^(net\.davidotek\.pupgui2)$, float on
32+
windowrule = match:class ^(net\.davidotek\.pupgui2)$, size 360 620

.config/hypr/hyprland.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ opengl {
2525
# Set programs that you use
2626
$terminal = uwsm app -- mullvad-exclude wezterm
2727
$fileManager = uwsm app -- nemo
28+
$browser = bash ~/.config/hypr/scripts/launch-browser.sh
2829
$menu = vicinae toggle
2930

3031
# Load Hyprland plugins from Nix BEFORE config files are sourced
@@ -83,7 +84,7 @@ exec-once = uwsm app -- swaync -c ~/.config/swaync/config.json -s ~/.config/sway
8384
exec-once = uwsm app -- ~/.config/hypr/scripts/window-state.sh
8485
exec-once = uwsm app -- bash -c 'while ! pw-cli info 0 &>/dev/null; do sleep 0.1; done && uwsm app -- pw-play ~/.config/hypr/assets/bootup.ogg'
8586
exec-once = ~/.config/hypr/scripts/window-capture-daemon.sh
86-
exec-once = steam -nochatui -nofriendsui -silent
87+
exec-once = uwsm app -- mullvad-exclude steam -nochatui -nofriendsui -silent
8788

8889
# Alternatively, for apps with systemd services, you can enable them instead:
8990
# systemctl --user enable --now waybar.service

.config/hypr/keybinds.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ bind = CTRL SHIFT, O, exec, bash ~/.config/hypr/scripts/screenshot.sh ocr
4040

4141
# Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more
4242
bind = $mainMod, Q, exec, $terminal
43+
bind = $mainMod, B, exec, $browser
4344
bind = $mainMod, C, killactive
4445
bind = $mainMod, M, exec, bash ~/.config/hypr/scripts/confirm-exit.sh # Show confirmation dialog before exit
4546
bind = $mainMod SHIFT, R, exec, ~/.config/hypr/scripts/reset-desktop.sh

0 commit comments

Comments
 (0)