Compare commits
65
Commits
fd29875044
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be065bef95
|
||
|
|
9e2b6d52bb
|
||
|
|
85796d4c39
|
||
|
|
6e587622f0
|
||
|
|
5fa637ef79
|
||
|
|
a5f7d9507f
|
||
|
|
394e1d4d58
|
||
|
|
108f71e711
|
||
|
|
7e8328bf60
|
||
|
|
49141ef177
|
||
|
|
478e4d391e
|
||
|
|
e2fd3e4aa9
|
||
|
|
4a96319bb2
|
||
|
|
faad434dad
|
||
|
|
9896d9bb21
|
||
|
|
248a9b7d1f
|
||
|
|
216e1bff0f
|
||
|
|
472bf7246b
|
||
|
|
0d1cb6cf2a
|
||
|
|
96903a4d22
|
||
|
|
ce1cd479df
|
||
|
|
c103510786
|
||
|
|
3053b35f26
|
||
|
|
a260a42352
|
||
|
|
566ac562bd
|
||
|
|
3bb25669ea
|
||
|
|
84eec8c855
|
||
|
|
f6015f8d98
|
||
|
|
7aa423b6d6
|
||
|
|
b5c268ae7d
|
||
|
|
0ec1272df6
|
||
|
|
6f4aa3806f
|
||
|
|
9da7cc8105
|
||
|
|
93b5bcbf30
|
||
|
|
4c5ca29f6e
|
||
|
|
8bfd577b20
|
||
|
|
3a2d2b7c37
|
||
|
|
51b2bbeff8
|
||
|
|
b76ae5c3f6
|
||
|
|
90a81ea960
|
||
|
|
5b6e381c89
|
||
|
|
10bfc025c3
|
||
|
|
831238e040
|
||
|
|
cc8eaebd5f
|
||
|
|
a41afe4983
|
||
|
|
4e431d6710
|
||
|
|
68bbcaeb82
|
||
|
|
efea899ccb
|
||
|
|
15e6dfebb7
|
||
|
|
5d8620560a
|
||
|
|
496c16ab07
|
||
|
|
d0684b5200
|
||
|
|
5e8fa266d7
|
||
|
|
cd439be109
|
||
|
|
2718d8531e
|
||
|
|
12affc76f7
|
||
|
|
ffe2039de5
|
||
|
|
638f7e3dd9
|
||
|
|
3e5824a590
|
||
|
|
b10970bf36
|
||
|
|
12ba85b83b
|
||
|
|
3ff5c20cb5
|
||
|
|
43758f2c0e
|
||
|
|
f3f4f346a8
|
||
|
|
6dff7f553d
|
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
Xcursor.theme: Dracula
|
Xcursor.theme: Dracula-cursors
|
||||||
|
|
||||||
*.Dialog.bodyFont: Jetbrains Mono Nerd Font
|
*.Dialog.bodyFont: Jetbrains Mono Nerd Font
|
||||||
*.Dialog.headingFont: Jetbrains Mono Nerd Font
|
*.Dialog.headingFont: Jetbrains Mono Nerd Font
|
||||||
+1
-3
@@ -1,6 +1,5 @@
|
|||||||
# Aliases
|
# Aliases
|
||||||
alias cat='bat'
|
alias cat='bat'
|
||||||
alias clean-aurutils-cache='find ~/.cache/aurutils/sync -type d -name .git -execdir git clean -xi \;'
|
|
||||||
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||||
alias cookie='fortune /usr/share/fortune/asoiaf /usr/share/fortune/startrek | cowthink | lolcat -p 2.0 -F 0.3 -a -d 1'
|
alias cookie='fortune /usr/share/fortune/asoiaf /usr/share/fortune/startrek | cowthink | lolcat -p 2.0 -F 0.3 -a -d 1'
|
||||||
alias fastfetch='hyfetch --distro=arch'
|
alias fastfetch='hyfetch --distro=arch'
|
||||||
@@ -15,8 +14,7 @@ alias sort='sort -n'
|
|||||||
alias scrcpy='scrcpy --disable-screensaver'
|
alias scrcpy='scrcpy --disable-screensaver'
|
||||||
alias ssh='kitten ssh'
|
alias ssh='kitten ssh'
|
||||||
alias sudo='doas'
|
alias sudo='doas'
|
||||||
#alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --transparent true --tint 0x232634 --height 18 --monitor 1'
|
alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --transparent true --alpha 0 --tint 0x24283b --height 24 --monitor 1'
|
||||||
alias trayer='trayer -l --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --tint 0x232634 --height 18 --monitor 1'
|
|
||||||
alias trc='trash-empty'
|
alias trc='trash-empty'
|
||||||
alias trl='trash-list'
|
alias trl='trash-list'
|
||||||
alias trm='trash-rm'
|
alias trm='trash-rm'
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
#
|
||||||
|
# ~/.bash_profile
|
||||||
|
#
|
||||||
|
|
||||||
|
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
# Thermal-focused overlay; starts hidden, Shift_R+F12 toggles it.
|
||||||
|
no_display
|
||||||
|
toggle_hud=Shift_R+F12
|
||||||
|
position=top-left
|
||||||
|
font_size=20
|
||||||
|
background_alpha=0.4
|
||||||
|
|
||||||
|
# Divisors of 60 Hz only; Shift_L+F1 cycles 60 -> 30 -> unlimited.
|
||||||
|
fps_limit=60,30,0
|
||||||
|
toggle_fps_limit=Shift_L+F1
|
||||||
|
fps_limit_method=late
|
||||||
|
|
||||||
|
# GPU0 is the Intel iGPU (no temp, power or VRAM); only show the NVIDIA one.
|
||||||
|
gpu_list=1
|
||||||
|
gpu_stats
|
||||||
|
gpu_temp
|
||||||
|
gpu_core_clock
|
||||||
|
throttling_status
|
||||||
|
|
||||||
|
cpu_stats
|
||||||
|
cpu_temp
|
||||||
|
cpu_mhz
|
||||||
|
|
||||||
|
vram
|
||||||
|
ram
|
||||||
|
|
||||||
|
fps
|
||||||
|
frametime
|
||||||
|
frame_timing
|
||||||
@@ -2,4 +2,4 @@
|
|||||||
# Here rather than in LDFLAGS: old libtool (<2.4.7) drops -fuse-ld=lld, and these then reach GNU ld.
|
# Here rather than in LDFLAGS: old libtool (<2.4.7) drops -fuse-ld=lld, and these then reach GNU ld.
|
||||||
-fuse-ld=lld
|
-fuse-ld=lld
|
||||||
-Wl,--thinlto-cache-dir=/home/fuxino/.cache/thinlto
|
-Wl,--thinlto-cache-dir=/home/fuxino/.cache/thinlto
|
||||||
-Wl,--thinlto-cache-policy=cache_size_bytes=10g
|
-Wl,--thinlto-cache-policy=cache_size_bytes=10g:prune_after=0s
|
||||||
@@ -168,8 +168,8 @@ SRCEXT='.src.tar.gz'
|
|||||||
export CCACHE_DIR=/home/fuxino/.cache/ccache
|
export CCACHE_DIR=/home/fuxino/.cache/ccache
|
||||||
|
|
||||||
# clang + lld + ThinLTO, only when aurb prepends AURB_CLANG=1 (its default; `aurb --gcc` doesn't).
|
# clang + lld + ThinLTO, only when aurb prepends AURB_CLANG=1 (its default; `aurb --gcc` doesn't).
|
||||||
# update-kernel uses this file as is, so the kernels stay on gcc. Linker flags live in clang.cfg
|
# update-kernel uses this file as is; the kernels' toolchain is set only by their PKGBUILDs (LLVM=1).
|
||||||
# (lld + ThinLTO cache); aurb bind-mounts its dir and the ThinLTO cache dir.
|
# Linker flags live in clang.cfg (lld + ThinLTO cache); aurb bind-mounts its dir and the ThinLTO cache dir.
|
||||||
if [[ -n ${AURB_CLANG-} ]]; then
|
if [[ -n ${AURB_CLANG-} ]]; then
|
||||||
export CC="clang --config=/home/fuxino/.config/aurb/clang.cfg"
|
export CC="clang --config=/home/fuxino/.config/aurb/clang.cfg"
|
||||||
export CXX="clang++ --config=/home/fuxino/.config/aurb/clang.cfg"
|
export CXX="clang++ --config=/home/fuxino/.config/aurb/clang.cfg"
|
||||||
|
|||||||
@@ -0,0 +1,87 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Name=Redshift
|
||||||
|
Name[be]=Redshift
|
||||||
|
Name[ca]=Redshift
|
||||||
|
Name[cs]=Redshift
|
||||||
|
Name[da]=Redshift
|
||||||
|
Name[de]=Redshift
|
||||||
|
Name[en_GB]=Redshift
|
||||||
|
Name[es]=Redshift
|
||||||
|
Name[fr]=Redshift
|
||||||
|
Name[he]=Redshift
|
||||||
|
Name[hu]=Redshift
|
||||||
|
Name[it]=Redshift
|
||||||
|
Name[ja]=Redshift
|
||||||
|
Name[lt]=Redshift
|
||||||
|
Name[nb]=Rødskift
|
||||||
|
Name[pl]=Redshift
|
||||||
|
Name[pt]=Redshift
|
||||||
|
Name[pt_BR]=Redshift
|
||||||
|
Name[ro]=Redshift
|
||||||
|
Name[ru]=Redshift
|
||||||
|
Name[sr]=Редшифт
|
||||||
|
Name[sv]=Redshift
|
||||||
|
Name[tr]=Redshift
|
||||||
|
Name[uk]=Redshift
|
||||||
|
Name[zh_CN]=红移
|
||||||
|
Name[zh_TW]=Redshift
|
||||||
|
GenericName=Color temperature adjustment
|
||||||
|
GenericName[be]=Рэгуляванне каляровай тэмпературы
|
||||||
|
GenericName[ca]=Ajust de la temperatura de color
|
||||||
|
GenericName[cs]=Nastavení teploty barev
|
||||||
|
GenericName[da]=Justering af farvetemperatur
|
||||||
|
GenericName[de]=Farbtemperaturanpassung
|
||||||
|
GenericName[en_GB]=Colour temperature adjustment
|
||||||
|
GenericName[es]=Ajuste de la temperatura de color
|
||||||
|
GenericName[fr]=Réglage de la température de couleur
|
||||||
|
GenericName[he]=התאמת טמפרטורת צבע
|
||||||
|
GenericName[hu]=Színhőmérséklet beállítása
|
||||||
|
GenericName[it]=Regolazione della temperatura del colore
|
||||||
|
GenericName[ja]=色温度の調整
|
||||||
|
GenericName[lt]=Spalvos temperatūros reguliavimas
|
||||||
|
GenericName[nb]=Justering av fargetemperatur
|
||||||
|
GenericName[nl]=Bijstelling van kleurtemperatuur
|
||||||
|
GenericName[pl]=Dostosowanie temperatury barwowej
|
||||||
|
GenericName[pt_BR]=Ajuste de temperatura de cor
|
||||||
|
GenericName[ru]=Настройка цветовой температуры
|
||||||
|
GenericName[sr]=Прилагођавање температуре боје
|
||||||
|
GenericName[sv]=Färgtemperaturjustering
|
||||||
|
GenericName[tr]=Renk sıcaklığı ayarı
|
||||||
|
GenericName[uk]=Налаштування колірної температури
|
||||||
|
GenericName[zh_CN]=色温调节
|
||||||
|
GenericName[zh_TW]=色溫調整
|
||||||
|
Comment=Color temperature adjustment tool
|
||||||
|
Comment[be]=Інструмент рэгулявання каляровай тэмпературы
|
||||||
|
Comment[ca]=Eina per a l'ajust de la temperatura de color
|
||||||
|
Comment[cs]=Nástroj pro přizpůsobení barevné teploty
|
||||||
|
Comment[da]=Justeringsværktøj for farvetemperatur
|
||||||
|
Comment[de]=Farbtemperaturanpassungswerkzeug
|
||||||
|
Comment[en_GB]=Colour temperature adjustment tool
|
||||||
|
Comment[es]=Herramienta para el ajuste de la temperatura de color
|
||||||
|
Comment[fr]=Outil de réglage de la température de couleur
|
||||||
|
Comment[he]=כלי להתאמת טמפרטורת צבע
|
||||||
|
Comment[hu]=Színhőmérséklet beállító eszköz
|
||||||
|
Comment[it]=Strumento per la regolazione della temperatura del colore
|
||||||
|
Comment[ja]=色温度の調整ツール
|
||||||
|
Comment[lt]=Spalvos temperatūros reguliavimo įrankis
|
||||||
|
Comment[nb]=Justeringsverktøy for fargetemperatur
|
||||||
|
Comment[nl]=Hulpmiddel voor het bijstellen van de kleurtemperatuur
|
||||||
|
Comment[pl]=Narzędzie do dostosowywania temperatury barwowej
|
||||||
|
Comment[pt_BR]=Ferramenta de ajuste de temperatura de cor
|
||||||
|
Comment[ru]=Инструмент регулирования цветовой температуры
|
||||||
|
Comment[sr]=Алатка за прилагођавање температуре боје
|
||||||
|
Comment[sv]=Justeringsverktyg för färgtemperaturer
|
||||||
|
Comment[tr]=Renk sıcaklığı ayarlama aracı
|
||||||
|
Comment[uk]=Знаряддя налаштувань колірної температури
|
||||||
|
Comment[zh_CN]=色温调节工具
|
||||||
|
Comment[zh_TW]=色溫調整工具
|
||||||
|
Exec=redshift-gtk
|
||||||
|
Icon=redshift
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=Utility;
|
||||||
|
StartupNotify=true
|
||||||
|
Hidden=true
|
||||||
|
X-GNOME-Autostart-enabled=false
|
||||||
|
|
||||||
@@ -0,0 +1,286 @@
|
|||||||
|
#? Config file for btop v.1.4.7
|
||||||
|
|
||||||
|
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
|
||||||
|
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
|
||||||
|
color_theme = "/home/fuxino/.config/btop/themes/catppuccin_frappe.theme"
|
||||||
|
|
||||||
|
#* If the theme set background should be shown, set to False if you want terminal background transparency.
|
||||||
|
theme_background = false
|
||||||
|
|
||||||
|
#* 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
|
||||||
|
|
||||||
|
#* Option to disable presets. Either the default preset, custom presets, or all presets.
|
||||||
|
#* "Off" All presets are enabled.
|
||||||
|
#* "Default" preset is disabled.#* "Custom" presets are disabled.#* "All" presets are disabled.
|
||||||
|
disable_presets = "Off"
|
||||||
|
|
||||||
|
#* 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 = true
|
||||||
|
|
||||||
|
#* Disable all mouse events.
|
||||||
|
disable_mouse = false
|
||||||
|
|
||||||
|
#* Rounded corners on boxes, is ignored if TTY mode is ON.
|
||||||
|
rounded_corners = true
|
||||||
|
|
||||||
|
#* Use terminal synchronized output sequences to reduce flickering on supported terminals.
|
||||||
|
terminal_sync = true
|
||||||
|
|
||||||
|
#* Default symbols to use for graph creation, "braille", "block" or "tty".
|
||||||
|
#* "braille" offers the highest resolution but might not be included in all fonts.
|
||||||
|
#* "block" has half the resolution of braille but uses more common characters.
|
||||||
|
#* "tty" uses only 3 different symbols but will work with most fonts and should work in a real TTY.
|
||||||
|
#* Note that "tty" only has half the horizontal resolution of the other two, so will show a shorter historical view.
|
||||||
|
graph_symbol = "braille"
|
||||||
|
|
||||||
|
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||||
|
graph_symbol_cpu = "default"
|
||||||
|
|
||||||
|
# Graph symbol to use for graphs in gpu box, "default", "braille", "block" or "tty".
|
||||||
|
graph_symbol_gpu = "default"
|
||||||
|
|
||||||
|
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||||
|
graph_symbol_mem = "default"
|
||||||
|
|
||||||
|
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||||
|
graph_symbol_net = "default"
|
||||||
|
|
||||||
|
# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty".
|
||||||
|
graph_symbol_proc = "default"
|
||||||
|
|
||||||
|
#* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace.
|
||||||
|
shown_boxes = "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 = "cpu lazy"
|
||||||
|
|
||||||
|
#* Reverse sorting order, True or False.
|
||||||
|
proc_reversed = false
|
||||||
|
|
||||||
|
#* Show processes as a tree.
|
||||||
|
proc_tree = false
|
||||||
|
|
||||||
|
#* Use the cpu graph colors in the process list.
|
||||||
|
proc_colors = true
|
||||||
|
|
||||||
|
#* Use a darkening gradient in the process list.
|
||||||
|
proc_gradient = true
|
||||||
|
|
||||||
|
#* If process cpu usage should be of the core it's running on or usage of the total available cpu power.
|
||||||
|
proc_per_core = false
|
||||||
|
|
||||||
|
#* Show process memory as bytes instead of percent.
|
||||||
|
proc_mem_bytes = true
|
||||||
|
|
||||||
|
#* Show cpu graph for each process.
|
||||||
|
proc_cpu_graphs = true
|
||||||
|
|
||||||
|
#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
|
||||||
|
proc_info_smaps = false
|
||||||
|
|
||||||
|
#* Show proc box on left side of screen instead of right.
|
||||||
|
proc_left = false
|
||||||
|
|
||||||
|
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
|
||||||
|
proc_filter_kernel = false
|
||||||
|
|
||||||
|
#* Should the process list follow the selected process when detailed view is open.
|
||||||
|
proc_follow_detailed = true
|
||||||
|
|
||||||
|
#* In tree-view, always accumulate child process resources in the parent process.
|
||||||
|
proc_aggregate = false
|
||||||
|
|
||||||
|
#* Should cpu and memory usage display be preserved for dead processes when paused.
|
||||||
|
keep_dead_proc_usage = false
|
||||||
|
|
||||||
|
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
|
||||||
|
#* Select from a list of detected attributes from the options menu.
|
||||||
|
cpu_graph_upper = "Auto"
|
||||||
|
|
||||||
|
#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available.
|
||||||
|
#* Select from a list of detected attributes from the options menu.
|
||||||
|
cpu_graph_lower = "Auto"
|
||||||
|
|
||||||
|
#* If gpu info should be shown in the cpu box. Available values = "Auto", "On" and "Off".
|
||||||
|
show_gpu_info = "Auto"
|
||||||
|
|
||||||
|
#* Toggles if the lower CPU graph should be inverted.
|
||||||
|
cpu_invert_lower = true
|
||||||
|
|
||||||
|
#* Set to True to completely disable the lower CPU graph.
|
||||||
|
cpu_single_graph = false
|
||||||
|
|
||||||
|
#* Show cpu box at bottom of screen instead of top.
|
||||||
|
cpu_bottom = false
|
||||||
|
|
||||||
|
#* Shows the system uptime in the CPU box.
|
||||||
|
show_uptime = true
|
||||||
|
|
||||||
|
#* Shows the CPU package current power consumption in watts. Requires running `make setcap` or `make setuid` or running with sudo.
|
||||||
|
show_cpu_watts = true
|
||||||
|
|
||||||
|
#* Show cpu temperature.
|
||||||
|
check_temp = true
|
||||||
|
|
||||||
|
#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors.
|
||||||
|
cpu_sensor = "Auto"
|
||||||
|
|
||||||
|
#* Show temperatures for cpu cores also if check_temp is True and sensors has been found.
|
||||||
|
show_coretemp = true
|
||||||
|
|
||||||
|
#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core.
|
||||||
|
#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine.
|
||||||
|
#* Format "x:y" x=core with wrong temp, y=core with correct temp, use space as separator between multiple entries.
|
||||||
|
#* Example: "4:0 5:1 6:3"
|
||||||
|
cpu_core_map = ""
|
||||||
|
|
||||||
|
#* Which temperature scale to use, available values: "celsius", "fahrenheit", "kelvin" and "rankine".
|
||||||
|
temp_scale = "celsius"
|
||||||
|
|
||||||
|
#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024.
|
||||||
|
base_10_sizes = false
|
||||||
|
|
||||||
|
#* Show CPU frequency.
|
||||||
|
show_cpu_freq = true
|
||||||
|
|
||||||
|
#* How to calculate CPU frequency, available values: "first", "range", "lowest", "highest" and "average".
|
||||||
|
freq_mode = "first"
|
||||||
|
|
||||||
|
#* Draw a clock at top of screen, formatting according to strftime, empty string to disable.
|
||||||
|
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime
|
||||||
|
clock_format = "%X"
|
||||||
|
|
||||||
|
#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort.
|
||||||
|
background_update = true
|
||||||
|
|
||||||
|
#* Custom cpu model name, empty string to disable.
|
||||||
|
custom_cpu_name = ""
|
||||||
|
|
||||||
|
#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace " ".
|
||||||
|
#* Only disks matching the filter will be shown. Prepend exclude= to only show disks not matching the filter. Examples: disk_filter="/boot /home/user", disks_filter="exclude=/boot /home/user"
|
||||||
|
disks_filter = ""
|
||||||
|
|
||||||
|
#* Show graphs instead of meters for memory values.
|
||||||
|
mem_graphs = true
|
||||||
|
|
||||||
|
#* Show mem box below net box instead of above.
|
||||||
|
mem_below_net = false
|
||||||
|
|
||||||
|
#* Count ZFS ARC in cached and available memory.
|
||||||
|
zfs_arc_cached = true
|
||||||
|
|
||||||
|
#* If swap memory should be shown in memory box.
|
||||||
|
show_swap = true
|
||||||
|
|
||||||
|
#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk.
|
||||||
|
swap_disk = true
|
||||||
|
|
||||||
|
#* If mem box should be split to also show disks info.
|
||||||
|
show_disks = true
|
||||||
|
|
||||||
|
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
|
||||||
|
only_physical = true
|
||||||
|
|
||||||
|
#* Read disks list from /etc/fstab. This also disables only_physical.
|
||||||
|
use_fstab = true
|
||||||
|
|
||||||
|
#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool)
|
||||||
|
zfs_hide_datasets = false
|
||||||
|
|
||||||
|
#* Set to true to show available disk space for privileged users.
|
||||||
|
disk_free_priv = false
|
||||||
|
|
||||||
|
#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view.
|
||||||
|
show_io_stat = true
|
||||||
|
|
||||||
|
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
|
||||||
|
io_mode = true
|
||||||
|
|
||||||
|
#* 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 = ""
|
||||||
|
|
||||||
|
#* Swap the positions of the upload and download speed graphs. When true, upload will be on top.
|
||||||
|
swap_upload_download = false
|
||||||
|
|
||||||
|
#* 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 = false
|
||||||
|
|
||||||
|
#* 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 = "BAT0"
|
||||||
|
|
||||||
|
#* Show power stats of battery next to charge indicator.
|
||||||
|
show_battery_watts = true
|
||||||
|
|
||||||
|
#* Set loglevel for "~/.local/state/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
|
||||||
|
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
|
||||||
|
log_level = "INFO"
|
||||||
|
|
||||||
|
#* Automatically save current settings to config file on exit.
|
||||||
|
save_config_on_exit = true
|
||||||
|
|
||||||
|
#* Measure PCIe throughput on NVIDIA cards, may impact performance on certain cards.
|
||||||
|
nvml_measure_pcie_speeds = true
|
||||||
|
|
||||||
|
#* Measure PCIe throughput on AMD cards, may impact performance on certain cards.
|
||||||
|
rsmi_measure_pcie_speeds = true
|
||||||
|
|
||||||
|
#* Horizontally mirror the GPU graph.
|
||||||
|
gpu_mirror_graph = true
|
||||||
|
|
||||||
|
#* Set which GPU vendors to show. Available values are "nvidia amd intel apple"
|
||||||
|
shown_gpus = "nvidia amd intel"
|
||||||
|
|
||||||
|
#* Custom gpu0 model name, empty string to disable.
|
||||||
|
custom_gpu_name0 = ""
|
||||||
|
|
||||||
|
#* Custom gpu1 model name, empty string to disable.
|
||||||
|
custom_gpu_name1 = ""
|
||||||
|
|
||||||
|
#* Custom gpu2 model name, empty string to disable.
|
||||||
|
custom_gpu_name2 = ""
|
||||||
|
|
||||||
|
#* Custom gpu3 model name, empty string to disable.
|
||||||
|
custom_gpu_name3 = ""
|
||||||
|
|
||||||
|
#* Custom gpu4 model name, empty string to disable.
|
||||||
|
custom_gpu_name4 = ""
|
||||||
|
|
||||||
|
#* Custom gpu5 model name, empty string to disable.
|
||||||
|
custom_gpu_name5 = ""
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#303446"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#C6D0F5"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#C6D0F5"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#8CAAEE"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#51576D"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#8CAAEE"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#838BA7"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#F2D5CF"
|
||||||
|
|
||||||
|
# Background color of the percentage meters
|
||||||
|
theme[meter_bg]="#51576D"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#F2D5CF"
|
||||||
|
|
||||||
|
# CPU, Memory, Network, Proc box outline colors
|
||||||
|
theme[cpu_box]="#ca9ee6" #Mauve
|
||||||
|
theme[mem_box]="#a6d189" #Green
|
||||||
|
theme[net_box]="#ea999c" #Maroon
|
||||||
|
theme[proc_box]="#8caaee" #Blue
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#737994"
|
||||||
|
|
||||||
|
# Temperature graph color (Green -> Yellow -> Red)
|
||||||
|
theme[temp_start]="#a6d189"
|
||||||
|
theme[temp_mid]="#e5c890"
|
||||||
|
theme[temp_end]="#e78284"
|
||||||
|
|
||||||
|
# CPU graph colors (Teal -> Lavender)
|
||||||
|
theme[cpu_start]="#81c8be"
|
||||||
|
theme[cpu_mid]="#85c1dc"
|
||||||
|
theme[cpu_end]="#babbf1"
|
||||||
|
|
||||||
|
# Mem/Disk free meter (Mauve -> Lavender -> Blue)
|
||||||
|
theme[free_start]="#ca9ee6"
|
||||||
|
theme[free_mid]="#babbf1"
|
||||||
|
theme[free_end]="#8caaee"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter (Sapphire -> Lavender)
|
||||||
|
theme[cached_start]="#85c1dc"
|
||||||
|
theme[cached_mid]="#8caaee"
|
||||||
|
theme[cached_end]="#babbf1"
|
||||||
|
|
||||||
|
# Mem/Disk available meter (Peach -> Red)
|
||||||
|
theme[available_start]="#ef9f76"
|
||||||
|
theme[available_mid]="#ea999c"
|
||||||
|
theme[available_end]="#e78284"
|
||||||
|
|
||||||
|
# Mem/Disk used meter (Green -> Sky)
|
||||||
|
theme[used_start]="#a6d189"
|
||||||
|
theme[used_mid]="#81c8be"
|
||||||
|
theme[used_end]="#99d1db"
|
||||||
|
|
||||||
|
# Download graph colors (Peach -> Red)
|
||||||
|
theme[download_start]="#ef9f76"
|
||||||
|
theme[download_mid]="#ea999c"
|
||||||
|
theme[download_end]="#e78284"
|
||||||
|
|
||||||
|
# Upload graph colors (Green -> Sky)
|
||||||
|
theme[upload_start]="#a6d189"
|
||||||
|
theme[upload_mid]="#81c8be"
|
||||||
|
theme[upload_end]="#99d1db"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage (Sapphire -> Mauve)
|
||||||
|
theme[process_start]="#85c1dc"
|
||||||
|
theme[process_mid]="#babbf1"
|
||||||
|
theme[process_end]="#ca9ee6"
|
||||||
@@ -0,0 +1,84 @@
|
|||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#EFF1F5"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#4C4F69"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#4C4F69"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#1E66F5"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#BCC0CC"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#1E66F5"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#8C8FA1"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#DC8A78"
|
||||||
|
|
||||||
|
# Background color of the percentage meters
|
||||||
|
theme[meter_bg]="#BCC0CC"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#DC8A78"
|
||||||
|
|
||||||
|
# CPU, Memory, Network, Proc box outline colors
|
||||||
|
theme[cpu_box]="#8839ef" #Mauve
|
||||||
|
theme[mem_box]="#40a02b" #Green
|
||||||
|
theme[net_box]="#e64553" #Maroon
|
||||||
|
theme[proc_box]="#1e66f5" #Blue
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#9CA0B0"
|
||||||
|
|
||||||
|
# Temperature graph color (Green -> Yellow -> Red)
|
||||||
|
theme[temp_start]="#40a02b"
|
||||||
|
theme[temp_mid]="#df8e1d"
|
||||||
|
theme[temp_end]="#d20f39"
|
||||||
|
|
||||||
|
# CPU graph colors (Teal -> Lavender)
|
||||||
|
theme[cpu_start]="#179299"
|
||||||
|
theme[cpu_mid]="#209fb5"
|
||||||
|
theme[cpu_end]="#7287fd"
|
||||||
|
|
||||||
|
# Mem/Disk free meter (Mauve -> Lavender -> Blue)
|
||||||
|
theme[free_start]="#8839ef"
|
||||||
|
theme[free_mid]="#7287fd"
|
||||||
|
theme[free_end]="#1e66f5"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter (Sapphire -> Lavender)
|
||||||
|
theme[cached_start]="#209fb5"
|
||||||
|
theme[cached_mid]="#1e66f5"
|
||||||
|
theme[cached_end]="#7287fd"
|
||||||
|
|
||||||
|
# Mem/Disk available meter (Peach -> Red)
|
||||||
|
theme[available_start]="#fe640b"
|
||||||
|
theme[available_mid]="#e64553"
|
||||||
|
theme[available_end]="#d20f39"
|
||||||
|
|
||||||
|
|
||||||
|
# Mem/Disk used meter (Green -> Sky)
|
||||||
|
theme[used_start]="#40a02b"
|
||||||
|
theme[used_mid]="#179299"
|
||||||
|
theme[used_end]="#04a5e5"
|
||||||
|
|
||||||
|
# Download graph colors (Peach -> Red)
|
||||||
|
theme[download_start]="#fe640b"
|
||||||
|
theme[download_mid]="#e64553"
|
||||||
|
theme[download_end]="#d20f39"
|
||||||
|
|
||||||
|
# Upload graph colors (Green -> Sky)
|
||||||
|
theme[upload_start]="#40a02b"
|
||||||
|
theme[upload_mid]="#179299"
|
||||||
|
theme[upload_end]="#04a5e5"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage (Sapphire -> Lavender-> Mauve)
|
||||||
|
theme[process_start]="#209fb5"
|
||||||
|
theme[process_mid]="#7287fd"
|
||||||
|
theme[process_end]="#8839ef"
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#24273A"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#CAD3F5"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#CAD3F5"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#8AADF4"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#494D64"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#8AADF4"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#8087A2"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#F4DBD6"
|
||||||
|
|
||||||
|
# Background color of the percentage meters
|
||||||
|
theme[meter_bg]="#494D64"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#F4DBD6"
|
||||||
|
|
||||||
|
# CPU, Memory, Network, Proc box outline colors
|
||||||
|
theme[cpu_box]="#c6a0f6" #Mauve
|
||||||
|
theme[mem_box]="#a6da95" #Green
|
||||||
|
theme[net_box]="#ee99a0" #Maroon
|
||||||
|
theme[proc_box]="#8aadf4" #Blue
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#6E738D"
|
||||||
|
|
||||||
|
# Temperature graph color (Green -> Yellow -> Red)
|
||||||
|
theme[temp_start]="#a6da95"
|
||||||
|
theme[temp_mid]="#eed49f"
|
||||||
|
theme[temp_end]="#ed8796"
|
||||||
|
|
||||||
|
# CPU graph colors (Teal -> Lavender)
|
||||||
|
theme[cpu_start]="#8bd5ca"
|
||||||
|
theme[cpu_mid]="#7dc4e4"
|
||||||
|
theme[cpu_end]="#b7bdf8"
|
||||||
|
|
||||||
|
# Mem/Disk free meter (Mauve -> Lavender -> Blue)
|
||||||
|
theme[free_start]="#c6a0f6"
|
||||||
|
theme[free_mid]="#b7bdf8"
|
||||||
|
theme[free_end]="#8aadf4"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter (Sapphire -> Lavender)
|
||||||
|
theme[cached_start]="#7dc4e4"
|
||||||
|
theme[cached_mid]="#8aadf4"
|
||||||
|
theme[cached_end]="#b7bdf8"
|
||||||
|
|
||||||
|
# Mem/Disk available meter (Peach -> Red)
|
||||||
|
theme[available_start]="#f5a97f"
|
||||||
|
theme[available_mid]="#ee99a0"
|
||||||
|
theme[available_end]="#ed8796"
|
||||||
|
|
||||||
|
# Mem/Disk used meter (Green -> Sky)
|
||||||
|
theme[used_start]="#a6da95"
|
||||||
|
theme[used_mid]="#8bd5ca"
|
||||||
|
theme[used_end]="#91d7e3"
|
||||||
|
|
||||||
|
# Download graph colors (Peach -> Red)
|
||||||
|
theme[download_start]="#f5a97f"
|
||||||
|
theme[download_mid]="#ee99a0"
|
||||||
|
theme[download_end]="#ed8796"
|
||||||
|
|
||||||
|
# Upload graph colors (Green -> Sky)
|
||||||
|
theme[upload_start]="#a6da95"
|
||||||
|
theme[upload_mid]="#8bd5ca"
|
||||||
|
theme[upload_end]="#91d7e3"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage (Sapphire -> Mauve)
|
||||||
|
theme[process_start]="#7dc4e4"
|
||||||
|
theme[process_mid]="#b7bdf8"
|
||||||
|
theme[process_end]="#c6a0f6"
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#1E1E2E"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#CDD6F4"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#CDD6F4"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#89B4FA"
|
||||||
|
|
||||||
|
# Background color of selected item in processes box
|
||||||
|
theme[selected_bg]="#45475A"
|
||||||
|
|
||||||
|
# Foreground color of selected item in processes box
|
||||||
|
theme[selected_fg]="#89B4FA"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#7F849C"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#F5E0DC"
|
||||||
|
|
||||||
|
# Background color of the percentage meters
|
||||||
|
theme[meter_bg]="#45475A"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#F5E0DC"
|
||||||
|
|
||||||
|
# CPU, Memory, Network, Proc box outline colors
|
||||||
|
theme[cpu_box]="#cba6f7" #Mauve
|
||||||
|
theme[mem_box]="#a6e3a1" #Green
|
||||||
|
theme[net_box]="#eba0ac" #Maroon
|
||||||
|
theme[proc_box]="#89b4fa" #Blue
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#6C7086"
|
||||||
|
|
||||||
|
# Temperature graph color (Green -> Yellow -> Red)
|
||||||
|
theme[temp_start]="#a6e3a1"
|
||||||
|
theme[temp_mid]="#f9e2af"
|
||||||
|
theme[temp_end]="#f38ba8"
|
||||||
|
|
||||||
|
# CPU graph colors (Teal -> Lavender)
|
||||||
|
theme[cpu_start]="#94e2d5"
|
||||||
|
theme[cpu_mid]="#74c7ec"
|
||||||
|
theme[cpu_end]="#b4befe"
|
||||||
|
|
||||||
|
# Mem/Disk free meter (Mauve -> Lavender -> Blue)
|
||||||
|
theme[free_start]="#cba6f7"
|
||||||
|
theme[free_mid]="#b4befe"
|
||||||
|
theme[free_end]="#89b4fa"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter (Sapphire -> Lavender)
|
||||||
|
theme[cached_start]="#74c7ec"
|
||||||
|
theme[cached_mid]="#89b4fa"
|
||||||
|
theme[cached_end]="#b4befe"
|
||||||
|
|
||||||
|
# Mem/Disk available meter (Peach -> Red)
|
||||||
|
theme[available_start]="#fab387"
|
||||||
|
theme[available_mid]="#eba0ac"
|
||||||
|
theme[available_end]="#f38ba8"
|
||||||
|
|
||||||
|
# Mem/Disk used meter (Green -> Sky)
|
||||||
|
theme[used_start]="#a6e3a1"
|
||||||
|
theme[used_mid]="#94e2d5"
|
||||||
|
theme[used_end]="#89dceb"
|
||||||
|
|
||||||
|
# Download graph colors (Peach -> Red)
|
||||||
|
theme[download_start]="#fab387"
|
||||||
|
theme[download_mid]="#eba0ac"
|
||||||
|
theme[download_end]="#f38ba8"
|
||||||
|
|
||||||
|
# Upload graph colors (Green -> Sky)
|
||||||
|
theme[upload_start]="#a6e3a1"
|
||||||
|
theme[upload_mid]="#94e2d5"
|
||||||
|
theme[upload_end]="#89dceb"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage (Sapphire -> Mauve)
|
||||||
|
theme[process_start]="#74C7EC"
|
||||||
|
theme[process_mid]="#89DCEB"
|
||||||
|
theme[process_end]="#cba6f7"
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
# All graphs and meters can be gradients
|
||||||
|
# For single color graphs leave "mid" and "end" variable empty.
|
||||||
|
# Use "start" and "end" variables for two color gradient
|
||||||
|
# Use "start", "mid" and "end" for three color gradient
|
||||||
|
|
||||||
|
# Main background, empty for terminal default, need to be empty if you want transparent background
|
||||||
|
theme[main_bg]="#272e33"
|
||||||
|
|
||||||
|
# Main text color
|
||||||
|
theme[main_fg]="#d3c6aa"
|
||||||
|
|
||||||
|
# Title color for boxes
|
||||||
|
theme[title]="#d3c6aa"
|
||||||
|
|
||||||
|
# Highlight color for keyboard shortcuts
|
||||||
|
theme[hi_fg]="#e67e80"
|
||||||
|
|
||||||
|
# Background color of selected items
|
||||||
|
theme[selected_bg]="#374145"
|
||||||
|
|
||||||
|
# Foreground color of selected items
|
||||||
|
theme[selected_fg]="#dbbc7f"
|
||||||
|
|
||||||
|
# Color of inactive/disabled text
|
||||||
|
theme[inactive_fg]="#272e33"
|
||||||
|
|
||||||
|
# Color of text appearing on top of graphs, i.e uptime and current network graph scaling
|
||||||
|
theme[graph_text]="#d3c6aa"
|
||||||
|
|
||||||
|
# Misc colors for processes box including mini cpu graphs, details memory graph and details status text
|
||||||
|
theme[proc_misc]="#a7c080"
|
||||||
|
|
||||||
|
# Cpu box outline color
|
||||||
|
theme[cpu_box]="#374145"
|
||||||
|
|
||||||
|
# Memory/disks box outline color
|
||||||
|
theme[mem_box]="#374145"
|
||||||
|
|
||||||
|
# Net up/down box outline color
|
||||||
|
theme[net_box]="#374145"
|
||||||
|
|
||||||
|
# Processes box outline color
|
||||||
|
theme[proc_box]="#374145"
|
||||||
|
|
||||||
|
# Box divider line and small boxes line color
|
||||||
|
theme[div_line]="#374145"
|
||||||
|
|
||||||
|
# Temperature graph colors
|
||||||
|
theme[temp_start]="#a7c080"
|
||||||
|
theme[temp_mid]="#dbbc7f"
|
||||||
|
theme[temp_end]="#f85552"
|
||||||
|
|
||||||
|
# CPU graph colors
|
||||||
|
theme[cpu_start]="#a7c080"
|
||||||
|
theme[cpu_mid]="#dbbc7f"
|
||||||
|
theme[cpu_end]="#f85552"
|
||||||
|
|
||||||
|
# Mem/Disk free meter
|
||||||
|
theme[free_start]="#f85552"
|
||||||
|
theme[free_mid]="#dbbc7f"
|
||||||
|
theme[free_end]="#a7c080"
|
||||||
|
|
||||||
|
# Mem/Disk cached meter
|
||||||
|
theme[cached_start]="#7fbbb3"
|
||||||
|
theme[cached_mid]="#83c092"
|
||||||
|
theme[cached_end]="#a7c080"
|
||||||
|
|
||||||
|
# Mem/Disk available meter
|
||||||
|
theme[available_start]="#f85552"
|
||||||
|
theme[available_mid]="#dbbc7f"
|
||||||
|
theme[available_end]="#a7c080"
|
||||||
|
|
||||||
|
# Mem/Disk used meter
|
||||||
|
theme[used_start]="#a7c080"
|
||||||
|
theme[used_mid]="#dbbc7f"
|
||||||
|
theme[used_end]="#f85552"
|
||||||
|
|
||||||
|
# Download graph colors
|
||||||
|
theme[download_start]="#a7c080"
|
||||||
|
theme[download_mid]="#83c092"
|
||||||
|
theme[download_end]="#7fbbb3"
|
||||||
|
|
||||||
|
# Upload graph colors
|
||||||
|
theme[upload_start]="#dbbc7f"
|
||||||
|
theme[upload_mid]="#e69875"
|
||||||
|
theme[upload_end]="#e67e80"
|
||||||
|
|
||||||
|
# Process box color gradient for threads, mem and cpu usage
|
||||||
|
theme[process_start]="#a7c080"
|
||||||
|
theme[process_mid]="#f85552"
|
||||||
|
theme[process_end]="#CC241D"
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
appearance.calendarview=monthly
|
||||||
|
appearance.compactpanels=no
|
||||||
|
appearance.defaultpanel=calendar
|
||||||
|
appearance.layout=1
|
||||||
|
appearance.headerline=yes
|
||||||
|
appearance.eventseparator=yes
|
||||||
|
appearance.dayseparator=yes
|
||||||
|
appearance.emptyline=yes
|
||||||
|
appearance.emptyday=--
|
||||||
|
appearance.notifybar=yes
|
||||||
|
appearance.sidebarwidth=36
|
||||||
|
appearance.theme=default on default
|
||||||
|
appearance.todoview=hide-completed
|
||||||
|
appearance.headingpos=right-justified
|
||||||
|
daemon.enable=yes
|
||||||
|
daemon.log=no
|
||||||
|
format.inputdate=2
|
||||||
|
format.notifydate=%a %F
|
||||||
|
format.notifytime=%T
|
||||||
|
format.appointmenttime=%H:%M
|
||||||
|
format.outputdate=%F
|
||||||
|
format.dayheading=%B %e, %Y
|
||||||
|
general.autogc=yes
|
||||||
|
general.autosave=yes
|
||||||
|
general.confirmdelete=yes
|
||||||
|
general.confirmquit=yes
|
||||||
|
general.firstdayofweek=monday
|
||||||
|
general.multipledays=yes
|
||||||
|
general.periodicsave=0
|
||||||
|
general.systemevents=yes
|
||||||
|
notification.command=calcurse --next | xargs -0 notify-send -a calcurse -i x-office-calendar "Appointment"
|
||||||
|
notification.notifyall=all
|
||||||
|
notification.warning=3600
|
||||||
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Sync the UI's saved changes once it exits (syncing while it runs would change files under it).
|
||||||
|
[ "$(ps -o args= -p "$PPID")" = calcurse ] && [ "$(ps -o tty= -p "$PPID" | tr -d ' ')" != '?' ] || exit 0
|
||||||
|
# shellcheck disable=SC2016 # $1 expands in the inner shell
|
||||||
|
setsid -f sh -c 'while kill -0 "$1" 2>/dev/null; do sleep 1; done; systemctl --user start calcurse-sync.service' \
|
||||||
|
sh "$PPID" >/dev/null 2>&1
|
||||||
Executable
+5
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Sync with Google before the UI loads. Non-interactive calls (-Q, -d, -i, calcurse-caldav's own) run this hook
|
||||||
|
# too, so act only for the UI: a bare "calcurse" with a terminal (the daemon is bare too, but has none).
|
||||||
|
[ "$(ps -o args= -p "$PPID")" = calcurse ] && [ "$(ps -o tty= -p "$PPID" | tr -d ' ')" != '?' ] || exit 0
|
||||||
|
calcurse-sync --now 2>&1 | systemd-cat -t calcurse-sync
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
#
|
||||||
|
# Calcurse keys configuration file
|
||||||
|
#
|
||||||
|
# In this file the keybindings used by Calcurse are defined.
|
||||||
|
# It is generated automatically by Calcurse and is maintained
|
||||||
|
# via the key configuration menu of the interactive user
|
||||||
|
# interface. It should not be edited directly.
|
||||||
|
|
||||||
|
generic-cancel ESC
|
||||||
|
generic-select SPC
|
||||||
|
generic-credits @
|
||||||
|
generic-help ?
|
||||||
|
generic-quit q Q
|
||||||
|
generic-save s S ^S
|
||||||
|
generic-reload R
|
||||||
|
generic-copy c
|
||||||
|
generic-paste p ^V
|
||||||
|
generic-change-view TAB
|
||||||
|
generic-prev-view KEY_BTAB
|
||||||
|
generic-import i I
|
||||||
|
generic-export x X
|
||||||
|
generic-goto g G
|
||||||
|
generic-other-cmd o O
|
||||||
|
generic-config-menu C
|
||||||
|
generic-redraw ^R
|
||||||
|
generic-add-appt ^A
|
||||||
|
generic-add-todo ^T
|
||||||
|
generic-prev-day T ^H
|
||||||
|
generic-next-day t ^L
|
||||||
|
generic-prev-week W ^K
|
||||||
|
generic-next-week w
|
||||||
|
generic-prev-month M
|
||||||
|
generic-next-month m
|
||||||
|
generic-prev-year Y
|
||||||
|
generic-next-year y
|
||||||
|
generic-scroll-down ^N
|
||||||
|
generic-scroll-up ^P
|
||||||
|
generic-goto-today ^G
|
||||||
|
generic-command :
|
||||||
|
move-right l L RGT
|
||||||
|
move-left h H LFT
|
||||||
|
move-down j J DWN
|
||||||
|
move-up k K UP
|
||||||
|
start-of-week 0
|
||||||
|
end-of-week $
|
||||||
|
add-item a A
|
||||||
|
del-item d D
|
||||||
|
edit-item e E
|
||||||
|
view-item v V RET
|
||||||
|
pipe-item |
|
||||||
|
flag-item !
|
||||||
|
repeat r
|
||||||
|
edit-note n N
|
||||||
|
view-note >
|
||||||
|
raise-priority +
|
||||||
|
lower-priority -
|
||||||
@@ -0,0 +1,88 @@
|
|||||||
|
# Always-on Remote Control
|
||||||
|
|
||||||
|
Reference copy of a machine setup: Claude Code Remote Control running as its own system user `claude-rc`, so my
|
||||||
|
projects' read-only MCP servers (now: negsplit, ens-forecast) can be used from the Claude app on the phone. One user and one
|
||||||
|
session (`data`) for all projects. The user holds only read-only database logins; Bash runs sandboxed without
|
||||||
|
network and can't read them (only the MCP servers, which run outside the sandbox, do). Nothing secret in this
|
||||||
|
folder: the ntfy topic lives only in `/etc/claude-rc-notify.env`.
|
||||||
|
|
||||||
|
Needs `claude-code`, `bubblewrap`, `socat` and each project's MCP server installed. Per project:
|
||||||
|
|
||||||
|
- negsplit: the installed `negsplit` (with `python-mcp`) and the `garmin_ro` grants from its
|
||||||
|
`sql/garmin_ro_grants.sql`. A per-user query limit is a useful safety net (the session can lift it):
|
||||||
|
|
||||||
|
```
|
||||||
|
mariadb -u root -p -e "ALTER USER 'garmin_ro'@'localhost' WITH MAX_STATEMENT_TIME 30;"
|
||||||
|
```
|
||||||
|
- ens-forecast: the installed `ens-forecast-mcp` (with `python-mcp` and `python-mysqlclient`) and the `weather_ro`
|
||||||
|
grant from its `sql/weather_grants.sql`; the same safety net:
|
||||||
|
|
||||||
|
```
|
||||||
|
mariadb -u root -p -e "ALTER USER 'weather_ro'@'localhost' WITH MAX_STATEMENT_TIME 30;"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
Run from this folder. User and folders:
|
||||||
|
|
||||||
|
```
|
||||||
|
doas useradd --system --create-home --home-dir /var/lib/claude-rc --shell /usr/bin/nologin claude-rc
|
||||||
|
doas chmod 700 /var/lib/claude-rc
|
||||||
|
doas install -d -o claude-rc -g claude-rc -m 700 /var/lib/claude-rc/.config /var/lib/claude-rc/.claude /var/lib/claude-rc/data /var/lib/claude-rc/data/.claude
|
||||||
|
doas install -o claude-rc -g claude-rc -m 644 mcp.json /var/lib/claude-rc/data/.mcp.json
|
||||||
|
doas install -o claude-rc -g claude-rc -m 644 project-settings.json /var/lib/claude-rc/data/.claude/settings.json
|
||||||
|
doas install -o claude-rc -g claude-rc -m 644 user-settings.json /var/lib/claude-rc/.claude/settings.json
|
||||||
|
```
|
||||||
|
|
||||||
|
`strictAllowlist` must stay in the user settings: in project settings it has no effect.
|
||||||
|
|
||||||
|
Each project's config holds only a `[readonly]` section. negsplit (`garmin_ro`):
|
||||||
|
|
||||||
|
```
|
||||||
|
doas install -d -o claude-rc -g claude-rc -m 700 /var/lib/claude-rc/.config/negsplit
|
||||||
|
doas install -o claude-rc -g claude-rc -m 600 config.toml /var/lib/claude-rc/.config/negsplit/config.toml
|
||||||
|
```
|
||||||
|
|
||||||
|
ens-forecast (`weather_ro`): only the `[readonly]` section of my own config, so the password never shows:
|
||||||
|
|
||||||
|
```
|
||||||
|
doas install -d -o claude-rc -g claude-rc -m 700 /var/lib/claude-rc/.config/ens-forecast
|
||||||
|
awk '/^\[/ { keep = ($0 == "[readonly]") } keep' ~/.config/ens-forecast/config.toml | doas install -o claude-rc -g claude-rc -m 600 /dev/stdin /var/lib/claude-rc/.config/ens-forecast/config.toml
|
||||||
|
```
|
||||||
|
|
||||||
|
Log in, trust the folder and enable Remote Control once, interactively:
|
||||||
|
|
||||||
|
```
|
||||||
|
doas -u claude-rc sh -c 'cd /var/lib/claude-rc/data && exec claude auth login'
|
||||||
|
doas -u claude-rc sh -c 'cd /var/lib/claude-rc/data && exec claude'
|
||||||
|
doas -u claude-rc sh -c 'cd /var/lib/claude-rc/data && exec claude remote-control --name data --spawn session'
|
||||||
|
```
|
||||||
|
|
||||||
|
ntfy topic for the failure alert (subscribe to it on ntfy.sh), then the units:
|
||||||
|
|
||||||
|
```
|
||||||
|
doas sh -c 'umask 077; printf "NTFY_TOPIC=claude-rc-%s\n" "$(openssl rand -hex 16)" > /etc/claude-rc-notify.env'
|
||||||
|
doas install -m 644 claude-rc.service claude-rc-notify.service claude-rc-recover.service claude-rc-recover.timer -t /etc/systemd/system/
|
||||||
|
doas systemctl daemon-reload
|
||||||
|
doas systemctl enable --now claude-rc.service claude-rc-recover.timer
|
||||||
|
```
|
||||||
|
|
||||||
|
The service restarts with a growing delay (30 s to 10 min); after about 50 minutes of failures it gives up and
|
||||||
|
sends the alert. The timer restarts it every 3 hours if it gave up, so a long network outage doesn't stop it for
|
||||||
|
good. After upgrading a project's MCP server, or changing `mcp.json` or the settings, restart `claude-rc.service`
|
||||||
|
so phone sessions use the new version.
|
||||||
|
|
||||||
|
## Adding a project
|
||||||
|
|
||||||
|
Add its server to `mcp.json` and `mcp__<server>` to the `allow` list in `project-settings.json` (plus a `Read` rule
|
||||||
|
for its chart folder, if any), install its `[readonly]` config as above, reinstall the changed files and restart
|
||||||
|
the service.
|
||||||
|
|
||||||
|
## Dead login
|
||||||
|
|
||||||
|
```
|
||||||
|
doas systemctl stop claude-rc.service
|
||||||
|
doas -u claude-rc sh -c 'cd /var/lib/claude-rc/data && exec claude auth login'
|
||||||
|
doas systemctl reset-failed claude-rc.service
|
||||||
|
doas systemctl start claude-rc.service
|
||||||
|
```
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Notify via ntfy that Claude Remote Control stopped
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
DynamicUser=yes
|
||||||
|
# NTFY_TOPIC=...: root-only (0600), the topic is the only secret
|
||||||
|
EnvironmentFile=/etc/claude-rc-notify.env
|
||||||
|
TimeoutStartSec=10min
|
||||||
|
ExecStart=/usr/bin/curl -fsS -m 30 --retry 5 --retry-delay 60 --retry-all-errors \
|
||||||
|
-H "Title: Claude Remote Control stopped" -H "Tags: warning" \
|
||||||
|
-d "%H: claude-rc.service keeps failing (dead login?). Retried every 3 h; fix at home: claude auth login as claude-rc." \
|
||||||
|
https://ntfy.sh/${NTFY_TOPIC}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Restart Claude Remote Control if it gave up (e.g. after a long network outage)
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecCondition=/usr/bin/systemctl is-failed --quiet claude-rc.service
|
||||||
|
ExecStart=/usr/bin/systemctl reset-failed claude-rc.service
|
||||||
|
ExecStart=/usr/bin/systemctl start --no-block claude-rc.service
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Every 3 h, restart Claude Remote Control if it gave up
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=1h
|
||||||
|
OnUnitActiveSec=3h
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Claude Code Remote Control (read-only MCP servers)
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target mariadb.service
|
||||||
|
# about 50 min of failed starts (back-off below): give up and notify
|
||||||
|
StartLimitIntervalSec=1h
|
||||||
|
StartLimitBurst=8
|
||||||
|
OnFailure=claude-rc-notify.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=claude-rc
|
||||||
|
Group=claude-rc
|
||||||
|
WorkingDirectory=/var/lib/claude-rc/data
|
||||||
|
# strips credentials from subprocess environments; on Linux also sandboxes ! shell commands
|
||||||
|
Environment=CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1
|
||||||
|
ExecStart=/usr/bin/claude remote-control --name data --spawn session
|
||||||
|
Restart=always
|
||||||
|
RestartSec=30s
|
||||||
|
RestartSteps=4
|
||||||
|
RestartMaxDelaySec=10min
|
||||||
|
ProtectSystem=strict
|
||||||
|
ProtectHome=yes
|
||||||
|
ReadWritePaths=/var/lib/claude-rc
|
||||||
|
PrivateTmp=yes
|
||||||
|
NoNewPrivileges=yes
|
||||||
|
ProtectKernelTunables=yes
|
||||||
|
ProtectKernelModules=yes
|
||||||
|
ProtectControlGroups=yes
|
||||||
|
ProtectKernelLogs=yes
|
||||||
|
ProtectClock=yes
|
||||||
|
ProtectHostname=yes
|
||||||
|
CapabilityBoundingSet=
|
||||||
|
RestrictSUIDSGID=yes
|
||||||
|
RestrictRealtime=yes
|
||||||
|
LockPersonality=yes
|
||||||
|
# no RestrictNamespaces/MemoryDenyWriteExecute: the Bash sandbox (bubblewrap) needs user namespaces
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"mcpServers": {
|
||||||
|
"negsplit": {
|
||||||
|
"command": "negsplit",
|
||||||
|
"args": ["mcp"]
|
||||||
|
},
|
||||||
|
"ens-forecast": {
|
||||||
|
"command": "ens-forecast-mcp"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
{
|
||||||
|
"permissions": {
|
||||||
|
"defaultMode": "default",
|
||||||
|
"disableBypassPermissionsMode": "disable",
|
||||||
|
"disableAutoMode": "disable",
|
||||||
|
"allow": [
|
||||||
|
"mcp__negsplit",
|
||||||
|
"mcp__ens-forecast",
|
||||||
|
"Read(~/.local/share/negsplit/charts/**)"
|
||||||
|
],
|
||||||
|
"deny": [
|
||||||
|
"Read(~/.config/**)",
|
||||||
|
"Read(~/.claude/**)",
|
||||||
|
"Read(~/.claude.json)",
|
||||||
|
"Edit(~/.config/**)",
|
||||||
|
"Edit(~/.claude/**)",
|
||||||
|
"Edit(~/.claude.json)",
|
||||||
|
"Edit(./.claude/**)",
|
||||||
|
"Edit(./.mcp.json)",
|
||||||
|
"WebFetch",
|
||||||
|
"WebSearch"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"sandbox": {
|
||||||
|
"enabled": true,
|
||||||
|
"failIfUnavailable": true,
|
||||||
|
"allowUnsandboxedCommands": false,
|
||||||
|
"autoAllowBashIfSandboxed": true,
|
||||||
|
"filesystem": {
|
||||||
|
"denyRead": ["~/.config", "~/.claude", "~/.claude.json"],
|
||||||
|
"denyWrite": ["./.claude", "./.mcp.json"]
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"allowedDomains": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"theme": "dark",
|
||||||
|
"sandbox": {
|
||||||
|
"network": {
|
||||||
|
"strictAllowlist": true,
|
||||||
|
"allowedDomains": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,94 +0,0 @@
|
|||||||
-- Conky, a system monitor https://github.com/brndnmtthws/conky
|
|
||||||
--
|
|
||||||
-- This configuration file is Lua code. You can write code in here, and it will
|
|
||||||
-- execute when Conky loads. You can use it to generate your own advanced
|
|
||||||
-- configurations.
|
|
||||||
--
|
|
||||||
-- Try this (remove the `--`):
|
|
||||||
--
|
|
||||||
-- print("Loading Conky config")
|
|
||||||
--
|
|
||||||
-- For more on Lua, see:
|
|
||||||
-- https://www.lua.org/pil/contents.html
|
|
||||||
|
|
||||||
conky.config = {
|
|
||||||
alignment = 'top_right',
|
|
||||||
xinerama_head = 1,
|
|
||||||
background = false,
|
|
||||||
border_width = 1,
|
|
||||||
cpu_avg_samples = 2,
|
|
||||||
default_color = 'white',
|
|
||||||
default_outline_color = 'white',
|
|
||||||
default_shade_color = 'white',
|
|
||||||
double_buffer = true,
|
|
||||||
draw_borders = false,
|
|
||||||
draw_graph_borders = true,
|
|
||||||
draw_outline = false,
|
|
||||||
draw_shades = false,
|
|
||||||
extra_newline = false,
|
|
||||||
font = 'DejaVu Sans Mono:size=12',
|
|
||||||
gap_x = 60,
|
|
||||||
gap_y = 60,
|
|
||||||
minimum_height = 5,
|
|
||||||
minimum_width = 5,
|
|
||||||
net_avg_samples = 2,
|
|
||||||
no_buffers = true,
|
|
||||||
out_to_console = false,
|
|
||||||
out_to_ncurses = false,
|
|
||||||
out_to_stderr = false,
|
|
||||||
out_to_x = true,
|
|
||||||
own_window = true,
|
|
||||||
own_window_transparent = false,
|
|
||||||
own_window_argb_visual = true,
|
|
||||||
own_window_argb_value = 90,
|
|
||||||
own_window_class = 'Conky',
|
|
||||||
own_window_type = 'desktop',
|
|
||||||
show_graph_range = false,
|
|
||||||
show_graph_scale = false,
|
|
||||||
stippled_borders = 0,
|
|
||||||
update_interval = 1.0,
|
|
||||||
uppercase = false,
|
|
||||||
use_spacer = 'none',
|
|
||||||
use_xft = true,
|
|
||||||
}
|
|
||||||
|
|
||||||
conky.text = [[
|
|
||||||
${voffset 4}${color}${font :bold}ASUS TUF Gaming FX705GE${font}${image $HOME/.config/conky/archlinux.png -n -p 280x0 -s 98x30}
|
|
||||||
$hr
|
|
||||||
${color grey}OS : ${color}$sysname $kernel
|
|
||||||
${color grey}Uptime : ${color}$uptime
|
|
||||||
${voffset 8}${color}${font :size=14}CPU ${font}$hr
|
|
||||||
${voffset 4}${color grey}Model: ${color}${exec lscpu | grep 'Model name' | cut -f 2 -d ":" | awk '{$1=$1}1' | awk 'BEGIN {FS=" "; OFS=" "} {print $1 OFS $2 OFS $3}'}
|
|
||||||
${color grey}CPU Usage: ${color}$cpu% ${cpubar 4}
|
|
||||||
${color grey}Core 0: ${color}${alignr}${freq_g 1} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 0" | awk '{print $3}'}
|
|
||||||
${color grey}Core 1: ${color}${alignr}${freq_g 2} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 1" | awk '{print $3}'}
|
|
||||||
${color grey}Core 2: ${color}${alignr}${freq_g 3} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 2" | awk '{print $3}'}
|
|
||||||
${color grey}Core 3: ${color}${alignr}${freq_g 4} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 3" | awk '{print $3}'}
|
|
||||||
${color grey}Core 4: ${color}${alignr}${freq_g 5} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 4" | awk '{print $3}'}
|
|
||||||
${color grey}Core 5: ${color}${alignr}${freq_g 6} GHz ${color grey}Temperature: ${color}${execi 30 sensors | grep "Core 5" | awk '{print $3}'}
|
|
||||||
${voffset 4}${color grey}Process PID CPU% MEM%
|
|
||||||
${color} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
|
|
||||||
${color} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
|
|
||||||
${color} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
|
|
||||||
${voffset 6}${color}${font :size=14}GPU ${font}$hr
|
|
||||||
${voffset 4}${color grey}Model: ${color}${exec lspci | grep VGA | grep NVIDIA | cut -d[ -f2 | cut -d] -f1}
|
|
||||||
${color grey}Usage:${color}${execi 15 nvidia-smi -q -d UTILIZATION | grep Gpu | cut -d: -f2}
|
|
||||||
${color grey}Temperature: ${color}${execi 30 nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits}°C
|
|
||||||
${voffset 6}${font :size=14}MEMORY ${font}$hr
|
|
||||||
${voffset 4}${color grey}RAM usage: ${color}${memperc}% of ${memmax} ${voffset 3}${membar}${voffset -3}
|
|
||||||
${color grey}Swap usage: ${color}${swapperc}% of ${swapmax} ${voffset 3}${swapbar}${voffset -3}
|
|
||||||
${voffset 4}${color grey}Process PID CPU% MEM%
|
|
||||||
${color} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
|
|
||||||
${color} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
|
|
||||||
${color} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
|
|
||||||
${voffset 6}${color}${font :size=14}DISK ${font}$hr
|
|
||||||
${voffset 4}${color grey}Root: ${color}${fs_used /}/${fs_size /} ${voffset 3}${fs_bar 6 /}${voffset -3}
|
|
||||||
${color grey}EFI: ${color}${fs_used /efi}/${fs_size /efi} ${voffset 3}${fs_bar 6 /efi}${voffset -3}
|
|
||||||
${if_existing /sys/class/net/wlo1/operstate up}
|
|
||||||
${voffset -12}${font :size=14}NETWORK ${font}$hr
|
|
||||||
${voffset 4}${color grey}Net Down:${color} ${downspeed wlo1} ${goto 230}${color grey}Net Up:${color} ${upspeed wlo1}
|
|
||||||
${downspeedgraph wlo1 32,155 104E8B ffffff} ${goto 230}${upspeedgraph wlo1 32,155 104E8B ffffff}
|
|
||||||
${endif}
|
|
||||||
${voffset -24}${color}${font :size=14}UPDATES ${font}$hr
|
|
||||||
${voffset 4}${color grey}${alignc}Arch: ${color}${execi 1800 checkupdates | wc -l} ${color grey}AUR: ${color}${execi 1800 aur repo -u -d aur-local | wc -l}
|
|
||||||
]]
|
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
width = (300, 500)
|
width = (300, 500)
|
||||||
|
|
||||||
# The maximum height of a single notification, excluding the frame.
|
# The maximum height of a single notification, excluding the frame.
|
||||||
height = (0, 300)
|
height = (0, 600)
|
||||||
|
|
||||||
# Position the notification in the top right corner
|
# Position the notification in the top right corner
|
||||||
origin = top-right
|
origin = top-right
|
||||||
@@ -300,7 +300,7 @@
|
|||||||
# * context_all: Open context menu for all notifications.
|
# * context_all: Open context menu for all notifications.
|
||||||
# These values can be strung together for each mouse event, and
|
# These values can be strung together for each mouse event, and
|
||||||
# will be executed in sequence.
|
# will be executed in sequence.
|
||||||
mouse_left_click = close_current
|
mouse_left_click = do_action, close_current
|
||||||
mouse_middle_click = do_action, close_current
|
mouse_middle_click = do_action, close_current
|
||||||
mouse_right_click = close_all
|
mouse_right_click = close_all
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# Shared ccache dir, so host and chroot builds read the same $CCACHE_DIR/ccache.conf
|
||||||
|
set -gx CCACHE_DIR ~/.cache/ccache
|
||||||
@@ -9,10 +9,6 @@ if status is-interactive
|
|||||||
|
|
||||||
fastfetch
|
fastfetch
|
||||||
|
|
||||||
cookie
|
|
||||||
|
|
||||||
calcurse -d 7
|
|
||||||
|
|
||||||
starship init fish | source
|
starship init fish | source
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
[general]
|
||||||
|
inhibit_screensaver=1
|
||||||
|
renice=10
|
||||||
|
; performance gave no gain: the CPU is heat-limited at 95 °C either way
|
||||||
|
desiredgov=powersave
|
||||||
@@ -13,4 +13,4 @@ gtk-enable-event-sounds=1
|
|||||||
gtk-enable-input-feedback-sounds=1
|
gtk-enable-input-feedback-sounds=1
|
||||||
gtk-xft-antialias=1
|
gtk-xft-antialias=1
|
||||||
gtk-xft-hinting=1
|
gtk-xft-hinting=1
|
||||||
gtk-xft-hintstyle=hintfull
|
gtk-xft-hintstyle=hintmedium
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
# vim:ft=kitty
|
||||||
|
|
||||||
|
## name: Catppuccin-Frappe
|
||||||
|
## author: Pocco81 (https://github.com/Pocco81)
|
||||||
|
## license: MIT
|
||||||
|
## upstream: https://github.com/catppuccin/kitty/blob/main/frappe.conf
|
||||||
|
## blurb: Soothing pastel theme for the high-spirited!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# The basic colors
|
||||||
|
foreground #C6D0F5
|
||||||
|
background #303446
|
||||||
|
selection_foreground #303446
|
||||||
|
selection_background #F2D5CF
|
||||||
|
|
||||||
|
# Cursor colors
|
||||||
|
cursor #F2D5CF
|
||||||
|
cursor_text_color #303446
|
||||||
|
|
||||||
|
# URL underline color when hovering with mouse
|
||||||
|
url_color #F2D5CF
|
||||||
|
|
||||||
|
# Kitty window border colors
|
||||||
|
active_border_color #BABBF1
|
||||||
|
inactive_border_color #737994
|
||||||
|
bell_border_color #E5C890
|
||||||
|
|
||||||
|
# OS Window titlebar colors
|
||||||
|
wayland_titlebar_color system
|
||||||
|
macos_titlebar_color system
|
||||||
|
|
||||||
|
# Tab bar colors
|
||||||
|
active_tab_foreground #232634
|
||||||
|
active_tab_background #CA9EE6
|
||||||
|
inactive_tab_foreground #C6D0F5
|
||||||
|
inactive_tab_background #292C3C
|
||||||
|
tab_bar_background #232634
|
||||||
|
|
||||||
|
# Colors for marks (marked text in the terminal)
|
||||||
|
mark1_foreground #303446
|
||||||
|
mark1_background #BABBF1
|
||||||
|
mark2_foreground #303446
|
||||||
|
mark2_background #CA9EE6
|
||||||
|
mark3_foreground #303446
|
||||||
|
mark3_background #85C1DC
|
||||||
|
|
||||||
|
# The 16 terminal colors
|
||||||
|
|
||||||
|
# black
|
||||||
|
color0 #51576D
|
||||||
|
color8 #626880
|
||||||
|
|
||||||
|
# red
|
||||||
|
color1 #E78284
|
||||||
|
color9 #E78284
|
||||||
|
|
||||||
|
# green
|
||||||
|
color2 #A6D189
|
||||||
|
color10 #A6D189
|
||||||
|
|
||||||
|
# yellow
|
||||||
|
color3 #E5C890
|
||||||
|
color11 #E5C890
|
||||||
|
|
||||||
|
# blue
|
||||||
|
color4 #8CAAEE
|
||||||
|
color12 #8CAAEE
|
||||||
|
|
||||||
|
# magenta
|
||||||
|
color5 #F4B8E4
|
||||||
|
color13 #F4B8E4
|
||||||
|
|
||||||
|
# cyan
|
||||||
|
color6 #81C8BE
|
||||||
|
color14 #81C8BE
|
||||||
|
|
||||||
|
# white
|
||||||
|
color7 #B5BFE2
|
||||||
|
color15 #A5ADCE
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
# vim:ft=kitty
|
||||||
|
|
||||||
|
## name: Catppuccin-Mocha
|
||||||
|
## author: Pocco81 (https://github.com/Pocco81)
|
||||||
|
## license: MIT
|
||||||
|
## upstream: https://github.com/catppuccin/kitty/blob/main/mocha.conf
|
||||||
|
## blurb: Soothing pastel theme for the high-spirited!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# The basic colors
|
||||||
|
foreground #CDD6F4
|
||||||
|
background #1E1E2E
|
||||||
|
selection_foreground #1E1E2E
|
||||||
|
selection_background #F5E0DC
|
||||||
|
|
||||||
|
# Cursor colors
|
||||||
|
cursor #F5E0DC
|
||||||
|
cursor_text_color #1E1E2E
|
||||||
|
|
||||||
|
# URL underline color when hovering with mouse
|
||||||
|
url_color #F5E0DC
|
||||||
|
|
||||||
|
# Kitty window border colors
|
||||||
|
active_border_color #B4BEFE
|
||||||
|
inactive_border_color #6C7086
|
||||||
|
bell_border_color #F9E2AF
|
||||||
|
|
||||||
|
# OS Window titlebar colors
|
||||||
|
wayland_titlebar_color system
|
||||||
|
macos_titlebar_color system
|
||||||
|
|
||||||
|
# Tab bar colors
|
||||||
|
active_tab_foreground #11111B
|
||||||
|
active_tab_background #CBA6F7
|
||||||
|
inactive_tab_foreground #CDD6F4
|
||||||
|
inactive_tab_background #181825
|
||||||
|
tab_bar_background #11111B
|
||||||
|
|
||||||
|
# Colors for marks (marked text in the terminal)
|
||||||
|
mark1_foreground #1E1E2E
|
||||||
|
mark1_background #B4BEFE
|
||||||
|
mark2_foreground #1E1E2E
|
||||||
|
mark2_background #CBA6F7
|
||||||
|
mark3_foreground #1E1E2E
|
||||||
|
mark3_background #74C7EC
|
||||||
|
|
||||||
|
# The 16 terminal colors
|
||||||
|
|
||||||
|
# black
|
||||||
|
color0 #45475A
|
||||||
|
color8 #585B70
|
||||||
|
|
||||||
|
# red
|
||||||
|
color1 #F38BA8
|
||||||
|
color9 #F38BA8
|
||||||
|
|
||||||
|
# green
|
||||||
|
color2 #A6E3A1
|
||||||
|
color10 #A6E3A1
|
||||||
|
|
||||||
|
# yellow
|
||||||
|
color3 #F9E2AF
|
||||||
|
color11 #F9E2AF
|
||||||
|
|
||||||
|
# blue
|
||||||
|
color4 #89B4FA
|
||||||
|
color12 #89B4FA
|
||||||
|
|
||||||
|
# magenta
|
||||||
|
color5 #F5C2E7
|
||||||
|
color13 #F5C2E7
|
||||||
|
|
||||||
|
# cyan
|
||||||
|
color6 #94E2D5
|
||||||
|
color14 #94E2D5
|
||||||
|
|
||||||
|
# white
|
||||||
|
color7 #BAC2DE
|
||||||
|
color15 #A6ADC8
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
# vim:ft=kitty
|
||||||
|
## name: Dracula
|
||||||
|
## author: Keegan Carruthers-Smith
|
||||||
|
## license: MIT
|
||||||
|
## upstream: https://raw.githubusercontent.com/dracula/kitty/master/dracula.conf
|
||||||
|
|
||||||
|
foreground #f8f8f2
|
||||||
|
background #282a36
|
||||||
|
selection_foreground #ffffff
|
||||||
|
selection_background #44475a
|
||||||
|
url_color #8be9fd
|
||||||
|
color0 #21222c
|
||||||
|
color8 #6272a4
|
||||||
|
color1 #ff5555
|
||||||
|
color9 #ff6e6e
|
||||||
|
color2 #50fa7b
|
||||||
|
color10 #69ff94
|
||||||
|
color3 #f1fa8c
|
||||||
|
color11 #ffffa5
|
||||||
|
color4 #bd93f9
|
||||||
|
color12 #d6acff
|
||||||
|
color5 #ff79c6
|
||||||
|
color13 #ff92df
|
||||||
|
color6 #8be9fd
|
||||||
|
color14 #a4ffff
|
||||||
|
color7 #f8f8f2
|
||||||
|
color15 #ffffff
|
||||||
|
cursor #f8f8f2
|
||||||
|
cursor_text_color background
|
||||||
|
active_tab_foreground #282a36
|
||||||
|
active_tab_background #f8f8f2
|
||||||
|
inactive_tab_foreground #282a36
|
||||||
|
inactive_tab_background #6272a4
|
||||||
|
mark1_foreground #282a36
|
||||||
|
mark1_background #ff5555
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
# Theme ported from the Mac Terminal application.
|
||||||
|
|
||||||
|
background #323232
|
||||||
|
foreground #ffffff
|
||||||
|
cursor #d6d6d6
|
||||||
|
selection_background #5b5b5b
|
||||||
|
selection_foreground #323232
|
||||||
|
color0 #353535
|
||||||
|
color8 #535353
|
||||||
|
color1 #d25252
|
||||||
|
color9 #f00c0c
|
||||||
|
color2 #a4c161
|
||||||
|
color10 #c1df74
|
||||||
|
color3 #ffc56d
|
||||||
|
color11 #e1e48a
|
||||||
|
color4 #6c99ba
|
||||||
|
color12 #8ab6d9
|
||||||
|
color5 #d096d9
|
||||||
|
color13 #efb5f7
|
||||||
|
color6 #bdd6ff
|
||||||
|
color14 #dbf4ff
|
||||||
|
color7 #ededec
|
||||||
|
color15 #ffffff
|
||||||
|
active_tab_foreground #ffffff
|
||||||
|
active_tab_background #535353
|
||||||
|
inactive_tab_foreground #ffffff
|
||||||
|
inactive_tab_background #353535
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
# vim:ft=kitty
|
||||||
|
## name: Everforest Dark Hard
|
||||||
|
## author: Sainnhe Park
|
||||||
|
## license: MIT
|
||||||
|
## upstream: https://github.com/ewal/kitty-everforest/blob/master/themes/everforest_dark_hard.conf
|
||||||
|
## blurb: A green based color scheme designed to be warm and soft
|
||||||
|
|
||||||
|
foreground #d3c6aa
|
||||||
|
background #272e33
|
||||||
|
selection_foreground #9da9a0
|
||||||
|
selection_background #464e53
|
||||||
|
|
||||||
|
cursor #d3c6aa
|
||||||
|
cursor_text_color #2e383c
|
||||||
|
|
||||||
|
url_color #7fbbb3
|
||||||
|
|
||||||
|
active_border_color #a7c080
|
||||||
|
inactive_border_color #4f5b58
|
||||||
|
bell_border_color #e69875
|
||||||
|
visual_bell_color none
|
||||||
|
|
||||||
|
wayland_titlebar_color system
|
||||||
|
macos_titlebar_color system
|
||||||
|
|
||||||
|
active_tab_background #272e33
|
||||||
|
active_tab_foreground #d3c6aa
|
||||||
|
inactive_tab_background #374145
|
||||||
|
inactive_tab_foreground #9da9a0
|
||||||
|
tab_bar_background #2e383c
|
||||||
|
tab_bar_margin_color none
|
||||||
|
|
||||||
|
mark1_foreground #272e33
|
||||||
|
mark1_background #7fbbb3
|
||||||
|
mark2_foreground #272e33
|
||||||
|
mark2_background #d3c6aa
|
||||||
|
mark3_foreground #272e33
|
||||||
|
mark3_background #d699b6
|
||||||
|
|
||||||
|
#: black
|
||||||
|
color0 #343f44
|
||||||
|
color8 #868d80
|
||||||
|
|
||||||
|
#: red
|
||||||
|
color1 #e67e80
|
||||||
|
color9 #e67e80
|
||||||
|
|
||||||
|
#: green
|
||||||
|
color2 #a7c080
|
||||||
|
color10 #a7c080
|
||||||
|
|
||||||
|
#: yellow
|
||||||
|
color3 #dbbc7f
|
||||||
|
color11 #dbbc7f
|
||||||
|
|
||||||
|
#: blue
|
||||||
|
color4 #7fbbb3
|
||||||
|
color12 #7fbbb3
|
||||||
|
|
||||||
|
#: magenta
|
||||||
|
color5 #d699b6
|
||||||
|
color13 #d699b6
|
||||||
|
|
||||||
|
#: cyan
|
||||||
|
color6 #83c092
|
||||||
|
color14 #83c092
|
||||||
|
|
||||||
|
#: white
|
||||||
|
color7 #859289
|
||||||
|
color15 #9da9a0
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
# vim:ft=kitty
|
||||||
|
|
||||||
|
## name: Tokyo Night Storm
|
||||||
|
## license: MIT
|
||||||
|
## author: Folke Lemaitre
|
||||||
|
## upstream: https://github.com/folke/tokyonight.nvim/raw/main/extras/kitty/tokyonight_storm.conf
|
||||||
|
|
||||||
|
|
||||||
|
background #24283b
|
||||||
|
foreground #c0caf5
|
||||||
|
selection_background #2e3c64
|
||||||
|
selection_foreground #c0caf5
|
||||||
|
url_color #73daca
|
||||||
|
cursor #c0caf5
|
||||||
|
cursor_text_color #24283b
|
||||||
|
|
||||||
|
# Tabs
|
||||||
|
active_tab_background #7aa2f7
|
||||||
|
active_tab_foreground #1f2335
|
||||||
|
inactive_tab_background #292e42
|
||||||
|
inactive_tab_foreground #545c7e
|
||||||
|
#tab_bar_background #1d202f
|
||||||
|
|
||||||
|
# Windows
|
||||||
|
active_border_color #7aa2f7
|
||||||
|
inactive_border_color #292e42
|
||||||
|
|
||||||
|
# normal
|
||||||
|
color0 #1d202f
|
||||||
|
color1 #f7768e
|
||||||
|
color2 #9ece6a
|
||||||
|
color3 #e0af68
|
||||||
|
color4 #7aa2f7
|
||||||
|
color5 #bb9af7
|
||||||
|
color6 #7dcfff
|
||||||
|
color7 #a9b1d6
|
||||||
|
|
||||||
|
# bright
|
||||||
|
color8 #414868
|
||||||
|
color9 #f7768e
|
||||||
|
color10 #9ece6a
|
||||||
|
color11 #e0af68
|
||||||
|
color12 #7aa2f7
|
||||||
|
color13 #bb9af7
|
||||||
|
color14 #7dcfff
|
||||||
|
color15 #c0caf5
|
||||||
|
|
||||||
|
# extended colors
|
||||||
|
color16 #ff9e64
|
||||||
|
color17 #db4b4b
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -36,6 +36,7 @@ set cleaner ~/.config/lf/lf_kitty_clean
|
|||||||
# text files and a file opener for the rest.
|
# text files and a file opener for the rest.
|
||||||
cmd open &{{
|
cmd open &{{
|
||||||
case $(file --mime-type -Lb $f) in
|
case $(file --mime-type -Lb $f) in
|
||||||
|
text/html) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;;
|
||||||
text/*) lf -remote "send $id \$$EDITOR \$fx";;
|
text/*) lf -remote "send $id \$$EDITOR \$fx";;
|
||||||
application/json) lf -remote "send $id \$$EDITOR \$fx";;
|
application/json) lf -remote "send $id \$$EDITOR \$fx";;
|
||||||
video/*) movie $fx > /dev/null 2> /dev/null;;
|
video/*) movie $fx > /dev/null 2> /dev/null;;
|
||||||
|
|||||||
@@ -0,0 +1,135 @@
|
|||||||
|
[Default Applications]
|
||||||
|
inode/directory=nemo.desktop
|
||||||
|
image/avif=viewnior.desktop
|
||||||
|
image/bmp=viewnior.desktop
|
||||||
|
image/gif=viewnior.desktop
|
||||||
|
image/heif=viewnior.desktop
|
||||||
|
image/jpeg=viewnior.desktop
|
||||||
|
image/jpg=viewnior.desktop
|
||||||
|
image/pjpeg=viewnior.desktop
|
||||||
|
image/png=viewnior.desktop
|
||||||
|
image/svg+xml=viewnior.desktop
|
||||||
|
image/svg+xml-compressed=viewnior.desktop
|
||||||
|
image/tiff=viewnior.desktop
|
||||||
|
image/vnd.wap.wbmp=viewnior.desktop
|
||||||
|
image/webp=viewnior.desktop
|
||||||
|
image/x-bmp=viewnior.desktop
|
||||||
|
image/x-gray=viewnior.desktop
|
||||||
|
image/x-icb=viewnior.desktop
|
||||||
|
image/x-ico=viewnior.desktop
|
||||||
|
image/x-pcx=viewnior.desktop
|
||||||
|
image/x-png=viewnior.desktop
|
||||||
|
image/x-portable-anymap=viewnior.desktop
|
||||||
|
image/x-portable-bitmap=viewnior.desktop
|
||||||
|
image/x-portable-graymap=viewnior.desktop
|
||||||
|
image/x-portable-pixmap=viewnior.desktop
|
||||||
|
image/x-xbitmap=viewnior.desktop
|
||||||
|
image/x-xpixmap=viewnior.desktop
|
||||||
|
x-scheme-handler/http=zen.desktop
|
||||||
|
x-scheme-handler/https=zen.desktop
|
||||||
|
application/pdf=xreader.desktop
|
||||||
|
application/javascript=vim.desktop
|
||||||
|
application/x-httpd-php3=vim.desktop
|
||||||
|
application/x-httpd-php4=vim.desktop
|
||||||
|
application/x-httpd-php5=vim.desktop
|
||||||
|
application/x-m4=vim.desktop
|
||||||
|
application/x-php=vim.desktop
|
||||||
|
application/x-ruby=vim.desktop
|
||||||
|
application/x-shellscript=vim.desktop
|
||||||
|
application/xml=vim.desktop
|
||||||
|
text/css=vim.desktop
|
||||||
|
text/turtle=vim.desktop
|
||||||
|
text/x-c++hdr=vim.desktop
|
||||||
|
text/x-c++src=vim.desktop
|
||||||
|
text/x-chdr=vim.desktop
|
||||||
|
text/x-csharp=vim.desktop
|
||||||
|
text/x-csrc=vim.desktop
|
||||||
|
text/x-diff=vim.desktop
|
||||||
|
text/x-dsrc=vim.desktop
|
||||||
|
text/x-fortran=vim.desktop
|
||||||
|
text/x-java=vim.desktop
|
||||||
|
text/x-makefile=vim.desktop
|
||||||
|
text/x-pascal=vim.desktop
|
||||||
|
text/x-perl=vim.desktop
|
||||||
|
text/x-python=vim.desktop
|
||||||
|
text/x-sql=vim.desktop
|
||||||
|
text/x-vb=vim.desktop
|
||||||
|
text/yaml=vim.desktop
|
||||||
|
text/plain=xed.desktop
|
||||||
|
x-scheme-handler/chrome=zen.desktop
|
||||||
|
text/html=zen.desktop
|
||||||
|
application/x-extension-htm=zen.desktop
|
||||||
|
application/x-extension-html=zen.desktop
|
||||||
|
application/x-extension-shtml=zen.desktop
|
||||||
|
application/xhtml+xml=zen.desktop
|
||||||
|
application/x-extension-xhtml=zen.desktop
|
||||||
|
application/x-extension-xht=zen.desktop
|
||||||
|
x-scheme-handler/freetube=freetube.desktop
|
||||||
|
x-scheme-handler/claude-cli=claude-code-url-handler.desktop
|
||||||
|
|
||||||
|
[Added Associations]
|
||||||
|
inode/directory=nemo.desktop;
|
||||||
|
image/avif=viewnior.desktop;
|
||||||
|
image/bmp=viewnior.desktop;
|
||||||
|
image/gif=viewnior.desktop;
|
||||||
|
image/heif=viewnior.desktop;
|
||||||
|
image/jpeg=viewnior.desktop;
|
||||||
|
image/jpg=viewnior.desktop;
|
||||||
|
image/pjpeg=viewnior.desktop;
|
||||||
|
image/png=viewnior.desktop;
|
||||||
|
image/svg+xml=viewnior.desktop;
|
||||||
|
image/svg+xml-compressed=viewnior.desktop;
|
||||||
|
image/tiff=viewnior.desktop;
|
||||||
|
image/vnd.wap.wbmp=viewnior.desktop;
|
||||||
|
image/webp=viewnior.desktop;
|
||||||
|
image/x-bmp=viewnior.desktop;
|
||||||
|
image/x-gray=viewnior.desktop;
|
||||||
|
image/x-icb=viewnior.desktop;
|
||||||
|
image/x-ico=viewnior.desktop;
|
||||||
|
image/x-pcx=viewnior.desktop;
|
||||||
|
image/x-png=viewnior.desktop;
|
||||||
|
image/x-portable-anymap=viewnior.desktop;
|
||||||
|
image/x-portable-bitmap=viewnior.desktop;
|
||||||
|
image/x-portable-graymap=viewnior.desktop;
|
||||||
|
image/x-portable-pixmap=viewnior.desktop;
|
||||||
|
image/x-xbitmap=viewnior.desktop;
|
||||||
|
image/x-xpixmap=viewnior.desktop;
|
||||||
|
x-scheme-handler/http=zen.desktop;vivaldi-stable.desktop;
|
||||||
|
application/pdf=libreoffice-draw.desktop;xreader.desktop;
|
||||||
|
text/x-python=vim.desktop;
|
||||||
|
application/javascript=vim.desktop;
|
||||||
|
application/x-httpd-php3=vim.desktop;
|
||||||
|
application/x-httpd-php4=vim.desktop;
|
||||||
|
application/x-httpd-php5=vim.desktop;
|
||||||
|
application/x-m4=vim.desktop;
|
||||||
|
application/x-php=vim.desktop;
|
||||||
|
application/x-ruby=vim.desktop;
|
||||||
|
application/x-shellscript=vim.desktop;
|
||||||
|
application/xml=vim.desktop;
|
||||||
|
text/css=vim.desktop;
|
||||||
|
text/turtle=vim.desktop;
|
||||||
|
text/x-c++hdr=vim.desktop;
|
||||||
|
text/x-c++src=vim.desktop;
|
||||||
|
text/x-chdr=vim.desktop;
|
||||||
|
text/x-csharp=vim.desktop;
|
||||||
|
text/x-csrc=vim.desktop;
|
||||||
|
text/x-diff=vim.desktop;
|
||||||
|
text/x-dsrc=vim.desktop;
|
||||||
|
text/x-fortran=vim.desktop;
|
||||||
|
text/x-java=vim.desktop;
|
||||||
|
text/x-makefile=vim.desktop;
|
||||||
|
text/x-pascal=vim.desktop;
|
||||||
|
text/x-perl=vim.desktop;
|
||||||
|
text/x-sql=vim.desktop;
|
||||||
|
text/x-vb=vim.desktop;
|
||||||
|
text/yaml=vim.desktop;
|
||||||
|
text/plain=xed.desktop;
|
||||||
|
x-scheme-handler/https=zen.desktop;
|
||||||
|
x-scheme-handler/chrome=zen.desktop;
|
||||||
|
text/html=zen.desktop;
|
||||||
|
application/x-extension-htm=zen.desktop;
|
||||||
|
application/x-extension-html=zen.desktop;
|
||||||
|
application/x-extension-shtml=zen.desktop;
|
||||||
|
application/xhtml+xml=zen.desktop;
|
||||||
|
application/x-extension-xhtml=zen.desktop;
|
||||||
|
application/x-extension-xht=zen.desktop;
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
# For documentation, see the manpage for modprobed-db
|
||||||
|
|
||||||
|
# Path where database will reside.
|
||||||
|
# Do NOT use a variable in the following path like $HOME
|
||||||
|
# You MUST use a fully qualified path or else invoking the script via sudo
|
||||||
|
# will trick it into thinking that the db is in /root/foo/bar
|
||||||
|
DBPATH="/home/fuxino/.local/share/modprobed-db"
|
||||||
|
|
||||||
|
# Define the background of your terminal theme here.
|
||||||
|
# A setting of dark will produce colors that nicely contrast a dark background.
|
||||||
|
# A setting of light will produce colors that nicely contrast a light background.
|
||||||
|
COLORS=dark
|
||||||
|
#COLORS=light
|
||||||
|
|
||||||
|
|
||||||
|
# Add modules in the ignore array that you do NOT want counted, for example out-of-tree
|
||||||
|
# modules and those provided by another package.
|
||||||
|
#
|
||||||
|
# For Arch Linux, some examples are given below but this is not a fully inclusive list.
|
||||||
|
|
||||||
|
IGNORE=(nvidia nvidia_drm nvidia_modeset nvidia_uvm vboxdrv vboxnetadp vboxnetflt vboxpci)
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
# Copy this to /etc/mpDris2.conf or ~/.config/mpDris2/mpDris2.conf
|
||||||
|
# Default values are shown here, commented out.
|
||||||
|
|
||||||
|
[Connection]
|
||||||
|
# You can also export $MPD_HOST and/or $MPD_PORT to change the server.
|
||||||
|
#host = localhost
|
||||||
|
#port = 6600
|
||||||
|
#password =
|
||||||
|
|
||||||
|
[Library]
|
||||||
|
#music_dir =
|
||||||
|
#cover_regex = ^(album|cover|\.?folder|front).*\.(gif|jpeg|jpg|png)$
|
||||||
|
|
||||||
|
[Bling]
|
||||||
|
#mmkeys = True
|
||||||
|
notify = False
|
||||||
|
# Urgency of the notification: 0 for low, 1 for medium and 2 for high.
|
||||||
|
#notify_urgency = 0
|
||||||
+20
-416
@@ -1,425 +1,29 @@
|
|||||||
# An example configuration file for MPD.
|
music_directory "~/Music"
|
||||||
# Read the user manual for documentation: http://www.musicpd.org/doc/user/
|
playlist_directory "~/.local/share/mpd/playlists"
|
||||||
|
db_file "~/.local/share/mpd/database"
|
||||||
|
state_file "~/.local/share/mpd/state"
|
||||||
|
sticker_file "~/.local/share/mpd/sticker.sql"
|
||||||
|
|
||||||
|
bind_to_address "127.0.0.1"
|
||||||
|
bind_to_address "~/.local/share/mpd/socket"
|
||||||
|
|
||||||
# Files and directories #######################################################
|
restore_paused "yes"
|
||||||
#
|
auto_update "yes"
|
||||||
# This setting controls the top directory which MPD will search to discover the
|
replaygain "auto"
|
||||||
# available audio files and add them to the daemon's online database. This
|
|
||||||
# setting defaults to the XDG directory, otherwise the music directory will be
|
|
||||||
# be disabled and audio files will only be accepted over ipc socket (using
|
|
||||||
# file:// protocol) or streaming files over an accepted protocol.
|
|
||||||
#
|
|
||||||
music_directory "~/Music"
|
|
||||||
#
|
|
||||||
# This setting sets the MPD internal playlist directory. The purpose of this
|
|
||||||
# directory is storage for playlists created by MPD. The server will use
|
|
||||||
# playlist files not created by the server but only if they are in the MPD
|
|
||||||
# format. This setting defaults to playlist saving being disabled.
|
|
||||||
#
|
|
||||||
playlist_directory "~/.local/share/mpd/playlists"
|
|
||||||
#
|
|
||||||
# This setting sets the location of the MPD database. This file is used to
|
|
||||||
# load the database at server start up and store the database while the
|
|
||||||
# server is not up. This setting defaults to disabled which will allow
|
|
||||||
# MPD to accept files over ipc socket (using file:// protocol) or streaming
|
|
||||||
# files over an accepted protocol.
|
|
||||||
#
|
|
||||||
db_file "~/.local/share/mpd/database"
|
|
||||||
#
|
|
||||||
# These settings are the locations for the daemon log files for the daemon.
|
|
||||||
# These logs are great for troubleshooting, depending on your log_level
|
|
||||||
# settings.
|
|
||||||
#
|
|
||||||
# The special value "syslog" makes MPD use the local syslog daemon. This
|
|
||||||
# setting defaults to logging to syslog, otherwise logging is disabled.
|
|
||||||
#
|
|
||||||
#log_file "~/.config/mpd/log"
|
|
||||||
#
|
|
||||||
# This setting sets the location of the file which stores the process ID
|
|
||||||
# for use of mpd --kill and some init scripts. This setting is disabled by
|
|
||||||
# default and the pid file will not be stored.
|
|
||||||
#
|
|
||||||
#pid_file "~/.config/mpd/pid"
|
|
||||||
#
|
|
||||||
# This setting sets the location of the file which contains information about
|
|
||||||
# most variables to get MPD back into the same general shape it was in before
|
|
||||||
# it was brought down. This setting is disabled by default and the server
|
|
||||||
# state will be reset on server start up.
|
|
||||||
#
|
|
||||||
state_file "~/.local/share/mpd/state"
|
|
||||||
#
|
|
||||||
# The location of the sticker database. This is a database which
|
|
||||||
# manages dynamic information attached to songs.
|
|
||||||
#
|
|
||||||
sticker_file "~/.local/share/mpd/sticker.sql"
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
# General music daemon options ################################################
|
|
||||||
#
|
|
||||||
# This setting specifies the user that MPD will run as. MPD should never run as
|
|
||||||
# root and you may use this setting to make MPD change its user ID after
|
|
||||||
# initialization. This setting is disabled by default and MPD is run as the
|
|
||||||
# current user.
|
|
||||||
#
|
|
||||||
#user "nobody"
|
|
||||||
#
|
|
||||||
# This setting specifies the group that MPD will run as. If not specified
|
|
||||||
# primary group of user specified with "user" setting will be used (if set).
|
|
||||||
# This is useful if MPD needs to be a member of group such as "audio" to
|
|
||||||
# have permission to use sound card.
|
|
||||||
#
|
|
||||||
#group "nogroup"
|
|
||||||
#
|
|
||||||
# This setting sets the address for the daemon to listen on. Careful attention
|
|
||||||
# should be paid if this is assigned to anything other then the default, any.
|
|
||||||
# This setting can deny access to control of the daemon.
|
|
||||||
#
|
|
||||||
# For network
|
|
||||||
bind_to_address "127.0.0.1"
|
|
||||||
#
|
|
||||||
# And for Unix Socket
|
|
||||||
bind_to_address "~/.local/share/mpd/socket"
|
|
||||||
#
|
|
||||||
# This setting is the TCP port that is desired for the daemon to get assigned
|
|
||||||
# to.
|
|
||||||
#
|
|
||||||
#port "6600"
|
|
||||||
#
|
|
||||||
# This setting controls the type of information which is logged. Available
|
|
||||||
# setting arguments are "default", "secure" or "verbose". The "verbose" setting
|
|
||||||
# argument is recommended for troubleshooting, though can quickly stretch
|
|
||||||
# available resources on limited hardware storage.
|
|
||||||
#
|
|
||||||
#log_level "default"
|
|
||||||
#
|
|
||||||
# If you have a problem with your MP3s ending abruptly it is recommended that
|
|
||||||
# you set this argument to "no" to attempt to fix the problem. If this solves
|
|
||||||
# the problem, it is highly recommended to fix the MP3 files with vbrfix
|
|
||||||
# (available from <http://www.willwap.co.uk/Programs/vbrfix.php>), at which
|
|
||||||
# point gapless MP3 playback can be enabled.
|
|
||||||
#
|
|
||||||
#gapless_mp3_playback "yes"
|
|
||||||
#
|
|
||||||
# Setting "restore_paused" to "yes" puts MPD into pause mode instead
|
|
||||||
# of starting playback after startup.
|
|
||||||
#
|
|
||||||
restore_paused "yes"
|
|
||||||
#
|
|
||||||
# This setting enables MPD to create playlists in a format usable by other
|
|
||||||
# music players.
|
|
||||||
#
|
|
||||||
#save_absolute_paths_in_playlists "no"
|
|
||||||
#
|
|
||||||
# This setting defines a list of tag types that will be extracted during the
|
|
||||||
# audio file discovery process. The complete list of possible values can be
|
|
||||||
# found in the mpd.conf man page.
|
|
||||||
#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
|
|
||||||
#
|
|
||||||
# This setting enables automatic update of MPD's database when files in
|
|
||||||
# music_directory are changed.
|
|
||||||
#
|
|
||||||
auto_update "yes"
|
|
||||||
#
|
|
||||||
# Limit the depth of the directories being watched, 0 means only watch
|
|
||||||
# the music directory itself. There is no limit by default.
|
|
||||||
#
|
|
||||||
#auto_update_depth "3"
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
# Symbolic link behavior ######################################################
|
|
||||||
#
|
|
||||||
# If this setting is set to "yes", MPD will discover audio files by following
|
|
||||||
# symbolic links outside of the configured music_directory.
|
|
||||||
#
|
|
||||||
#follow_outside_symlinks "yes"
|
|
||||||
#
|
|
||||||
# If this setting is set to "yes", MPD will discover audio files by following
|
|
||||||
# symbolic links inside of the configured music_directory.
|
|
||||||
#
|
|
||||||
#follow_inside_symlinks "yes"
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
# Zeroconf / Avahi Service Discovery ##########################################
|
|
||||||
#
|
|
||||||
# If this setting is set to "yes", service information will be published with
|
|
||||||
# Zeroconf / Avahi.
|
|
||||||
#
|
|
||||||
#zeroconf_enabled "yes"
|
|
||||||
#
|
|
||||||
# The argument to this setting will be the Zeroconf / Avahi unique name for
|
|
||||||
# this MPD server on the network.
|
|
||||||
#
|
|
||||||
#zeroconf_name "Music Player"
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
# Permissions #################################################################
|
|
||||||
#
|
|
||||||
# If this setting is set, MPD will require password authorization. The password
|
|
||||||
# can setting can be specified multiple times for different password profiles.
|
|
||||||
#
|
|
||||||
#password "password@read,add,control,admin"
|
|
||||||
#
|
|
||||||
# This setting specifies the permissions a user has who has not yet logged in.
|
|
||||||
#
|
|
||||||
#default_permissions "read,add,control,admin"
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
# Database #######################################################################
|
|
||||||
#
|
|
||||||
|
|
||||||
#database {
|
|
||||||
# plugin "proxy"
|
|
||||||
# host "other.mpd.host"
|
|
||||||
# port "6600"
|
|
||||||
#}
|
|
||||||
|
|
||||||
# Input #######################################################################
|
|
||||||
#
|
|
||||||
|
|
||||||
input {
|
input {
|
||||||
plugin "curl"
|
plugin "curl"
|
||||||
# proxy "proxy.isp.com:8080"
|
|
||||||
# proxy_user "user"
|
|
||||||
# proxy_password "password"
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
# Audio Output ################################################################
|
|
||||||
#
|
|
||||||
# MPD supports various audio output types, as well as playing through multiple
|
|
||||||
# audio outputs at the same time, through multiple audio_output settings
|
|
||||||
# blocks. Setting this block is optional, though the server will only attempt
|
|
||||||
# autodetection for one sound card.
|
|
||||||
#
|
|
||||||
# An example of an ALSA output:
|
|
||||||
#
|
|
||||||
#audio_output {
|
|
||||||
# type "alsa"
|
|
||||||
# name "My ALSA Device"
|
|
||||||
# device "hw:0,0" # optional
|
|
||||||
# mixer_type "software" # optional
|
|
||||||
## mixer_device "default" # optional
|
|
||||||
## mixer_control "PCM" # optional
|
|
||||||
## mixer_index "0" # optional
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
audio_output {
|
|
||||||
type "pipewire"
|
|
||||||
name "Pipewire MPD"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
audio_output {
|
audio_output {
|
||||||
type "fifo"
|
type "pipewire"
|
||||||
name "my_fifo"
|
name "Pipewire MPD"
|
||||||
path "/tmp/mpd.fifo"
|
|
||||||
format "44100:16:2"
|
|
||||||
}
|
}
|
||||||
#
|
|
||||||
# An example of an OSS output:
|
|
||||||
#
|
|
||||||
#audio_output {
|
|
||||||
# type "oss"
|
|
||||||
# name "My OSS Device"
|
|
||||||
## device "/dev/dsp" # optional
|
|
||||||
## mixer_type "hardware" # optional
|
|
||||||
## mixer_device "/dev/mixer" # optional
|
|
||||||
## mixer_control "PCM" # optional
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
# An example of a shout output (for streaming to Icecast):
|
|
||||||
#
|
|
||||||
#audio_output {
|
|
||||||
# type "shout"
|
|
||||||
# encoding "ogg" # optional
|
|
||||||
# name "My Shout Stream"
|
|
||||||
# host "localhost"
|
|
||||||
# port "8000"
|
|
||||||
# mount "/mpd.ogg"
|
|
||||||
# password "hackme"
|
|
||||||
# quality "5.0"
|
|
||||||
# bitrate "128"
|
|
||||||
# format "44100:16:1"
|
|
||||||
## protocol "icecast2" # optional
|
|
||||||
## user "source" # optional
|
|
||||||
## description "My Stream Description" # optional
|
|
||||||
## url "http://example.com" # optional
|
|
||||||
## genre "jazz" # optional
|
|
||||||
## public "no" # optional
|
|
||||||
## timeout "2" # optional
|
|
||||||
## mixer_type "software" # optional
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
# An example of a recorder output:
|
|
||||||
#
|
|
||||||
#audio_output {
|
|
||||||
# type "recorder"
|
|
||||||
# name "My recorder"
|
|
||||||
# encoder "vorbis" # optional, vorbis or lame
|
|
||||||
# path "/var/lib/mpd/recorder/mpd.ogg"
|
|
||||||
## quality "5.0" # do not define if bitrate is defined
|
|
||||||
# bitrate "128" # do not define if quality is defined
|
|
||||||
# format "44100:16:1"
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
# An example of a httpd output (built-in HTTP streaming server):
|
|
||||||
#
|
|
||||||
#audio_output {
|
|
||||||
# type "httpd"
|
|
||||||
# name "My HTTP Stream"
|
|
||||||
# encoder "vorbis" # optional, vorbis or lame
|
|
||||||
# port "8000"
|
|
||||||
# bind_to_address "0.0.0.0" # optional, IPv4 or IPv6
|
|
||||||
## quality "5.0" # do not define if bitrate is defined
|
|
||||||
# bitrate "128" # do not define if quality is defined
|
|
||||||
# format "44100:16:1"
|
|
||||||
# max_clients "0" # optional 0=no limit
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
# An example of a pulseaudio output (streaming to a remote pulseaudio server)
|
|
||||||
#
|
|
||||||
#audio_output {
|
|
||||||
# type "pulse"
|
|
||||||
# name "My Pulse Output"
|
|
||||||
## server "remote_server" # optional
|
|
||||||
## sink "remote_server_sink" # optional
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
# An example of a winmm output (Windows multimedia API).
|
|
||||||
#
|
|
||||||
#audio_output {
|
|
||||||
# type "winmm"
|
|
||||||
# name "My WinMM output"
|
|
||||||
## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
|
|
||||||
# or
|
|
||||||
## device "0" # optional
|
|
||||||
## mixer_type "hardware" # optional
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
# An example of an openal output.
|
|
||||||
#
|
|
||||||
#audio_output {
|
|
||||||
# type "openal"
|
|
||||||
# name "My OpenAL output"
|
|
||||||
## device "Digital Audio (S/PDIF) (High Definition Audio Device)" # optional
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
## Example "pipe" output:
|
|
||||||
#
|
|
||||||
#audio_output {
|
|
||||||
# type "pipe"
|
|
||||||
# name "my pipe"
|
|
||||||
# command "aplay -f cd 2>/dev/null"
|
|
||||||
## Or if you're want to use AudioCompress
|
|
||||||
# command "AudioCompress -m | aplay -f cd 2>/dev/null"
|
|
||||||
## Or to send raw PCM stream through PCM:
|
|
||||||
# command "nc example.org 8765"
|
|
||||||
# format "44100:16:2"
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
## An example of a null output (for no audio output):
|
|
||||||
#
|
|
||||||
#audio_output {
|
|
||||||
# type "null"
|
|
||||||
# name "My Null Output"
|
|
||||||
# mixer_type "none" # optional
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
# If MPD has been compiled with libsamplerate support, this setting specifies
|
|
||||||
# the sample rate converter to use. Possible values can be found in the
|
|
||||||
# mpd.conf man page or the libsamplerate documentation. By default, this is
|
|
||||||
# setting is disabled.
|
|
||||||
#
|
|
||||||
#samplerate_converter "Fastest Sinc Interpolator"
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
# Normalization automatic volume adjustments ##################################
|
|
||||||
#
|
|
||||||
# This setting specifies the type of ReplayGain to use. This setting can have
|
|
||||||
# the argument "off", "album", "track" or "auto". "auto" is a special mode that
|
|
||||||
# chooses between "track" and "album" depending on the current state of
|
|
||||||
# random playback. If random playback is enabled then "track" mode is used.
|
|
||||||
# See <http://www.replaygain.org> for more details about ReplayGain.
|
|
||||||
# This setting is off by default.
|
|
||||||
#
|
|
||||||
replaygain "auto"
|
|
||||||
#
|
|
||||||
# This setting sets the pre-amp used for files that have ReplayGain tags. By
|
|
||||||
# default this setting is disabled.
|
|
||||||
#
|
|
||||||
#replaygain_preamp "0"
|
|
||||||
#
|
|
||||||
# This setting sets the pre-amp used for files that do NOT have ReplayGain tags.
|
|
||||||
# By default this setting is disabled.
|
|
||||||
#
|
|
||||||
#replaygain_missing_preamp "0"
|
|
||||||
#
|
|
||||||
# This setting enables or disables ReplayGain limiting.
|
|
||||||
# MPD calculates actual amplification based on the ReplayGain tags
|
|
||||||
# and replaygain_preamp / replaygain_missing_preamp setting.
|
|
||||||
# If replaygain_limit is enabled MPD will never amplify audio signal
|
|
||||||
# above its original level. If replaygain_limit is disabled such amplification
|
|
||||||
# might occur. By default this setting is enabled.
|
|
||||||
#
|
|
||||||
#replaygain_limit "yes"
|
|
||||||
#
|
|
||||||
# This setting enables on-the-fly normalization volume adjustment. This will
|
|
||||||
# result in the volume of all playing audio to be adjusted so the output has
|
|
||||||
# equal "loudness". This setting is disabled by default.
|
|
||||||
#
|
|
||||||
#volume_normalization "no"
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
# Character Encoding ##########################################################
|
|
||||||
#
|
|
||||||
# If file or directory names do not display correctly for your locale then you
|
|
||||||
# may need to modify this setting.
|
|
||||||
#
|
|
||||||
#filesystem_charset "UTF-8"
|
|
||||||
#
|
|
||||||
# This setting controls the encoding that ID3v1 tags should be converted from.
|
|
||||||
#
|
|
||||||
#id3v1_encoding "ISO-8859-1"
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
|
|
||||||
# SIDPlay decoder #############################################################
|
|
||||||
#
|
|
||||||
# songlength_database:
|
|
||||||
# Location of your songlengths file, as distributed with the HVSC.
|
|
||||||
# The sidplay plugin checks this for matching MD5 fingerprints.
|
|
||||||
# See http://www.c64.org/HVSC/DOCUMENTS/Songlengths.faq
|
|
||||||
#
|
|
||||||
# default_songlength:
|
|
||||||
# This is the default playing time in seconds for songs not in the
|
|
||||||
# songlength database, or in case you're not using a database.
|
|
||||||
# A value of 0 means play indefinitely.
|
|
||||||
#
|
|
||||||
# filter:
|
|
||||||
# Turns the SID filter emulation on or off.
|
|
||||||
#
|
|
||||||
#decoder {
|
|
||||||
# plugin "sidplay"
|
|
||||||
# songlength_database "/media/C64Music/DOCUMENTS/Songlengths.txt"
|
|
||||||
# default_songlength "120"
|
|
||||||
# filter "true"
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
|
# Feeds ncmpcpp's visualizer
|
||||||
|
audio_output {
|
||||||
|
type "fifo"
|
||||||
|
name "my_fifo"
|
||||||
|
path "/tmp/mpd.fifo"
|
||||||
|
format "44100:16:2"
|
||||||
|
}
|
||||||
+5
-139
@@ -1,148 +1,14 @@
|
|||||||
#
|
# Video
|
||||||
# Example mpv configuration file
|
|
||||||
#
|
|
||||||
# Warning:
|
|
||||||
#
|
|
||||||
# The commented example options usually do _not_ set the default values. Call
|
|
||||||
# mpv with --list-options to see the default values for most options. There is
|
|
||||||
# no builtin or example mpv.conf with all the defaults.
|
|
||||||
#
|
|
||||||
#
|
|
||||||
# Configuration files are read system-wide from /usr/local/etc/mpv.conf
|
|
||||||
# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override
|
|
||||||
# system-wide settings, all of which are overridden by the command line.
|
|
||||||
#
|
|
||||||
# Configuration file settings and the command line options use the same
|
|
||||||
# underlying mechanisms. Most options can be put into the configuration file
|
|
||||||
# by dropping the preceding '--'. See the man page for a complete list of
|
|
||||||
# options.
|
|
||||||
#
|
|
||||||
# Lines starting with '#' are comments and are ignored.
|
|
||||||
#
|
|
||||||
# See the CONFIGURATION FILES section in the man page
|
|
||||||
# for a detailed description of the syntax.
|
|
||||||
#
|
|
||||||
# Profiles should be placed at the bottom of the configuration file to ensure
|
|
||||||
# that settings wanted as defaults are not restricted to specific profiles.
|
|
||||||
|
|
||||||
##################
|
|
||||||
# video settings #
|
|
||||||
##################
|
|
||||||
|
|
||||||
# Start in fullscreen mode by default.
|
|
||||||
fs=yes
|
fs=yes
|
||||||
|
profile=high-quality
|
||||||
|
hwdec=auto-safe
|
||||||
|
|
||||||
# force starting with centered window
|
# Smooth playback: match video speed to the display refresh rate and blend frames
|
||||||
#geometry=50%:50%
|
|
||||||
|
|
||||||
# don't allow a new window to have a size larger than 90% of the screen size
|
|
||||||
#autofit-larger=90%x90%
|
|
||||||
|
|
||||||
# Do not close the window on exit.
|
|
||||||
#keep-open=yes
|
|
||||||
|
|
||||||
# Do not wait with showing the video window until it has loaded. (This will
|
|
||||||
# resize the window once video is loaded. Also always shows a window with
|
|
||||||
# audio.)
|
|
||||||
#force-window=immediate
|
|
||||||
|
|
||||||
# Disable the On Screen Controller (OSC).
|
|
||||||
#osc=no
|
|
||||||
|
|
||||||
# Keep the player window on top of all other windows.
|
|
||||||
#ontop=yes
|
|
||||||
|
|
||||||
# Specify high quality video rendering preset (for --vo=gpu only)
|
|
||||||
# Can cause performance problems with some drivers and GPUs.
|
|
||||||
profile=gpu-hq
|
|
||||||
scale=ewa_lanczossharp
|
|
||||||
cscale=ewa_lanczossharp
|
|
||||||
video-sync=display-resample
|
video-sync=display-resample
|
||||||
interpolation
|
interpolation
|
||||||
tscale=oversample
|
tscale=oversample
|
||||||
|
|
||||||
# Force video to lock on the display's refresh rate, and change video and audio
|
|
||||||
# speed to some degree to ensure synchronous playback - can cause problems
|
|
||||||
# with some drivers and desktop environments.
|
|
||||||
#video-sync=display-resample
|
|
||||||
|
|
||||||
# Enable hardware decoding if available. Often, this does not work with all
|
|
||||||
# video outputs, but should work well with default settings on most systems.
|
|
||||||
# If performance or energy usage is an issue, forcing the vdpau or vaapi VOs
|
|
||||||
# may or may not help.
|
|
||||||
hwdec=auto
|
|
||||||
|
|
||||||
ytdl-format=bestvideo[height<=1080]+bestaudio/best[height<=1080]
|
ytdl-format=bestvideo[height<=1080]+bestaudio/best[height<=1080]
|
||||||
|
|
||||||
##################
|
# Audio
|
||||||
# audio settings #
|
|
||||||
##################
|
|
||||||
|
|
||||||
#ao=alsa
|
|
||||||
volume=100
|
volume=100
|
||||||
|
|
||||||
# Specify default audio device. You can list devices with: --audio-device=help
|
|
||||||
# The option takes the device string (the stuff between the '...').
|
|
||||||
#audio-device=alsa/default
|
|
||||||
|
|
||||||
# Do not filter audio to keep pitch when changing playback speed.
|
|
||||||
#audio-pitch-correction=no
|
|
||||||
|
|
||||||
# Output 5.1 audio natively, and upmix/downmix audio with a different format.
|
|
||||||
#audio-channels=5.1
|
|
||||||
# Disable any automatic remix, _if_ the audio output accepts the audio format.
|
|
||||||
# of the currently played file. See caveats mentioned in the manpage.
|
|
||||||
# (The default is "auto-safe", see manpage.)
|
|
||||||
#audio-channels=auto
|
|
||||||
|
|
||||||
##################
|
|
||||||
# other settings #
|
|
||||||
##################
|
|
||||||
|
|
||||||
# Pretend to be a web browser. Might fix playback with some streaming sites,
|
|
||||||
# but also will break with shoutcast streams.
|
|
||||||
#user-agent="Mozilla/5.0"
|
|
||||||
|
|
||||||
# cache settings
|
|
||||||
#
|
|
||||||
# Use a large seekable RAM cache even for local input.
|
|
||||||
#cache=yes
|
|
||||||
#
|
|
||||||
# Use extra large RAM cache (needs cache=yes to make it useful).
|
|
||||||
#demuxer-max-bytes=500M
|
|
||||||
#demuxer-max-back-bytes=100M
|
|
||||||
#
|
|
||||||
# Disable the behavior that the player will pause if the cache goes below a
|
|
||||||
# certain fill size.
|
|
||||||
#cache-pause=no
|
|
||||||
#
|
|
||||||
# Store cache payload on the hard disk instead of in RAM. (This may negatively
|
|
||||||
# impact performance unless used for slow input such as network.)
|
|
||||||
#cache-dir=~/.cache/
|
|
||||||
#cache-on-disk=yes
|
|
||||||
|
|
||||||
# Display English subtitles if available.
|
|
||||||
#slang=en
|
|
||||||
|
|
||||||
# Play Finnish audio if available, fall back to English otherwise.
|
|
||||||
#alang=fi,en
|
|
||||||
|
|
||||||
# Change subtitle encoding. For Arabic subtitles use 'cp1256'.
|
|
||||||
# If the file seems to be valid UTF-8, prefer UTF-8.
|
|
||||||
# (You can add '+' in front of the codepage to force it.)
|
|
||||||
#sub-codepage=cp1256
|
|
||||||
|
|
||||||
# You can also include other configuration files.
|
|
||||||
#include=/path/to/the/file/you/want/to/include
|
|
||||||
|
|
||||||
############
|
|
||||||
# Profiles #
|
|
||||||
############
|
|
||||||
|
|
||||||
# The options declared as part of profiles override global default settings,
|
|
||||||
# but only take effect when the profile is active.
|
|
||||||
|
|
||||||
# The following profile can be enabled on the command line with: --profile=eye-cancer
|
|
||||||
|
|
||||||
#[eye-cancer]
|
|
||||||
#sharpen=5
|
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
# -*-muttrc-*-
|
||||||
|
set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
|
||||||
|
set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
|
||||||
|
set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
|
||||||
|
set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
|
||||||
|
set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
|
||||||
|
set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
|
||||||
|
set pgp_encrypt_sign_command="pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
|
||||||
|
set pgp_import_command="gpg --no-verbose --import %f"
|
||||||
|
set pgp_export_command="gpg --no-verbose --export --armor %r"
|
||||||
|
set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r"
|
||||||
|
set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-keys %r"
|
||||||
|
set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-secret-keys %r"
|
||||||
|
set pgp_good_sign="^\\[GNUPG:\\] GOODSIG"
|
||||||
|
set pgp_check_gpg_decrypt_status_fd
|
||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
macro pager \cb <pipe-entry>'urlscan'<enter> 'Follow links with urlview'
|
macro index,pager \cb "<pipe-message>urlscan<enter>" "Follow links with urlscan"
|
||||||
macro index,pager a "<pipe-message>abook --add-email-quiet<return>" "Add this sender to Abook"
|
macro index,pager a "<pipe-message>abook --add-email-quiet<return>" "Add this sender to Abook"
|
||||||
macro attach V "<pipe-entry>iconv -c --to-code=UTF8 > ~/.cache/mutt/mail.html<enter><shell-escape>vivaldi-stable ~/.cache/mutt/mail.html<enter>"
|
macro attach V "<pipe-entry>iconv -c --to-code=UTF8 > ~/.cache/mutt/html/mail.html<enter><shell-escape>zen-browser ~/.cache/mutt/html/mail.html >/dev/null 2>&1<enter>" "Open attachment in Zen"
|
||||||
@@ -29,6 +29,7 @@ bind editor <Tab> complete-query
|
|||||||
# Other settings
|
# Other settings
|
||||||
set header_cache = "~/.cache/mutt"
|
set header_cache = "~/.cache/mutt"
|
||||||
set message_cachedir = "~/.cache/mutt"
|
set message_cachedir = "~/.cache/mutt"
|
||||||
|
set message_cache_clean = yes
|
||||||
|
|
||||||
set timeout = 30
|
set timeout = 30
|
||||||
set editor = "vim"
|
set editor = "vim"
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
set sidebar_visible = yes
|
||||||
|
set sidebar_width = 20
|
||||||
|
set sidebar_short_path = yes
|
||||||
|
set sidebar_delim_chars = '/.'
|
||||||
|
set sidebar_folder_indent = no
|
||||||
|
set sidebar_indent_string = ' '
|
||||||
|
set sidebar_new_mail_only = no
|
||||||
|
sidebar_whitelist '/home/user/mailbox1'
|
||||||
|
sidebar_whitelist '/home/user/mailbox2'
|
||||||
|
set sidebar_next_new_wrap = no
|
||||||
|
set sidebar_divider_char = '|'
|
||||||
|
set mail_check_stats
|
||||||
|
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S'
|
||||||
|
set sidebar_sort_method = 'unsorted'
|
||||||
|
|
||||||
|
bind index,pager \Cp sidebar-prev
|
||||||
|
bind index,pager \Cn sidebar-next
|
||||||
|
bind index,pager \Co sidebar-open
|
||||||
|
bind index,pager <F3> sidebar-page-up
|
||||||
|
bind index,pager <F4> sidebar-page-down
|
||||||
|
bind index,pager <F5> sidebar-prev-new
|
||||||
|
bind index,pager <F6> sidebar-next-new
|
||||||
|
bind index,pager B sidebar-toggle-visible
|
||||||
|
|
||||||
|
color indicator cyan black
|
||||||
|
color sidebar_highlight black color8
|
||||||
|
color sidebar_divider color8 black
|
||||||
|
color sidebar_flagged red black
|
||||||
|
color sidebar_new green black
|
||||||
+8
-574
@@ -1,598 +1,32 @@
|
|||||||
##############################################################
|
|
||||||
## This is an example configuration file. Copy it to ##
|
|
||||||
## $XDG_CONFIG_HOME/ncmpcpp/config or $HOME/.ncmpcpp/config ##
|
|
||||||
## and set up your preferences. ##
|
|
||||||
##############################################################
|
|
||||||
#
|
|
||||||
##### directories ######
|
|
||||||
##
|
|
||||||
## Directory for storing ncmpcpp related files. Changing it is useful if you
|
|
||||||
## want to store everything somewhere else and provide command line setting for
|
|
||||||
## alternative location to config file which defines that while launching
|
|
||||||
## ncmpcpp.
|
|
||||||
##
|
|
||||||
#
|
|
||||||
ncmpcpp_directory = ~/.config/ncmpcpp
|
ncmpcpp_directory = ~/.config/ncmpcpp
|
||||||
#
|
|
||||||
##
|
|
||||||
## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other
|
|
||||||
## MPD clients (eg. ncmpc) also use that location.
|
|
||||||
##
|
|
||||||
#
|
|
||||||
lyrics_directory = ~/.local/share/mpd/lyrics
|
lyrics_directory = ~/.local/share/mpd/lyrics
|
||||||
#
|
|
||||||
##### connection settings #####
|
# MPD
|
||||||
#
|
|
||||||
mpd_host = localhost
|
mpd_host = localhost
|
||||||
#
|
|
||||||
mpd_port = 6600
|
mpd_port = 6600
|
||||||
#
|
|
||||||
#mpd_connection_timeout = 5
|
|
||||||
#
|
|
||||||
## Needed for tag editor and file operations to work.
|
|
||||||
##
|
|
||||||
mpd_music_dir = ~/Music
|
mpd_music_dir = ~/Music
|
||||||
#
|
|
||||||
mpd_crossfade_time = 10
|
mpd_crossfade_time = 10
|
||||||
#
|
|
||||||
# Exclude pattern for random song action
|
# Visualizer (reads mpd's "my_fifo" output)
|
||||||
# http://www.boost.org/doc/libs/1_46_1/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html
|
|
||||||
#random_exclude_pattern = "^(temp|midi_songs).*"
|
|
||||||
#
|
|
||||||
##### music visualizer #####
|
|
||||||
##
|
|
||||||
## In order to make music visualizer work with MPD you need to use the fifo
|
|
||||||
## output. Its format parameter has to be set to 44100:16:1 for mono
|
|
||||||
## visualization or 44100:16:2 for stereo visualization. As an example here is
|
|
||||||
## the relevant section for mpd.conf:
|
|
||||||
##
|
|
||||||
## audio_output {
|
|
||||||
## type "fifo"
|
|
||||||
## name "Visualizer feed"
|
|
||||||
## path "/tmp/mpd.fifo"
|
|
||||||
## format "44100:16:2"
|
|
||||||
## }
|
|
||||||
##
|
|
||||||
## If the visualization on occasion diverges from the audio output, please set
|
|
||||||
## 'buffer_time' parameter of your audio output in mpd.conf to '100000' (100ms)
|
|
||||||
## or less to prevent that from happening.
|
|
||||||
##
|
|
||||||
## Note: If you're using Mopidy, an address of a udpsink gstreamer's output is
|
|
||||||
## also accepted. For example, the following section in mopidy.conf:
|
|
||||||
##
|
|
||||||
## [audio]
|
|
||||||
## output = tee name=t ! queue ! autoaudiosink t.
|
|
||||||
## ! queue ! audio/x-raw,rate=44100,channels=2,format=S16LE
|
|
||||||
## ! udpsink host=localhost port=5555
|
|
||||||
##
|
|
||||||
## will make localhost:5555 available as a source of data for the stereo
|
|
||||||
## visualizer.
|
|
||||||
##
|
|
||||||
#
|
|
||||||
visualizer_data_source = /tmp/mpd.fifo
|
visualizer_data_source = /tmp/mpd.fifo
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: Below parameter is needed for ncmpcpp to determine which output
|
|
||||||
## provides data for visualizer and reset it at the beginning of visualization
|
|
||||||
## to synchronize with audio.
|
|
||||||
##
|
|
||||||
#
|
|
||||||
visualizer_output_name = "my_fifo"
|
visualizer_output_name = "my_fifo"
|
||||||
#
|
|
||||||
##
|
|
||||||
## If you set format to 44100:16:2, make it 'yes'.
|
|
||||||
##
|
|
||||||
visualizer_in_stereo = yes
|
visualizer_in_stereo = yes
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: set below to >=10 only if you have synchronization issues with
|
|
||||||
## visualization and audio.
|
|
||||||
##
|
|
||||||
#
|
|
||||||
#visualizer_sync_interval = 0
|
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: To enable spectrum frequency visualization you need to compile ncmpcpp
|
|
||||||
## with fftw3 support.
|
|
||||||
##
|
|
||||||
#
|
|
||||||
## Available values: spectrum, wave, wave_filled, ellipse.
|
|
||||||
##
|
|
||||||
visualizer_type = spectrum
|
visualizer_type = spectrum
|
||||||
#
|
|
||||||
#visualizer_fps = 60
|
|
||||||
#
|
|
||||||
#visualizer_autoscale = no
|
|
||||||
#
|
|
||||||
visualizer_look = ●▮
|
visualizer_look = ●▮
|
||||||
#
|
|
||||||
#visualizer_color = blue, cyan, green, yellow, magenta, red
|
# Interface
|
||||||
#
|
|
||||||
## Alternative subset of 256 colors for terminals that support it.
|
|
||||||
##
|
|
||||||
#visualizer_color = 47, 83, 119, 155, 191, 227, 221, 215, 209, 203, 197, 161
|
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: The next few visualization options apply to the spectrum visualizer.
|
|
||||||
##
|
|
||||||
#
|
|
||||||
## Use unicode block characters for a smoother, more continuous look.
|
|
||||||
## This will override the visualizer_look option. With transparent terminals
|
|
||||||
## and visualizer_in_stereo set, artifacts may be visible on the bottom half of
|
|
||||||
## the visualization.
|
|
||||||
#
|
|
||||||
#visualizer_spectrum_smooth_look = yes
|
|
||||||
#
|
|
||||||
## A value between 1 and 5 inclusive. Specifying a larger value makes the
|
|
||||||
## visualizer look at a larger slice of time, which results in less jumpy
|
|
||||||
## visualizer output.
|
|
||||||
#
|
|
||||||
#visualizer_spectrum_dft_size = 2
|
|
||||||
#
|
|
||||||
#visualizer_spectrum_gain = 10
|
|
||||||
#
|
|
||||||
## Left-most frequency of visualizer in Hz, must be less than HZ MAX
|
|
||||||
#
|
|
||||||
#visualizer_spectrum_hz_min = 20
|
|
||||||
#
|
|
||||||
## Right-most frequency of visualizer in Hz, must be greater than HZ MIN
|
|
||||||
#
|
|
||||||
#visualizer_spectrum_hz_max = 20000
|
|
||||||
#
|
|
||||||
##### system encoding #####
|
|
||||||
##
|
|
||||||
## ncmpcpp should detect your charset encoding but if it failed to do so, you
|
|
||||||
## can specify charset encoding you are using here.
|
|
||||||
##
|
|
||||||
## Note: You can see whether your ncmpcpp build supports charset detection by
|
|
||||||
## checking output of `ncmpcpp --version`.
|
|
||||||
##
|
|
||||||
## Note: Since MPD uses UTF-8 by default, setting this option makes sense only
|
|
||||||
## if your encoding is different.
|
|
||||||
##
|
|
||||||
#
|
|
||||||
#system_encoding = ""
|
|
||||||
#
|
|
||||||
##### delays #####
|
|
||||||
#
|
|
||||||
## Time of inactivity (in seconds) after playlist highlighting will be disabled
|
|
||||||
## (0 = always on).
|
|
||||||
##
|
|
||||||
#playlist_disable_highlight_delay = 5
|
|
||||||
#
|
|
||||||
## Defines how long messages are supposed to be visible.
|
|
||||||
##
|
|
||||||
#message_delay_time = 5
|
|
||||||
#
|
|
||||||
##### song format #####
|
|
||||||
##
|
|
||||||
## For a song format you can use:
|
|
||||||
##
|
|
||||||
## %l - length
|
|
||||||
## %f - filename
|
|
||||||
## %D - directory
|
|
||||||
## %a - artist
|
|
||||||
## %A - album artist
|
|
||||||
## %t - title
|
|
||||||
## %b - album
|
|
||||||
## %y - date
|
|
||||||
## %n - track number (01/12 -> 01)
|
|
||||||
## %N - full track info (01/12 -> 01/12)
|
|
||||||
## %g - genre
|
|
||||||
## %c - composer
|
|
||||||
## %p - performer
|
|
||||||
## %d - disc
|
|
||||||
## %C - comment
|
|
||||||
## %P - priority
|
|
||||||
## $R - begin right alignment
|
|
||||||
##
|
|
||||||
## If you want to make sure that a part of the format is displayed only when
|
|
||||||
## certain tags are present, you can archieve it by grouping them with brackets,
|
|
||||||
## e.g. '{%a - %t}' will be evaluated to 'ARTIST - TITLE' if both tags are
|
|
||||||
## present or '' otherwise. It is also possible to define a list of
|
|
||||||
## alternatives by providing several groups and separating them with '|',
|
|
||||||
## e.g. '{%t}|{%f}' will be evaluated to 'TITLE' or 'FILENAME' if the former is
|
|
||||||
## not present.
|
|
||||||
##
|
|
||||||
## Note: If you want to set limit on maximal length of a tag, just put the
|
|
||||||
## appropriate number between % and character that defines tag type, e.g. to
|
|
||||||
## make album take max. 20 terminal cells, use '%20b'.
|
|
||||||
##
|
|
||||||
## In addition, formats support markers used for text attributes. They are
|
|
||||||
## followed by character '$'. After that you can put:
|
|
||||||
##
|
|
||||||
## - 0 - default window color (discards all other colors)
|
|
||||||
## - 1 - black
|
|
||||||
## - 2 - red
|
|
||||||
## - 3 - green
|
|
||||||
## - 4 - yellow
|
|
||||||
## - 5 - blue
|
|
||||||
## - 6 - magenta
|
|
||||||
## - 7 - cyan
|
|
||||||
## - 8 - white
|
|
||||||
## - 9 - end of current color
|
|
||||||
## - b - bold text
|
|
||||||
## - u - underline text
|
|
||||||
## - r - reverse colors
|
|
||||||
## - a - use alternative character set
|
|
||||||
##
|
|
||||||
## If you don't want to use a non-color attribute anymore, just put it again,
|
|
||||||
## but this time insert character '/' between '$' and attribute character,
|
|
||||||
## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename with
|
|
||||||
## reversed colors.
|
|
||||||
##
|
|
||||||
## If you want to use 256 colors and/or background colors in formats (the naming
|
|
||||||
## scheme is described below in section about color definitions), it can be done
|
|
||||||
## with the syntax $(COLOR), e.g. to set the artist tag to one of the
|
|
||||||
## non-standard colors and make it have yellow background, you need to write
|
|
||||||
## $(197_yellow)%a$(end). Note that for standard colors this is interchangable
|
|
||||||
## with attributes listed above.
|
|
||||||
##
|
|
||||||
## Note: colors can be nested.
|
|
||||||
##
|
|
||||||
#
|
|
||||||
#song_list_format = {%a - }{%t}|{$8%f$9}$R{$3%l$9}
|
|
||||||
#
|
|
||||||
#song_status_format = {{%a{ "%b"{ (%y)}} - }{%t}}|{%f}
|
|
||||||
#
|
|
||||||
#song_library_format = {%n - }{%t}|{%f}
|
|
||||||
#
|
|
||||||
#alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b
|
|
||||||
#
|
|
||||||
#alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}
|
|
||||||
#
|
|
||||||
#current_item_prefix = $(yellow)$r
|
|
||||||
#
|
|
||||||
#current_item_suffix = $/r$(end)
|
|
||||||
#
|
|
||||||
#current_item_inactive_column_prefix = $(white)$r
|
|
||||||
#
|
|
||||||
#current_item_inactive_column_suffix = $/r$(end)
|
|
||||||
#
|
|
||||||
#now_playing_prefix = $b
|
|
||||||
#
|
|
||||||
#now_playing_suffix = $/b
|
|
||||||
#
|
|
||||||
#browser_playlist_prefix = "$2playlist$9 "
|
|
||||||
#
|
|
||||||
#selected_item_prefix = $6
|
|
||||||
#
|
|
||||||
#selected_item_suffix = $9
|
|
||||||
#
|
|
||||||
#modified_item_prefix = $3> $9
|
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: attributes are not supported for the following variables.
|
|
||||||
##
|
|
||||||
#song_window_title_format = {%a - }{%t}|{%f}
|
|
||||||
##
|
|
||||||
## Note: Below variables are used for sorting songs in browser. The sort mode
|
|
||||||
## determines how songs are sorted, and can be used in combination with a sort
|
|
||||||
## format to specify a custom sorting format. Available values for
|
|
||||||
## browser_sort_mode are "type", "name", "mtime", "format" and "none".
|
|
||||||
##
|
|
||||||
#
|
|
||||||
#browser_sort_mode = type
|
|
||||||
#
|
|
||||||
#browser_sort_format = {%a - }{%t}|{%f} {%l}
|
|
||||||
#
|
|
||||||
##### columns settings #####
|
|
||||||
##
|
|
||||||
## syntax of song columns list format is "column column etc."
|
|
||||||
##
|
|
||||||
## - syntax for each column is:
|
|
||||||
##
|
|
||||||
## (width of the column)[color of the column]{displayed tag}
|
|
||||||
##
|
|
||||||
## Note: Width is by default in %, if you want a column to have fixed size, add
|
|
||||||
## 'f' after the value, e.g. (10)[white]{a} will be the column that take 10% of
|
|
||||||
## screen (so the real width will depend on actual screen size), whereas
|
|
||||||
## (10f)[white]{a} will take 10 terminal cells, no matter how wide the screen
|
|
||||||
## is.
|
|
||||||
##
|
|
||||||
## - color is optional (if you want the default one, leave the field empty).
|
|
||||||
##
|
|
||||||
## Note: You can give a column additional attributes by putting appropriate
|
|
||||||
## character after displayed tag character. Available attributes are:
|
|
||||||
##
|
|
||||||
## - r - column will be right aligned
|
|
||||||
## - E - if tag is empty, empty tag marker won't be displayed
|
|
||||||
##
|
|
||||||
## You can also:
|
|
||||||
##
|
|
||||||
## - give a column custom name by putting it after attributes, separated with
|
|
||||||
## character ':', e.g. {lr:Length} gives you right aligned column of lengths
|
|
||||||
## named "Length".
|
|
||||||
##
|
|
||||||
## - define sequence of tags, that have to be displayed in case predecessor is
|
|
||||||
## empty in a way similar to the one in classic song format, i.e. using '|'
|
|
||||||
## character, e.g. {a|c|p:Owner} creates column named "Owner" that tries to
|
|
||||||
## display artist tag and then composer and performer if previous ones are not
|
|
||||||
## available.
|
|
||||||
##
|
|
||||||
#
|
|
||||||
#song_columns_list_format = (20)[]{a} (6f)[green]{NE} (50)[white]{t|f:Title} (20)[cyan]{b} (7f)[magenta]{l}
|
|
||||||
#
|
|
||||||
##### various settings #####
|
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: Custom command that will be executed each time song changes. Useful for
|
|
||||||
## notifications etc.
|
|
||||||
##
|
|
||||||
#execute_on_song_change =
|
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: Custom command that will be executed each time player state
|
|
||||||
## changes. The environment variable MPD_PLAYER_STATE is set to the current
|
|
||||||
## state (either unknown, play, pause, or stop) for its duration.
|
|
||||||
##
|
|
||||||
#
|
|
||||||
#execute_on_player_state_change =
|
|
||||||
#
|
|
||||||
#playlist_show_mpd_host = no
|
|
||||||
#
|
|
||||||
#playlist_show_remaining_time = no
|
|
||||||
#
|
|
||||||
#playlist_shorten_total_times = no
|
|
||||||
#
|
|
||||||
#playlist_separate_albums = no
|
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: Possible display modes: classic, columns.
|
|
||||||
##
|
|
||||||
#playlist_display_mode = columns
|
|
||||||
#
|
|
||||||
#browser_display_mode = classic
|
|
||||||
#
|
|
||||||
#search_engine_display_mode = classic
|
|
||||||
#
|
|
||||||
#playlist_editor_display_mode = classic
|
|
||||||
#
|
|
||||||
#discard_colors_if_item_is_selected = yes
|
|
||||||
#
|
|
||||||
#show_duplicate_tags = yes
|
|
||||||
#
|
|
||||||
#incremental_seeking = yes
|
|
||||||
#
|
|
||||||
#seek_time = 1
|
|
||||||
#
|
|
||||||
#volume_change_step = 2
|
|
||||||
#
|
|
||||||
#autocenter_mode = no
|
|
||||||
#
|
|
||||||
#centered_cursor = no
|
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: You can specify third character which will be used to build 'empty'
|
|
||||||
## part of progressbar.
|
|
||||||
##
|
|
||||||
#progressbar_look = =>
|
|
||||||
#
|
|
||||||
## Available values: database, playlist.
|
|
||||||
##
|
|
||||||
#default_place_to_search_in = database
|
|
||||||
#
|
|
||||||
## Available values: classic, alternative.
|
|
||||||
##
|
|
||||||
user_interface = alternative
|
user_interface = alternative
|
||||||
#
|
|
||||||
#data_fetching_delay = yes
|
|
||||||
#
|
|
||||||
## Available values: artist, album_artist, date, genre, composer, performer.
|
|
||||||
##
|
|
||||||
media_library_primary_tag = album_artist
|
media_library_primary_tag = album_artist
|
||||||
#
|
|
||||||
#media_library_albums_split_by_date = yes
|
|
||||||
#
|
|
||||||
#media_library_hide_album_dates = no
|
|
||||||
#
|
|
||||||
## Available values: wrapped, normal.
|
|
||||||
##
|
|
||||||
#default_find_mode = wrapped
|
|
||||||
#
|
|
||||||
#default_tag_editor_pattern = %n - %t
|
|
||||||
#
|
|
||||||
#header_visibility = yes
|
|
||||||
#
|
|
||||||
#statusbar_visibility = yes
|
|
||||||
#
|
|
||||||
## Show the "Connected to ..." message on startup
|
|
||||||
#connected_message_on_startup = yes
|
|
||||||
#
|
|
||||||
#titles_visibility = yes
|
|
||||||
#
|
|
||||||
#header_text_scrolling = yes
|
|
||||||
#
|
|
||||||
#cyclic_scrolling = no
|
|
||||||
#
|
|
||||||
lyrics_fetchers = musixmatch, sing365, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, zeneszoveg, genius, azlyrics, internet
|
lyrics_fetchers = musixmatch, sing365, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, zeneszoveg, genius, azlyrics, internet
|
||||||
#
|
|
||||||
#follow_now_playing_lyrics = no
|
|
||||||
#
|
|
||||||
#fetch_lyrics_for_current_song_in_background = no
|
|
||||||
#
|
|
||||||
#store_lyrics_in_song_dir = no
|
|
||||||
#
|
|
||||||
#generate_win32_compatible_filenames = yes
|
|
||||||
#
|
|
||||||
#allow_for_physical_item_deletion = no
|
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: If you set this variable, ncmpcpp will try to get info from last.fm in
|
|
||||||
## language you set and if it fails, it will fall back to english. Otherwise it
|
|
||||||
## will use english the first time.
|
|
||||||
##
|
|
||||||
## Note: Language has to be expressed as an ISO 639 alpha-2 code.
|
|
||||||
##
|
|
||||||
#lastfm_preferred_language = en
|
|
||||||
#
|
|
||||||
#space_add_mode = add_remove
|
|
||||||
#
|
|
||||||
#show_hidden_files_in_local_browser = no
|
|
||||||
#
|
|
||||||
##
|
|
||||||
## How shall screen switcher work?
|
|
||||||
##
|
|
||||||
## - "previous" - switch between the current and previous screen.
|
|
||||||
## - "screen1,...,screenN" - switch between given sequence of screens.
|
|
||||||
##
|
|
||||||
## Screens available for use: help, playlist, browser, search_engine,
|
|
||||||
## media_library, playlist_editor, tag_editor, outputs, visualizer, clock,
|
|
||||||
## lyrics, last_fm.
|
|
||||||
##
|
|
||||||
#screen_switcher_mode = playlist, browser
|
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: You can define startup screen by choosing screen from the list above.
|
|
||||||
##
|
|
||||||
startup_screen = media_library
|
startup_screen = media_library
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: You can define startup slave screen by choosing screen from the list
|
|
||||||
## above or an empty value for no slave screen.
|
|
||||||
##
|
|
||||||
#startup_slave_screen = playlist
|
|
||||||
#
|
|
||||||
#startup_slave_screen_focus = no
|
|
||||||
#
|
|
||||||
##
|
|
||||||
## Default width of locked screen (in %). Acceptable values are from 20 to 80.
|
|
||||||
##
|
|
||||||
#
|
|
||||||
#locked_screen_width_part = 60
|
|
||||||
#
|
|
||||||
#ask_for_locked_screen_width_part = yes
|
|
||||||
#
|
|
||||||
#jump_to_now_playing_song_at_start = yes
|
|
||||||
#
|
|
||||||
#ask_before_clearing_playlists = yes
|
|
||||||
#
|
|
||||||
#clock_display_seconds = no
|
|
||||||
#
|
|
||||||
#display_volume_level = yes
|
|
||||||
#
|
|
||||||
#display_bitrate = no
|
|
||||||
#
|
|
||||||
#display_remaining_time = no
|
|
||||||
#
|
|
||||||
## Available values: none, basic, extended, perl.
|
|
||||||
##
|
|
||||||
#regular_expressions = perl
|
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: if below is enabled, ncmpcpp will ignore leading "The" word while
|
|
||||||
## sorting items in browser, tags in media library, etc.
|
|
||||||
##
|
|
||||||
ignore_leading_the = yes
|
ignore_leading_the = yes
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: if below is enabled, ncmpcpp will ignore diacritics while searching and
|
|
||||||
## filtering lists. This takes an effect only if boost was compiled with ICU
|
|
||||||
## support.
|
|
||||||
##
|
|
||||||
#ignore_diacritics = no
|
|
||||||
#
|
|
||||||
#block_search_constraints_change_if_items_found = yes
|
|
||||||
#
|
|
||||||
#mouse_support = yes
|
|
||||||
#
|
|
||||||
#mouse_list_scroll_whole_page = no
|
|
||||||
#
|
|
||||||
#lines_scrolled = 5
|
|
||||||
#
|
|
||||||
#empty_tag_marker = <empty>
|
|
||||||
#
|
|
||||||
#tags_separator = " | "
|
|
||||||
#
|
|
||||||
#tag_editor_extended_numeration = no
|
|
||||||
#
|
|
||||||
#media_library_sort_by_mtime = no
|
|
||||||
#
|
|
||||||
#enable_window_title = yes
|
|
||||||
#
|
|
||||||
##
|
|
||||||
## Note: You can choose default search mode for search engine. Available modes
|
|
||||||
## are:
|
|
||||||
##
|
|
||||||
## - 1 - use mpd built-in searching (no regexes, pattern matching)
|
|
||||||
##
|
|
||||||
## - 2 - use ncmpcpp searching (pattern matching with support for regexes, but
|
|
||||||
## if your mpd is on a remote machine, downloading big database to process
|
|
||||||
## it can take a while
|
|
||||||
##
|
|
||||||
## - 3 - match only exact values (this mode uses mpd function for searching in
|
|
||||||
## database and local one for searching in current playlist)
|
|
||||||
##
|
|
||||||
#
|
|
||||||
#search_engine_default_search_mode = 1
|
|
||||||
#
|
|
||||||
external_editor = vim
|
external_editor = vim
|
||||||
#
|
|
||||||
## Note: set to yes if external editor is a console application.
|
|
||||||
##
|
|
||||||
use_console_editor = yes
|
use_console_editor = yes
|
||||||
#
|
|
||||||
##### colors definitions #####
|
# Colors
|
||||||
##
|
|
||||||
## It is possible to set a background color by setting a color value
|
|
||||||
## "<foreground>_<background>", e.g. red_black will set foregound color to red
|
|
||||||
## and background color to black.
|
|
||||||
##
|
|
||||||
## In addition, for terminals that support 256 colors it is possible to set one
|
|
||||||
## of them by using a number in range [1, 256] instead of color name,
|
|
||||||
## e.g. numerical value corresponding to red_black is 2_1. To find out if the
|
|
||||||
## terminal supports 256 colors, run ncmpcpp and check out the bottom of the
|
|
||||||
## help screen for list of available colors and their numerical values.
|
|
||||||
##
|
|
||||||
## What is more, there are two special values for the background color:
|
|
||||||
## "transparent" and "current". The first one explicitly sets the background to
|
|
||||||
## be transparent, while the second one allows you to preserve current
|
|
||||||
## background color and change only the foreground one. It's used implicitly
|
|
||||||
## when background color is not specified.
|
|
||||||
##
|
|
||||||
## Moreover, it is possible to attach format information to selected color
|
|
||||||
## variables by appending to their end a colon followed by one or more format
|
|
||||||
## flags, e.g. black:b or red:ur. The following variables support this syntax:
|
|
||||||
## visualizer_color, color1, color2, empty_tag_color, volume_color,
|
|
||||||
## state_line_color, state_flags_color, progressbar_color,
|
|
||||||
## progressbar_elapsed_color, player_state_color, statusbar_time_color,
|
|
||||||
## alternative_ui_separator_color.
|
|
||||||
##
|
|
||||||
## Note: due to technical limitations of older ncurses version, if 256 colors
|
|
||||||
## are used there is a possibility that you'll be able to use only colors with
|
|
||||||
## transparent background.
|
|
||||||
#
|
|
||||||
colors_enabled = yes
|
colors_enabled = yes
|
||||||
#
|
|
||||||
#empty_tag_color = cyan
|
|
||||||
#
|
|
||||||
header_window_color = 226
|
header_window_color = 226
|
||||||
#
|
|
||||||
#volume_color = default
|
|
||||||
#
|
|
||||||
#state_line_color = default
|
|
||||||
#
|
|
||||||
#state_flags_color = default:b
|
|
||||||
#
|
|
||||||
main_window_color = 160
|
main_window_color = 160
|
||||||
#
|
|
||||||
#color1 = white
|
|
||||||
#
|
|
||||||
#color2 = green
|
|
||||||
#
|
|
||||||
#progressbar_color = black:b
|
|
||||||
#
|
|
||||||
progressbar_elapsed_color = 226:b
|
progressbar_elapsed_color = 226:b
|
||||||
#
|
|
||||||
statusbar_color = 226
|
statusbar_color = 226
|
||||||
#
|
|
||||||
#statusbar_time_color = default:b
|
|
||||||
#
|
|
||||||
#player_state_color = default:b
|
|
||||||
#
|
|
||||||
#alternative_ui_separator_color = black:b
|
|
||||||
#
|
|
||||||
window_border_color = 226
|
window_border_color = 226
|
||||||
#
|
|
||||||
#active_window_border = red
|
|
||||||
#
|
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
backend = "xrender"
|
||||||
|
dithered-present = false;
|
||||||
|
use-damage = true;
|
||||||
|
# Fullscreen games bypass picom: less CPU work and latency.
|
||||||
|
unredir-if-possible = true;
|
||||||
|
|
||||||
|
shadow = true;
|
||||||
|
shadow-radius = 7;
|
||||||
|
shadow-offset-x = -7;
|
||||||
|
shadow-offset-y = -7;
|
||||||
|
|
||||||
|
fading = true;
|
||||||
|
fade-in-step = 0.03;
|
||||||
|
fade-out-step = 0.03;
|
||||||
|
|
||||||
|
frame-opacity = 0.9;
|
||||||
|
corner-radius = 0
|
||||||
|
blur-kern = "3x3box";
|
||||||
|
|
||||||
|
detect-rounded-corners = true;
|
||||||
|
detect-client-opacity = true;
|
||||||
|
detect-transient = true;
|
||||||
|
|
||||||
|
rules: ({
|
||||||
|
match = "window_type = 'tooltip'";
|
||||||
|
fade = false;
|
||||||
|
shadow = true;
|
||||||
|
opacity = 0.75;
|
||||||
|
full-shadow = false;
|
||||||
|
}, {
|
||||||
|
match = "window_type = 'dock' || "
|
||||||
|
"window_type = 'desktop' || "
|
||||||
|
"_GTK_FRAME_EXTENTS@";
|
||||||
|
blur-background = false;
|
||||||
|
}, {
|
||||||
|
match = "window_type = 'dock' || "
|
||||||
|
"window_type = 'desktop'";
|
||||||
|
corner-radius = 0;
|
||||||
|
}, {
|
||||||
|
match = "name = 'Notification' || "
|
||||||
|
"class_g = 'Conky' || "
|
||||||
|
"class_g ?= 'Notify-osd' || "
|
||||||
|
"class_g = 'Cairo-clock' || "
|
||||||
|
"_GTK_FRAME_EXTENTS@";
|
||||||
|
shadow = false;
|
||||||
|
}, {
|
||||||
|
# Unredirecting fullscreen i3lock/mpv left the HDMI output (reverse PRIME sink) black.
|
||||||
|
match = "class_g = 'i3lock' || "
|
||||||
|
"class_g = 'mpv'";
|
||||||
|
unredir = false;
|
||||||
|
})
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# Adds more common rates
|
||||||
|
context.properties = {
|
||||||
|
default.clock.allowed-rates = [ 44100 48000 88200 96000 ]
|
||||||
|
}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
[ColorScheme]
|
||||||
|
active_colors=#ffc6d0f5, #ff292c3c, #ffa5adce, #ff949cbb, #ff51576d, #ff737994, #ffc6d0f5, #ffc6d0f5, #ffc6d0f5, #ff303446, #ff292c3c, #ff838ba7, #ff8caaee, #ff303446, #ff8caaee, #ffe78284, #ff303446, #ffc6d0f5, #ff232634, #ffc6d0f5, #80838ba7
|
||||||
|
disabled_colors=#ffa5adce, #ff292c3c, #ffa5adce, #ff949cbb, #ff51576d, #ff737994, #ffa5adce, #ffa5adce, #ffa5adce, #ff303446, #ff292c3c, #ff838ba7, #ff626880, #ffb5bfe2, #ff8caaee, #ffe78284, #ff303446, #ffc6d0f5, #ff232634, #ffc6d0f5, #80838ba7
|
||||||
|
inactive_colors=#ffc6d0f5, #ff292c3c, #ffa5adce, #ff949cbb, #ff51576d, #ff737994, #ffc6d0f5, #ffc6d0f5, #ffc6d0f5, #ff303446, #ff292c3c, #ff838ba7, #ff414559, #ffa5adcb, #ff8caaee, #ffe78284, #ff303446, #ffc6d0f5, #ff232634, #ffc6d0f5, #80838ba7
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
[ColorScheme]
|
||||||
|
active_colors=#ffbd93f9, #ff424559, #ff484d6b, #ff6272a4, #ff44475a, #ff44475a, #ff6272a4, #ff44475a, #ffbd93f9, #ff282a36, #ff282a36, #ff44475a, #ff6272a4, #ffbd93f9, #ff8be9fd, #ff8be9fd, #ff44475a, #ff6272a4, #ff44475a, #fff8f8f2, #ff44475a
|
||||||
|
disabled_colors=#ffbd93f9, #ff424559, #ff484d6b, #ff6272a4, #ff44475a, #ff44475a, #ff6272a4, #ff44475a, #ffbd93f9, #ff282a36, #ff282a36, #ff44475a, #ff6272a4, #ffbd93f9, #ff8be9fd, #ff8be9fd, #ff44475a, #ff6272a4, #ff44475a, #fff8f8f2, #ff44475a
|
||||||
|
inactive_colors=#ffbd93f9, #ff424559, #ff484d6b, #ff6272a4, #ff44475a, #ff44475a, #ff6272a4, #ff44475a, #ffbd93f9, #ff282a36, #ff282a36, #ff44475a, #ff6272a4, #ffbd93f9, #ff8be9fd, #ff8be9fd, #ff44475a, #ff6272a4, #ff44475a, #fff8f8f2, #ff44475a
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
[ColorScheme]
|
||||||
|
active_colors=#7aa2f7, #24283b, #565f89, #c0caf5, #414868, #414868, #c0caf5, #414868, #7aa2f7, #1a1b26, #1a1b26, #414868, #343b58, #7aa2f7, #9ece6a, #9ece6a, #414868, #343b58, #414868, #565a6e, #414868
|
||||||
|
disabled_colors=#7aa2f7, #24283b, #565f89, #c0caf5, #414868, #414868, #c0caf5, #414868, #7aa2f7, #1a1b26, #1a1b26, #414868, #c0caf5, #7aa2f7, #9ece6a, #9ece6a, #414868, #c0caf5, #414868, #565a6e, #414868
|
||||||
|
inactive_colors=#7aa2f7, #24283b, #565f89, #c0caf5, #414868, #414868, #c0caf5, #414868, #7aa2f7, #1a1b26, #1a1b26, #414868, #c0caf5, #7aa2f7, #9ece6a, #9ece6a, #414868, #c0caf5, #414868, #565a6e, #414868
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
[Appearance]
|
||||||
|
color_scheme_path=/home/fuxino/.config/qt5ct/colors/Dracula.conf
|
||||||
|
custom_palette=true
|
||||||
|
icon_theme=Dracula
|
||||||
|
standard_dialogs=gtk3
|
||||||
|
style=Fusion
|
||||||
|
|
||||||
|
[Fonts]
|
||||||
|
fixed="Noto Sans,10,-1,5,50,0,0,0,0,0"
|
||||||
|
general="Noto Sans,10,-1,5,50,0,0,0,0,0"
|
||||||
|
|
||||||
|
[Interface]
|
||||||
|
activate_item_on_single_click=1
|
||||||
|
buttonbox_layout=0
|
||||||
|
cursor_flash_time=1000
|
||||||
|
dialog_buttons_have_icons=1
|
||||||
|
double_click_interval=400
|
||||||
|
gui_effects=@Invalid()
|
||||||
|
keyboard_scheme=2
|
||||||
|
menus_have_icons=true
|
||||||
|
show_shortcuts_in_context_menus=true
|
||||||
|
stylesheets=@Invalid()
|
||||||
|
toolbutton_style=4
|
||||||
|
underline_shortcut=1
|
||||||
|
wheel_scroll_lines=3
|
||||||
|
|
||||||
|
[SettingsWindow]
|
||||||
|
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a\x80\0\0\0\x11\0\0\xe\xff\0\0\x4\x37\0\0\a\x81\0\0\0\x12\0\0\xe\xfe\0\0\x4\x36\0\0\0\0\0\0\0\0\a\x80\0\0\a\x81\0\0\0\x12\0\0\xe\xfe\0\0\x4\x36)
|
||||||
|
|
||||||
|
[Troubleshooting]
|
||||||
|
force_raster_widgets=1
|
||||||
|
ignored_applications=@Invalid()
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
[ColorScheme]
|
||||||
|
active_colors=#ffc6d0f5, #ff292c3c, #ffa5adce, #ff949cbb, #ff51576d, #ff737994, #ffc6d0f5, #ffc6d0f5, #ffc6d0f5, #ff303446, #ff292c3c, #ff838ba7, #ff8caaee, #ff303446, #ff8caaee, #ffe78284, #ff303446, #ffc6d0f5, #ff232634, #ffc6d0f5, #80838ba7
|
||||||
|
disabled_colors=#ffa5adce, #ff292c3c, #ffa5adce, #ff949cbb, #ff51576d, #ff737994, #ffa5adce, #ffa5adce, #ffa5adce, #ff303446, #ff292c3c, #ff838ba7, #ff626880, #ffb5bfe2, #ff8caaee, #ffe78284, #ff303446, #ffc6d0f5, #ff232634, #ffc6d0f5, #80838ba7
|
||||||
|
inactive_colors=#ffc6d0f5, #ff292c3c, #ffa5adce, #ff949cbb, #ff51576d, #ff737994, #ffc6d0f5, #ffc6d0f5, #ffc6d0f5, #ff303446, #ff292c3c, #ff838ba7, #ff414559, #ffa5adcb, #ff8caaee, #ffe78284, #ff303446, #ffc6d0f5, #ff232634, #ffc6d0f5, #80838ba7
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
[ColorScheme]
|
||||||
|
active_colors=#ffbd93f9, #ff424559, #ff484d6b, #ff6272a4, #ff44475a, #ff44475a, #ff6272a4, #ff44475a, #ffbd93f9, #ff282a36, #ff282a36, #ff44475a, #ff6272a4, #ffbd93f9, #ff8be9fd, #ff8be9fd, #ff44475a, #ff6272a4, #ff44475a, #fff8f8f2, #ff44475a
|
||||||
|
disabled_colors=#ffbd93f9, #ff424559, #ff484d6b, #ff6272a4, #ff44475a, #ff44475a, #ff6272a4, #ff44475a, #ffbd93f9, #ff282a36, #ff282a36, #ff44475a, #ff6272a4, #ffbd93f9, #ff8be9fd, #ff8be9fd, #ff44475a, #ff6272a4, #ff44475a, #fff8f8f2, #ff44475a
|
||||||
|
inactive_colors=#ffbd93f9, #ff424559, #ff484d6b, #ff6272a4, #ff44475a, #ff44475a, #ff6272a4, #ff44475a, #ffbd93f9, #ff282a36, #ff282a36, #ff44475a, #ff6272a4, #ffbd93f9, #ff8be9fd, #ff8be9fd, #ff44475a, #ff6272a4, #ff44475a, #fff8f8f2, #ff44475a
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
[ColorScheme]
|
||||||
|
active_colors=#7aa2f7, #24283b, #565f89, #c0caf5, #414868, #414868, #c0caf5, #414868, #7aa2f7, #1a1b26, #1a1b26, #414868, #343b58, #7aa2f7, #9ece6a, #9ece6a, #414868, #343b58, #414868, #565a6e, #414868
|
||||||
|
disabled_colors=#7aa2f7, #24283b, #565f89, #c0caf5, #414868, #414868, #c0caf5, #414868, #7aa2f7, #1a1b26, #1a1b26, #414868, #c0caf5, #7aa2f7, #9ece6a, #9ece6a, #414868, #c0caf5, #414868, #565a6e, #414868
|
||||||
|
inactive_colors=#7aa2f7, #24283b, #565f89, #c0caf5, #414868, #414868, #c0caf5, #414868, #7aa2f7, #1a1b26, #1a1b26, #414868, #c0caf5, #7aa2f7, #9ece6a, #9ece6a, #414868, #c0caf5, #414868, #565a6e, #414868
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
[Appearance]
|
||||||
|
color_scheme_path=/home/fuxino/.config/qt6ct/colors/Dracula.conf
|
||||||
|
custom_palette=true
|
||||||
|
icon_theme=Dracula
|
||||||
|
standard_dialogs=gtk3
|
||||||
|
style=Fusion
|
||||||
|
|
||||||
|
[Fonts]
|
||||||
|
fixed="Noto Sans,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
|
||||||
|
general="Noto Sans,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1"
|
||||||
|
|
||||||
|
[Interface]
|
||||||
|
activate_item_on_single_click=1
|
||||||
|
buttonbox_layout=0
|
||||||
|
cursor_flash_time=1000
|
||||||
|
dialog_buttons_have_icons=1
|
||||||
|
double_click_interval=400
|
||||||
|
gui_effects=@Invalid()
|
||||||
|
keyboard_scheme=2
|
||||||
|
menus_have_icons=true
|
||||||
|
show_shortcuts_in_context_menus=true
|
||||||
|
stylesheets=@Invalid()
|
||||||
|
toolbutton_style=4
|
||||||
|
underline_shortcut=1
|
||||||
|
wheel_scroll_lines=3
|
||||||
|
|
||||||
|
[SettingsWindow]
|
||||||
|
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\a\x80\0\0\0\x11\0\0\xe\xff\0\0\x4\x37\0\0\a\x81\0\0\0\x12\0\0\xe\xfe\0\0\x4\x36\0\0\0\x1\0\0\0\0\a\x80\0\0\a\x81\0\0\0\x12\0\0\xe\xfe\0\0\x4\x36)
|
||||||
|
|
||||||
|
[Troubleshooting]
|
||||||
|
force_raster_widgets=1
|
||||||
|
ignored_applications=@Invalid()
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Notify when the last simple_backup is 14 days old or more
|
||||||
|
StartLimitIntervalSec=2h
|
||||||
|
StartLimitBurst=4
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=%h/.config/xmobar/backup.sh remind
|
||||||
|
# no notification daemon yet (e.g. caught up right after login)? retry a few times
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5min
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Check daily whether a backup is overdue
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*-*-* 10:00:00
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Ask to renew the calcurse Google Calendar login
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
# simple: the prompt waits for a click without a start timeout
|
||||||
|
Type=simple
|
||||||
|
ExecStart=%h/.local/bin/calcurse-relogin --prompt
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Sync calcurse with Google Calendar
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=%h/.local/bin/calcurse-sync
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Sync calcurse with Google Calendar hourly
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnActiveSec=1min
|
||||||
|
OnCalendar=hourly
|
||||||
|
Persistent=true
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Notify today's calcurse events
|
||||||
|
After=calcurse-sync.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=%h/.local/bin/calcurse-today
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Notify today's calcurse events every morning
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=*-*-* 09:00
|
||||||
|
Persistent=true
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run discover-overlay while Discord is running
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=%h/.local/bin/discover-overlay-wait
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5
|
||||||
@@ -6,3 +6,4 @@ ExecStart=/home/fuxino/.fehbg
|
|||||||
Type=simple
|
Type=simple
|
||||||
Restart=no
|
Restart=no
|
||||||
ProtectHome=read-only
|
ProtectHome=read-only
|
||||||
|
ReadWritePaths=%C
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Dump the Garmin database to ~/.local/share/negsplit/dumps
|
||||||
|
StartLimitIntervalSec=2h
|
||||||
|
StartLimitBurst=4
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=%h/.local/bin/db-dump negsplit Garmin week
|
||||||
|
# MariaDB not up yet (e.g. caught up right after boot)? retry a few times
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5min
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Dump the Garmin database weekly
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=weekly
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Dump the Library database to ~/.local/share/library_manager/dumps
|
||||||
|
StartLimitIntervalSec=2h
|
||||||
|
StartLimitBurst=4
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=%h/.local/bin/db-dump library_manager Library day
|
||||||
|
# MariaDB not up yet (e.g. caught up right after boot)? retry a few times
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5min
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Dump the Library database daily
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=daily
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=modprobed-db store at logout/shutdown
|
||||||
|
RequiresMountsFor=/home/
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
RemainAfterExit=yes
|
||||||
|
ExecStop=/usr/bin/modprobed-db storesilent
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
After=mpd-mpris.service
|
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
[Service]
|
||||||
|
Type=dbus
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=/usr/bin/playerctld
|
||||||
|
Restart=on-failure
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[Path]
|
||||||
|
PathChanged=/home/aur-local/aur-local.db.tar.gz.sig
|
||||||
|
PathChanged=/home/custom-pkgs/custom-pkgs.db.tar.gz.sig
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Dump the Weather database to ~/.local/share/ens-forecast/dumps
|
||||||
|
StartLimitIntervalSec=2h
|
||||||
|
StartLimitBurst=4
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=%h/.local/bin/db-dump ens-forecast Weather week
|
||||||
|
# MariaDB not up yet (e.g. caught up right after boot)? retry a few times
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=5min
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Dump the Weather database weekly
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=weekly
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
# The Fuck settings file
|
||||||
|
#
|
||||||
|
# The rules are defined as in the example bellow:
|
||||||
|
#
|
||||||
|
# rules = ['cd_parent', 'git_push', 'python_command', 'sudo']
|
||||||
|
#
|
||||||
|
# The default values are as follows. Uncomment and change to fit your needs.
|
||||||
|
# See https://github.com/nvbn/thefuck#settings for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
# rules = [<const: All rules enabled>]
|
||||||
|
# exclude_rules = []
|
||||||
|
# wait_command = 3
|
||||||
|
# require_confirmation = True
|
||||||
|
# no_colors = False
|
||||||
|
# debug = False
|
||||||
|
# priority = {}
|
||||||
|
# history_limit = None
|
||||||
|
# alter_history = True
|
||||||
|
# wait_slow_command = 15
|
||||||
|
# slow_commands = ['lein', 'react-native', 'gradle', './gradlew', 'vagrant']
|
||||||
|
# repeat = False
|
||||||
|
# instant_mode = False
|
||||||
|
# num_close_matches = 3
|
||||||
|
# env = {'LC_ALL': 'C', 'LANG': 'C', 'GIT_TRACE': '1'}
|
||||||
|
# excluded_search_path_prefixes = []
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# Remove vidthumb thumbnails (and leftover temp files) not used for 30 days; %C is $XDG_CACHE_HOME.
|
||||||
|
e %C/vidthumb - - - 30d
|
||||||
@@ -0,0 +1,566 @@
|
|||||||
|
" vim: filetype=vifm :
|
||||||
|
" Sample configuration file for vifm (last updated: 3 April, 2023)
|
||||||
|
" You can edit this file by hand.
|
||||||
|
" The " character at the beginning of a line comments out the line.
|
||||||
|
" Blank lines are ignored.
|
||||||
|
" The basic format for each item is shown with an example.
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
" Main settings
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" Command used to edit files in various contexts. The default is vim.
|
||||||
|
" If you would like to use another vi clone such as Elvis or Vile
|
||||||
|
" you will need to change this setting.
|
||||||
|
if executable('vim')
|
||||||
|
set vicmd=vim
|
||||||
|
elseif executable('nvim')
|
||||||
|
set vicmd=nvim
|
||||||
|
elseif executable('elvis')
|
||||||
|
set vicmd=elvis\ -G\ termcap
|
||||||
|
elseif executable('vile')
|
||||||
|
set vicmd=vile
|
||||||
|
elseif $EDITOR != ''
|
||||||
|
echo 'Note: using `'.$EDITOR.'` as an editor'
|
||||||
|
let &vicmd = $EDITOR
|
||||||
|
endif
|
||||||
|
|
||||||
|
" This makes vifm perform file operations on its own instead of relying on
|
||||||
|
" standard utilities like `cp`. While using `cp` and alike is a more universal
|
||||||
|
" solution, it's also much slower when processing large amounts of files and
|
||||||
|
" doesn't support progress measuring.
|
||||||
|
set syscalls
|
||||||
|
|
||||||
|
" Trash Directory
|
||||||
|
" The default is to move files that are deleted with dd or :d to
|
||||||
|
" the trash directory. If you change this you will not be able to move
|
||||||
|
" files by deleting them and then using p to put the file in the new location.
|
||||||
|
" I recommend not changing this until you are familiar with vifm.
|
||||||
|
" This probably shouldn't be an option.
|
||||||
|
set trash
|
||||||
|
|
||||||
|
" What should be saved automatically on restarting vifm. Drop "savedirs"
|
||||||
|
" value if you don't want vifm to remember last visited directories for you.
|
||||||
|
set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,
|
||||||
|
\phistory,fhistory,dirstack,registers,bookmarks,bmarks
|
||||||
|
|
||||||
|
" This is how many directories to store in the directory history.
|
||||||
|
set history=100
|
||||||
|
|
||||||
|
" Automatically resolve symbolic links on l or Enter.
|
||||||
|
set nofollowlinks
|
||||||
|
|
||||||
|
" Natural sort of (version) numbers within text.
|
||||||
|
set sortnumbers
|
||||||
|
|
||||||
|
" Maximum number of changes that can be undone.
|
||||||
|
set undolevels=100
|
||||||
|
|
||||||
|
" Use Vim's format of help file (has highlighting and "hyperlinks").
|
||||||
|
" If you would rather use a plain text help file set novimhelp.
|
||||||
|
set vimhelp
|
||||||
|
|
||||||
|
" If you would like to run an executable file when you
|
||||||
|
" press Enter, l or Right Arrow, set this.
|
||||||
|
set norunexec
|
||||||
|
|
||||||
|
" Format for displaying time in file list. For example:
|
||||||
|
" TIME_STAMP_FORMAT=%m/%d-%H:%M
|
||||||
|
" See man date or man strftime for details.
|
||||||
|
set timefmt='%Y/%m/%d %H:%M'
|
||||||
|
|
||||||
|
" Show list of matches on tab completion in command-line mode
|
||||||
|
set wildmenu
|
||||||
|
|
||||||
|
" Display completions in a form of popup with descriptions of the matches
|
||||||
|
set wildstyle=popup
|
||||||
|
|
||||||
|
" Display suggestions in normal, visual and view modes for keys, marks and
|
||||||
|
" registers (at most 5 files). In other view, when available.
|
||||||
|
set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
|
||||||
|
|
||||||
|
" Ignore case in search patterns unless it contains at least one uppercase
|
||||||
|
" letter
|
||||||
|
set ignorecase
|
||||||
|
set smartcase
|
||||||
|
|
||||||
|
" Don't highlight search results automatically
|
||||||
|
set nohlsearch
|
||||||
|
|
||||||
|
" Use increment searching (search while typing)
|
||||||
|
set incsearch
|
||||||
|
|
||||||
|
" Try to leave some space from cursor to upper/lower border in lists
|
||||||
|
set scrolloff=4
|
||||||
|
|
||||||
|
" Don't do too many requests to slow file systems
|
||||||
|
if !has('win')
|
||||||
|
set slowfs=curlftpfs
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Set custom status line look
|
||||||
|
set statusline=" Hint: %z%= %A %10u:%-7g %15s %20d "
|
||||||
|
|
||||||
|
" List of color schemes to try (picks the first one supported by the terminal)
|
||||||
|
colorscheme Default-256 Default
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
" Bookmarks
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" :mark mark /full/directory/path [filename]
|
||||||
|
|
||||||
|
mark b ~/bin/
|
||||||
|
mark h ~/
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
" Commands
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" :com[mand][!] command_name action
|
||||||
|
"
|
||||||
|
" These are some of the macros that can be used in the action part:
|
||||||
|
" %a for user arguments
|
||||||
|
" %c for current file under the cursor
|
||||||
|
" %C for current file under the cursor of inactive pane
|
||||||
|
" %f for selected file(s)
|
||||||
|
" %F for selected file(s) of inactive pane
|
||||||
|
" %b is the same as %f %F
|
||||||
|
" %d for current directory name
|
||||||
|
" %D for current directory name of inactive pane
|
||||||
|
" %r{x} for list of files in register {x}
|
||||||
|
" %m runs the command in a menu window
|
||||||
|
" %u uses command's output to build a file list
|
||||||
|
" see `:help vifm-macros` and `:help vifm-filename-modifiers` for more
|
||||||
|
|
||||||
|
command! df df -h %m 2> /dev/null
|
||||||
|
command! diff vim -d %f %F
|
||||||
|
command! zip zip -r %c.zip %f
|
||||||
|
command! run !! ./%f
|
||||||
|
command! make !!make %a
|
||||||
|
command! mkcd :mkdir %a | cd %a
|
||||||
|
command! vgrep vim "+grep %a"
|
||||||
|
command! reload :write | restart full
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
" File types association
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" :filetype pattern1,pattern2 defaultprogram,program2
|
||||||
|
" :fileviewer pattern1,pattern2 consoleviewer
|
||||||
|
"
|
||||||
|
" The first entry is the default program to be used with a matching file.
|
||||||
|
" The other programs for the file type can be accessed via :file command.
|
||||||
|
" The command macros like %f, %F, %d, %D may be used in the commands.
|
||||||
|
" The %a macro is ignored. To use a % you must put %%.
|
||||||
|
" Spaces in an app name must be escaped, for example: QuickTime\ Player.app
|
||||||
|
|
||||||
|
" For automated FUSE mounts, you must register an extension with :file[x]type
|
||||||
|
" in one of the following formats:
|
||||||
|
"
|
||||||
|
" :filetype patterns FUSE_MOUNT|mount_cmd %SOURCE_FILE %DESTINATION_DIR
|
||||||
|
"
|
||||||
|
" %SOURCE_FILE and %DESTINATION_DIR are filled in at runtime.
|
||||||
|
"
|
||||||
|
" Example:
|
||||||
|
" :filetype *.zip,*.[jwe]ar FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR
|
||||||
|
"
|
||||||
|
" :filetype patterns FUSE_MOUNT2|mount_cmd %PARAM %DESTINATION_DIR
|
||||||
|
"
|
||||||
|
" %PARAM and %DESTINATION_DIR are filled in at runtime.
|
||||||
|
"
|
||||||
|
" Example:
|
||||||
|
" :filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR
|
||||||
|
"
|
||||||
|
" %PARAM value is the first line of the matched file, example: root@127.0.0.1:/
|
||||||
|
"
|
||||||
|
" You can also add %CLEAR if you want to clear screen before running FUSE
|
||||||
|
" program. There is also %FOREGROUND, which is useful for entering passwords.
|
||||||
|
|
||||||
|
" Pdf
|
||||||
|
filextype {*.pdf},<application/pdf> zathura %c %i, apvlv %c, xpdf %c
|
||||||
|
fileviewer {*.pdf},<application/pdf> pdftotext -nopgbrk %c -
|
||||||
|
|
||||||
|
" PostScript
|
||||||
|
filextype {*.ps,*.eps,*.ps.gz},<application/postscript>
|
||||||
|
\ {View in zathura}
|
||||||
|
\ zathura %f,
|
||||||
|
\ {View in gv}
|
||||||
|
\ gv %c %i,
|
||||||
|
|
||||||
|
" Djvu
|
||||||
|
filextype {*.djvu},<image/vnd.djvu>
|
||||||
|
\ {View in zathura}
|
||||||
|
\ zathura %f,
|
||||||
|
\ {View in apvlv}
|
||||||
|
\ apvlv %f,
|
||||||
|
|
||||||
|
" Midi
|
||||||
|
filetype {*.mid,*.kar}
|
||||||
|
\ {Play using TiMidity++}
|
||||||
|
\ timidity %f,
|
||||||
|
|
||||||
|
" Audio
|
||||||
|
filetype {*.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus,
|
||||||
|
\*.aac,*.mpga},
|
||||||
|
\<audio/*>
|
||||||
|
\ {Play using MPlayer}
|
||||||
|
\ mplayer %f,
|
||||||
|
\ {Play using mpv}
|
||||||
|
\ mpv --no-video %f %s,
|
||||||
|
\ {Play using ffplay}
|
||||||
|
\ ffplay -nodisp -hide_banner -autoexit %c,
|
||||||
|
fileviewer {*.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus,
|
||||||
|
\*.aac,*.mpga},
|
||||||
|
\<audio/*>
|
||||||
|
\ ffprobe -hide_banner -pretty %c 2>&1
|
||||||
|
|
||||||
|
" Video
|
||||||
|
filextype {*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||||
|
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||||
|
\*.as[fx],*.unknown_video},
|
||||||
|
\<video/*>
|
||||||
|
\ {View using ffplay}
|
||||||
|
\ ffplay -fs -hide_banner -autoexit %f,
|
||||||
|
\ {View using Dragon}
|
||||||
|
\ dragon %f:p,
|
||||||
|
\ {View using mplayer}
|
||||||
|
\ mplayer %f,
|
||||||
|
\ {Play using mpv}
|
||||||
|
\ mpv --no-video %f,
|
||||||
|
fileviewer {*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||||
|
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||||
|
\*.as[fx],*.unknown_video},
|
||||||
|
\<video/*>
|
||||||
|
\ ffprobe -hide_banner -pretty %c 2>&1
|
||||||
|
|
||||||
|
" Web
|
||||||
|
filextype {*.xhtml,*.html,*.htm},<text/html>
|
||||||
|
\ {Open with qutebrowser}
|
||||||
|
\ qutebrowser %f %i,
|
||||||
|
\ {Open with firefox}
|
||||||
|
\ firefox %f &,
|
||||||
|
filetype {*.xhtml,*.html,*.htm},<text/html> links, lynx
|
||||||
|
|
||||||
|
" Object
|
||||||
|
filetype {*.o},<application/x-object> nm %f | less
|
||||||
|
|
||||||
|
" Man page
|
||||||
|
filetype {*.[1-8]},<text/troff> man ./%c
|
||||||
|
fileviewer {*.[1-8]},<text/troff> man ./%c | col -b
|
||||||
|
|
||||||
|
" Images
|
||||||
|
filextype {*.svg,*.svgz},<image/svg+xml>
|
||||||
|
\ {Edit in Inkscape}
|
||||||
|
\ inkscape %f,
|
||||||
|
\ {View in Inkview}
|
||||||
|
\ inkview %f,
|
||||||
|
filextype {*.cr2}
|
||||||
|
\ {Open in Darktable}
|
||||||
|
\ darktable %f,
|
||||||
|
\ {Open in RawTherapee}
|
||||||
|
\ rawtherapee %f,
|
||||||
|
filextype {*.xcf}
|
||||||
|
\ {Open in GIMP}
|
||||||
|
\ gimp %f,
|
||||||
|
filextype {.kra}
|
||||||
|
\ {Open in Krita}
|
||||||
|
\ krita %f,
|
||||||
|
filextype {.blend}
|
||||||
|
\ {Open in Blender}
|
||||||
|
\ blender %c,
|
||||||
|
filextype {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
|
||||||
|
\ {View in sxiv}
|
||||||
|
\ sxiv %f,
|
||||||
|
\ {View in gpicview}
|
||||||
|
\ gpicview %c,
|
||||||
|
\ {View in shotwell}
|
||||||
|
\ shotwell,
|
||||||
|
fileviewer {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
|
||||||
|
\ identify %f
|
||||||
|
|
||||||
|
" OpenRaster
|
||||||
|
filextype *.ora
|
||||||
|
\ {Edit in MyPaint}
|
||||||
|
\ mypaint %f,
|
||||||
|
|
||||||
|
" Mindmap
|
||||||
|
filextype *.vym
|
||||||
|
\ {Open with VYM}
|
||||||
|
\ vym %f &,
|
||||||
|
|
||||||
|
" MD5
|
||||||
|
filetype *.md5
|
||||||
|
\ {Check MD5 hash sum}
|
||||||
|
\ md5sum -c %f %S,
|
||||||
|
|
||||||
|
" SHA1
|
||||||
|
filetype *.sha1
|
||||||
|
\ {Check SHA1 hash sum}
|
||||||
|
\ sha1sum -c %f %S,
|
||||||
|
|
||||||
|
" SHA256
|
||||||
|
filetype *.sha256
|
||||||
|
\ {Check SHA256 hash sum}
|
||||||
|
\ sha256sum -c %f %S,
|
||||||
|
|
||||||
|
" SHA512
|
||||||
|
filetype *.sha512
|
||||||
|
\ {Check SHA512 hash sum}
|
||||||
|
\ sha512sum -c %f %S,
|
||||||
|
|
||||||
|
" GPG signature
|
||||||
|
filetype {*.asc},<application/pgp-signature>
|
||||||
|
\ {Check signature}
|
||||||
|
\ !!gpg --verify %c,
|
||||||
|
|
||||||
|
" Torrent
|
||||||
|
filetype {*.torrent},<application/x-bittorrent> ktorrent %f &
|
||||||
|
fileviewer {*.torrent},<application/x-bittorrent>
|
||||||
|
\ dumptorrent -v %c,
|
||||||
|
\ transmission-show %c
|
||||||
|
|
||||||
|
" FuseZipMount
|
||||||
|
filetype {*.zip,*.jar,*.war,*.ear,*.oxt,*.apkg},
|
||||||
|
\<application/zip,application/java-archive>
|
||||||
|
\ {Mount with fuse-zip}
|
||||||
|
\ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR,
|
||||||
|
\ {View contents}
|
||||||
|
\ unzip -l %f | less,
|
||||||
|
\ {Extract here}
|
||||||
|
\ unzip %c,
|
||||||
|
fileviewer *.zip,*.jar,*.war,*.ear,*.oxt unzip -l %f
|
||||||
|
|
||||||
|
" ArchiveMount
|
||||||
|
filetype {*.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz,*.tar.zst,
|
||||||
|
\*.tzst},
|
||||||
|
\<application/x-tar>
|
||||||
|
\ {Mount with archivemount}
|
||||||
|
\ FUSE_MOUNT|archivemount %SOURCE_FILE %DESTINATION_DIR,
|
||||||
|
fileviewer *.tgz,*.tar.gz tar -tzf %c
|
||||||
|
fileviewer *.tar.bz2,*.tbz2 tar -tjf %c
|
||||||
|
fileviewer *.tar.xz,*.txz tar -tJf %c
|
||||||
|
fileviewer *.tar.zst,*.tzst tar -t --zstd -f %c
|
||||||
|
fileviewer {*.tar},<application/x-tar> tar -tf %c
|
||||||
|
|
||||||
|
" Rar2FsMount and rar archives
|
||||||
|
filetype {*.rar},<application/x-rar>
|
||||||
|
\ {Mount with rar2fs}
|
||||||
|
\ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR,
|
||||||
|
fileviewer {*.rar},<application/x-rar> unrar v %c
|
||||||
|
|
||||||
|
" IsoMount
|
||||||
|
filetype {*.iso},<application/x-iso9660-image>
|
||||||
|
\ {Mount with fuseiso}
|
||||||
|
\ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR,
|
||||||
|
|
||||||
|
" SshMount
|
||||||
|
filetype *.ssh
|
||||||
|
\ {Mount with sshfs}
|
||||||
|
\ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR %FOREGROUND,
|
||||||
|
|
||||||
|
" FtpMount
|
||||||
|
filetype *.ftp
|
||||||
|
\ {Mount with curlftpfs}
|
||||||
|
\ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %FOREGROUND,
|
||||||
|
|
||||||
|
" Fuse7z and 7z archives
|
||||||
|
filetype {*.7z},<application/x-7z-compressed>
|
||||||
|
\ {Mount with fuse-7z}
|
||||||
|
\ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR,
|
||||||
|
fileviewer {*.7z},<application/x-7z-compressed> 7z l %c
|
||||||
|
|
||||||
|
" Office files
|
||||||
|
filextype {*.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx,*.ppt},
|
||||||
|
\<application/vnd.openxmlformats-officedocument.*,
|
||||||
|
\application/msword,
|
||||||
|
\application/vnd.ms-excel>
|
||||||
|
\ libreoffice %f &
|
||||||
|
fileviewer {*.doc},<application/msword> catdoc %c
|
||||||
|
fileviewer {*.docx},
|
||||||
|
\<application/
|
||||||
|
\vnd.openxmlformats-officedocument.wordprocessingml.document>
|
||||||
|
\ docx2txt.pl %f -
|
||||||
|
|
||||||
|
" TuDu files
|
||||||
|
filetype *.tudu tudu -f %c
|
||||||
|
|
||||||
|
" Qt projects
|
||||||
|
filextype *.pro qtcreator %f &
|
||||||
|
|
||||||
|
" Directories
|
||||||
|
filextype */
|
||||||
|
\ {View in thunar}
|
||||||
|
\ Thunar %f &,
|
||||||
|
|
||||||
|
" Syntax highlighting in preview
|
||||||
|
"
|
||||||
|
" Explicitly set highlight type for some extensions
|
||||||
|
"
|
||||||
|
" 256-color terminal
|
||||||
|
" fileviewer *.[ch],*.[ch]pp highlight -O xterm256 -s dante --syntax c %c
|
||||||
|
" fileviewer Makefile,Makefile.* highlight -O xterm256 -s dante --syntax make %c
|
||||||
|
"
|
||||||
|
" 16-color terminal
|
||||||
|
" fileviewer *.c,*.h highlight -O ansi -s dante %c
|
||||||
|
"
|
||||||
|
" Or leave it for automatic detection
|
||||||
|
" fileviewer *[^/] pygmentize -O style=monokai -f console256 -g
|
||||||
|
|
||||||
|
" Displaying pictures in terminal
|
||||||
|
" fileviewer *.jpg,*.png shellpic %c
|
||||||
|
|
||||||
|
" Open all other files with default system programs (you can also remove all
|
||||||
|
" :file[x]type commands above to ensure they don't interfere with system-wide
|
||||||
|
" settings). By default all unknown files are opened with 'vi[x]cmd'
|
||||||
|
" uncommenting one of lines below will result in ignoring 'vi[x]cmd' option
|
||||||
|
" for unknown file types.
|
||||||
|
" For *nix:
|
||||||
|
" filetype * xdg-open
|
||||||
|
" For OS X:
|
||||||
|
" filetype * open
|
||||||
|
" For Windows:
|
||||||
|
" filetype * explorer %"f &
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
" Panel configuration examples
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" Customize view columns a bit (enable ellipsis for truncated file names)
|
||||||
|
" set viewcolumns=-{name}..,6{}.
|
||||||
|
|
||||||
|
" Show vertical border
|
||||||
|
" set fillchars=vborder:│
|
||||||
|
|
||||||
|
" Filter-out build and temporary files
|
||||||
|
" filter! {*.lo,*.o,*.d,*.class,*.pyc,*.pyo,.*~}
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
" Sample keyboard mappings
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" Start shell in current directory
|
||||||
|
nnoremap s :shell<cr>
|
||||||
|
|
||||||
|
" Display sorting dialog
|
||||||
|
nnoremap S :sort<cr>
|
||||||
|
|
||||||
|
" Toggle visibility of preview window
|
||||||
|
nnoremap w :view<cr>
|
||||||
|
vnoremap w :view<cr>gv
|
||||||
|
|
||||||
|
if $DISPLAY && executable('gvim')
|
||||||
|
" Open file in existing instance of gvim
|
||||||
|
nnoremap o :!gvim --remote-tab-silent %f<cr>
|
||||||
|
" Open file in new instance of gvim
|
||||||
|
nnoremap O :!gvim %f<cr>
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Open file in the background using its default program
|
||||||
|
nnoremap gb :file &<cr>l
|
||||||
|
|
||||||
|
" Interaction with system clipboard
|
||||||
|
if has('win')
|
||||||
|
" Yank current directory path to Windows clipboard with forward slashes
|
||||||
|
nnoremap yp :!echo %"d:gs!\!/! %i | clip<cr>
|
||||||
|
" Yank path to current file to Windows clipboard with forward slashes
|
||||||
|
nnoremap yf :!echo %"c:gs!\!/! %i | clip<cr>
|
||||||
|
elseif $WAYLAND_DISPLAY != ''
|
||||||
|
if executable('wl-copy')
|
||||||
|
" Yank current directory path into primary and selection clipboards
|
||||||
|
nnoremap yd :!echo -n %d | wl-copy %i &&
|
||||||
|
\ echo -n %d | wl-copy -p %i<cr>
|
||||||
|
" Yank current file path into into primary and selection clipboards
|
||||||
|
nnoremap yf :!echo -n %c:p | wl-copy %i &&
|
||||||
|
\ echo -n %c:p | wl-copy -p %i<cr>
|
||||||
|
endif
|
||||||
|
elseif $DISPLAY != ''
|
||||||
|
if executable('xclip')
|
||||||
|
" Yank current directory path into the clipboard
|
||||||
|
nnoremap yd :!echo %d | xclip %i<cr>
|
||||||
|
" Yank current file path into the clipboard
|
||||||
|
nnoremap yf :!echo %c:p | xclip %i<cr>
|
||||||
|
elseif executable('xsel')
|
||||||
|
" Yank current directory path into primary and selection clipboards
|
||||||
|
nnoremap yd :!echo -n %d | xsel --input --primary %i &&
|
||||||
|
\ echo -n %d | xsel --clipboard --input %i<cr>
|
||||||
|
" Yank current file path into into primary and selection clipboards
|
||||||
|
nnoremap yf :!echo -n %c:p | xsel --input --primary %i &&
|
||||||
|
\ echo -n %c:p | xsel --clipboard --input %i<cr>
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Mappings for faster renaming
|
||||||
|
nnoremap I cw<c-a>
|
||||||
|
nnoremap cc cw<c-u>
|
||||||
|
nnoremap A cw
|
||||||
|
|
||||||
|
" As above, but without the file extension
|
||||||
|
" nnoremap I cW<c-a>
|
||||||
|
" nnoremap cc cW<c-u>
|
||||||
|
" nnoremap A cW
|
||||||
|
|
||||||
|
" Open console in current directory
|
||||||
|
if $DISPLAY && executable('xterm')
|
||||||
|
nnoremap ,t :!xterm &<cr>
|
||||||
|
elseif $TERMINAL != ''
|
||||||
|
nnoremap ,t :!$TERMINAL &<cr>
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Open editor to edit vifmrc and apply settings after returning to vifm
|
||||||
|
nnoremap ,c :write | edit $MYVIFMRC | restart full<cr>
|
||||||
|
|
||||||
|
" Open gvim to edit vifmrc
|
||||||
|
if $DISPLAY && executable('gvim')
|
||||||
|
nnoremap ,C :!gvim --remote-tab-silent $MYVIFMRC &<cr>
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Toggle wrap setting on ,w key
|
||||||
|
nnoremap ,w :set wrap!<cr>
|
||||||
|
|
||||||
|
" Example of standard two-panel file managers mappings
|
||||||
|
nnoremap <f3> :!less %f<cr>
|
||||||
|
nnoremap <f4> :edit<cr>
|
||||||
|
nnoremap <f5> :copy<cr>
|
||||||
|
nnoremap <f6> :move<cr>
|
||||||
|
nnoremap <f7> :mkdir<space>
|
||||||
|
nnoremap <f8> :delete<cr>
|
||||||
|
|
||||||
|
" Midnight commander alike mappings
|
||||||
|
" Open current directory in the other pane
|
||||||
|
nnoremap <a-i> :sync<cr>
|
||||||
|
" Open directory under cursor in the other pane
|
||||||
|
nnoremap <a-o> :sync %c<cr>
|
||||||
|
" Swap panes
|
||||||
|
nnoremap <c-u> <c-w>x
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
" Various customization examples
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" Use ag (the silver searcher) instead of grep
|
||||||
|
" set grepprg='ag --line-numbers %i %a %s'
|
||||||
|
|
||||||
|
" Add additional place to look for executables
|
||||||
|
" let $PATH = $HOME.'/bin/fuse:'.$PATH
|
||||||
|
|
||||||
|
" Block particular shortcut
|
||||||
|
" nnoremap <left> <nop>
|
||||||
|
|
||||||
|
" Export IPC name of current instance as environment variable and use it to
|
||||||
|
" communicate with the instance later.
|
||||||
|
"
|
||||||
|
" It can be used in some shell script that gets run from inside vifm, for
|
||||||
|
" example, like this:
|
||||||
|
" vifm --server-name "$VIFM_SERVER_NAME" --remote +"cd '$PWD'"
|
||||||
|
"
|
||||||
|
" let $VIFM_SERVER_NAME = v:servername
|
||||||
|
|
||||||
|
" Activate screen/tmux support
|
||||||
|
" screen!
|
||||||
|
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
" Icon decorations example
|
||||||
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
" https://github.com/cirala/vifm_devicons
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[preferred]
|
||||||
|
default=gtk
|
||||||
|
org.freedesktop.impl.portal.Notification=dunst
|
||||||
Executable
+63
@@ -0,0 +1,63 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Days since the last simple_backup for xmobar, e.g. " 9d | ": hidden under 7 days, orange from 7, red from 14
|
||||||
|
# Reads simple_backup's state file and the journal (versions before the state file only log there), whichever is newer.
|
||||||
|
# With "list": show the date in a notification (for a click on the bar)
|
||||||
|
# With "remind": notify only when a backup is overdue (run daily by backup-reminder.timer)
|
||||||
|
|
||||||
|
warn=7 overdue=14
|
||||||
|
state="${XDG_STATE_HOME:-$HOME/.local/state}/simple_backup/last_backup"
|
||||||
|
|
||||||
|
last=0 dir=""
|
||||||
|
if [[ -r $state ]]; then
|
||||||
|
{ read -r time; read -r dir; } < "$state"
|
||||||
|
last=$(date -d "$time" +%s 2>/dev/null) || last=0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# The journal drops old entries, so after a long gap there may be nothing left to find
|
||||||
|
line=$(journalctl -q -t /usr/bin/simple_backup -r -o short-unix 2>/dev/null | grep -m1 'Backup completed')
|
||||||
|
jlast=${line%%.*}
|
||||||
|
if [[ $jlast =~ ^[0-9]+$ ]] && (( jlast > last )); then
|
||||||
|
last=$jlast dir=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
days=$(( ($(date +%s) - last) / 86400 ))
|
||||||
|
|
||||||
|
age() {
|
||||||
|
case $days in
|
||||||
|
0) echo "today" ;;
|
||||||
|
1) echo "1 day ago" ;;
|
||||||
|
*) echo "$days days ago" ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
case ${1:-} in
|
||||||
|
list)
|
||||||
|
if (( last )); then
|
||||||
|
body="$(date -d "@$last" '+%Y-%m-%d %H:%M') ($(age))"
|
||||||
|
[[ -n $dir ]] && body+=$'\n'"$dir"
|
||||||
|
else
|
||||||
|
body="No backup found"
|
||||||
|
fi
|
||||||
|
notify-send "Last backup" "$body"
|
||||||
|
exit ;;
|
||||||
|
remind)
|
||||||
|
(( last && days < overdue )) && exit 0
|
||||||
|
if (( last )); then
|
||||||
|
body="Last backup $(age) ($(date -d "@$last" '+%Y-%m-%d'))"
|
||||||
|
else
|
||||||
|
body="No backup found"
|
||||||
|
fi
|
||||||
|
# A failure (e.g. no notification daemon yet) makes the service retry
|
||||||
|
exec notify-send "Backup overdue" "$body. Plug in the backup disk." ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
(( last && days < warn )) && exit 0
|
||||||
|
icon=$'\xef\x82\xa0' # nf-fa-hdd_o, as UTF-8 bytes so the locale doesn't matter
|
||||||
|
if (( ! last )); then
|
||||||
|
text="<fc=#f7768e>$icon ?</fc>"
|
||||||
|
elif (( days >= overdue )); then
|
||||||
|
text="<fc=#f7768e>$icon ${days}d</fc>"
|
||||||
|
else
|
||||||
|
text="<fc=#ffb86c>$icon ${days}d</fc>"
|
||||||
|
fi
|
||||||
|
echo "$text | "
|
||||||
Executable
+42
@@ -0,0 +1,42 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Next calcurse item for xmobar: pink " 10:15 | " for an appointment later today, a cyan icon for a whole-day
|
||||||
|
# event today, a pink icon alone when the next appointment is tomorrow; empty otherwise.
|
||||||
|
# With "list": show today's and tomorrow's items in a notification (for a click on the bar)
|
||||||
|
set -uo pipefail
|
||||||
|
|
||||||
|
icon=$'\xf3\xb0\x83\xad' # nf-md-calendar, as UTF-8 bytes so the locale doesn't matter
|
||||||
|
today=$(date +%F)
|
||||||
|
|
||||||
|
query() {
|
||||||
|
calcurse -Q --filter-type cal --days 2 --output-datefmt %F "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ ${1:-} == list ]]; then
|
||||||
|
tomorrow=$(date -d tomorrow +%F)
|
||||||
|
body=$(query --format-apt '%S–%E %m\n' --format-recur-apt '%S–%E %m\n' \
|
||||||
|
--format-event 'all day %m\n' --format-recur-event 'all day %m\n' |
|
||||||
|
sed -e 's/&/\&/g; s/</\</g; s/>/\>/g' -e "s/^$today:$/Today:/; s/^$tomorrow:$/Tomorrow:/")
|
||||||
|
notify-send -a calcurse -i x-office-calendar "Calendar" "${body:-Nothing today or tomorrow}"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
now=$(date +%s)
|
||||||
|
day="" next="" event=false
|
||||||
|
while read -r kind start; do
|
||||||
|
case $kind in
|
||||||
|
*:) day=${kind%:} ;;
|
||||||
|
A) [[ -z $next ]] && ((start > now)) && next=$start ;;
|
||||||
|
E) [[ $day == "$today" ]] && event=true ;;
|
||||||
|
esac
|
||||||
|
done < <(query --format-apt 'A %s\n' --format-recur-apt 'A %s\n' --format-event 'E\n' --format-recur-event 'E\n')
|
||||||
|
|
||||||
|
if [[ -n $next && $(date -d "@$next" +%F) == "$today" ]]; then
|
||||||
|
text="<fc=#ff79c6>$icon $(date -d "@$next" +%H:%M)</fc>"
|
||||||
|
elif $event; then
|
||||||
|
text="<fc=#8be9fd>$icon</fc>"
|
||||||
|
elif [[ -n $next ]]; then
|
||||||
|
text="<fc=#ff79c6>$icon</fc>"
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
echo "$text | "
|
||||||
@@ -13,7 +13,7 @@ declare -A LABEL=([ncep_gefs025]=GEFS [icon_seamless_eps]=ICON [google_weatherne
|
|||||||
pick() {
|
pick() {
|
||||||
local m l head first="" first_model="" err=""
|
local m l head first="" first_model="" err=""
|
||||||
for m in "${MODELS[@]}"; do
|
for m in "${MODELS[@]}"; do
|
||||||
if ! l=$(ens-forecast --brief "$1" --model "$m" 2>&1); then
|
if ! l=$(ens-forecast brief "$1" --model "$m" 2>&1); then
|
||||||
[[ -z $err ]] && err=$l
|
[[ -z $err ]] && err=$l
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
@@ -47,9 +47,11 @@ if [ "$1" = "week" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
pick 1 2>/dev/null || exit 0
|
pick 1 2>/dev/null || exit 0
|
||||||
read -r day temps rain <<< "${line#*: }"
|
read -r day temps rain extra <<< "${line#*: }"
|
||||||
|
# Probabilities as nf-weather icons: frost snowflake_cold, snow, heat hot
|
||||||
|
extra=${extra//frost /$'\xee\x8d\xaf' } extra=${extra//snow /$'\xee\x8c\x9a' } extra=${extra//heat /$'\xee\x8d\xab' }
|
||||||
label=""
|
label=""
|
||||||
[[ $model != "${MODELS[0]}" ]] && label="${LABEL[$model]:-$model} "
|
[[ $model != "${MODELS[0]}" ]] && label="${LABEL[$model]:-$model} "
|
||||||
stale=""
|
stale=""
|
||||||
[[ ${line%%: *} == *STALE* ]] && stale=" <fc=#f7768e>!</fc>"
|
[[ ${line%%: *} == *STALE* ]] && stale=" <fc=#f7768e>!</fc>"
|
||||||
echo "$label$day ${temps%C} "$''" $rain$stale"
|
echo "$label$day ${temps%C} "$''" $rain${extra:+ $extra}$stale"
|
||||||
Executable
+17
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# NVIDIA GPU load and temperature for xmobar, e.g. "<icon> 9% 68°C", colored like the CPU ones.
|
||||||
|
# Load 25/75 as MultiCpu; temperature 75/90 (GTX 1050 Ti Mobile: target 94°C, ~65°C driving the HDMI output).
|
||||||
|
|
||||||
|
color() { # value low high
|
||||||
|
if (( $1 > $3 )); then c='#ff5555'; elif (( $1 > $2 )); then c='#ffb86c'; else c='#50fa7b'; fi
|
||||||
|
printf '<fc=%s>%s</fc>' "$c" "$4"
|
||||||
|
}
|
||||||
|
|
||||||
|
icon=$'\U000f08ae'
|
||||||
|
IFS=', ' read -r load temp < <(nvidia-smi --query-gpu=utilization.gpu,temperature.gpu --format=csv,noheader,nounits 2>/dev/null)
|
||||||
|
if [[ ! $load =~ ^[0-9]+$ || ! $temp =~ ^[0-9]+$ ]]; then
|
||||||
|
echo "$icon N/A"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$icon $(color "$load" 25 75 "$load%") $(color "$temp" 75 90 "$temp°C")"
|
||||||
Executable
+24
@@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Cycle keyboard layout it -> us -> sk(qwerty); "prev" cycles backwards.
|
||||||
|
|
||||||
|
current=$(setxkbmap -query | awk '/^layout:/ {split($2, a, ","); print a[1]}')
|
||||||
|
|
||||||
|
if [[ "$1" == "prev" ]]; then
|
||||||
|
case "$current" in
|
||||||
|
it) next=sk ;;
|
||||||
|
us) next=it ;;
|
||||||
|
*) next=us ;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
case "$current" in
|
||||||
|
it) next=us ;;
|
||||||
|
us) next=sk ;;
|
||||||
|
*) next=it ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$next" == "sk" ]]; then
|
||||||
|
setxkbmap -layout sk -variant qwerty
|
||||||
|
else
|
||||||
|
setxkbmap -layout "$next" -variant ""
|
||||||
|
fi
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Pending updates for xmobar from update-notify's pending list, e.g. " 15/3 | " (repo/AUR), empty when none
|
# Pending updates for xmobar from update-notify's pending list, e.g. " 15/3 | " (repo/AUR), empty when none
|
||||||
# Entries already installed are dropped, so the count falls right after an upgrade. Orange from the threshold
|
# Entries already installed are dropped, so the count falls right after an upgrade. Orange from the threshold
|
||||||
# on, red "K" when a custom kernel needs a rebuild.
|
# on, red "K" when a custom kernel needs a rebuild, red "R" when a reboot is needed, blue "P" for .pacnew files.
|
||||||
# With "list": show the pending packages in a notification (for a click on the bar)
|
# With "list": show the pending packages in a notification (for a click on the bar)
|
||||||
|
|
||||||
file="${XDG_STATE_HOME:-$HOME/.local/state}/update-notify/pending"
|
file="${XDG_STATE_HOME:-$HOME/.local/state}/update-notify/pending"
|
||||||
@@ -11,7 +11,7 @@ mapfile -t entries < "$file"
|
|||||||
names=()
|
names=()
|
||||||
for e in "${entries[@]}"; do
|
for e in "${entries[@]}"; do
|
||||||
read -r src pkg _ <<< "$e"
|
read -r src pkg _ <<< "$e"
|
||||||
[[ $src != threshold ]] && names+=("$pkg")
|
case $src in repo|aur|kernel) names+=("$pkg") ;; esac
|
||||||
done
|
done
|
||||||
|
|
||||||
declare -A installed
|
declare -A installed
|
||||||
@@ -21,10 +21,15 @@ if (( ${#names[@]} )); then
|
|||||||
done < <(pacman -Q "${names[@]}" 2>/dev/null)
|
done < <(pacman -Q "${names[@]}" 2>/dev/null)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
threshold=0 repo=() aur=() kernel=()
|
threshold=0 repo=() aur=() kernel=() pacnew=() reboot=""
|
||||||
|
running=$(uname -r)
|
||||||
for e in "${entries[@]}"; do
|
for e in "${entries[@]}"; do
|
||||||
read -r src pkg new <<< "$e"
|
read -r src pkg new <<< "$e"
|
||||||
[[ $src == threshold ]] && { threshold=$pkg; continue; }
|
case $src in
|
||||||
|
threshold) threshold=$pkg; continue ;;
|
||||||
|
pacnew) [[ -e ${e#pacnew } ]] && pacnew+=("${e#pacnew }"); continue ;; # gone once merged
|
||||||
|
reboot) [[ $pkg == "$running" ]] && reboot=$pkg; continue ;; # gone after the reboot
|
||||||
|
esac
|
||||||
have=${installed[$pkg]:-}
|
have=${installed[$pkg]:-}
|
||||||
[[ -z $have ]] && continue # removed since the last run
|
[[ -z $have ]] && continue # removed since the last run
|
||||||
case $src in
|
case $src in
|
||||||
@@ -39,14 +44,19 @@ if [[ ${1:-} == list ]]; then
|
|||||||
(( ${#repo[@]} )) && { printf -v l '%s\n' "${repo[@]}"; body+="Repo:"$'\n'"$l"; }
|
(( ${#repo[@]} )) && { printf -v l '%s\n' "${repo[@]}"; body+="Repo:"$'\n'"$l"; }
|
||||||
(( ${#aur[@]} )) && { printf -v l '%s\n' "${aur[@]}"; body+="AUR:"$'\n'"$l"; }
|
(( ${#aur[@]} )) && { printf -v l '%s\n' "${aur[@]}"; body+="AUR:"$'\n'"$l"; }
|
||||||
(( ${#kernel[@]} )) && { printf -v l 'Rebuild %s\n' "${kernel[@]}"; body+="$l"; }
|
(( ${#kernel[@]} )) && { printf -v l 'Rebuild %s\n' "${kernel[@]}"; body+="$l"; }
|
||||||
|
(( ${#pacnew[@]} )) && { printf -v l '%s\n' "${pacnew[@]}"; body+="Merge with pacdiff:"$'\n'"$l"; }
|
||||||
|
[[ -n $reboot ]] && body+="Reboot (running $reboot)"$'\n'
|
||||||
body=${body%$'\n'}
|
body=${body%$'\n'}
|
||||||
notify-send "Pending updates" "${body:-None}"
|
notify-send "Pending updates" "${body:-None}"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
total=$(( ${#repo[@]} + ${#aur[@]} ))
|
total=$(( ${#repo[@]} + ${#aur[@]} ))
|
||||||
(( total + ${#kernel[@]} )) || exit 0
|
(( total + ${#kernel[@]} + ${#pacnew[@]} )) || [[ -n $reboot ]] || exit 0
|
||||||
text=$'\xef\x92\x87'" ${#repo[@]}/${#aur[@]}" # nf-oct-package, as UTF-8 bytes so the locale doesn't matter
|
text=$'\xef\x92\x87' # nf-oct-package, as UTF-8 bytes so the locale doesn't matter
|
||||||
(( total >= threshold )) && text="<fc=#ffb86c>$text</fc>"
|
(( total )) && text+=" ${#repo[@]}/${#aur[@]}" # markers alone: no "0/0"
|
||||||
|
(( total && total >= threshold )) && text="<fc=#ffb86c>$text</fc>"
|
||||||
(( ${#kernel[@]} )) && text+=" <fc=#f7768e>K</fc>"
|
(( ${#kernel[@]} )) && text+=" <fc=#f7768e>K</fc>"
|
||||||
|
[[ -n $reboot ]] && text+=" <fc=#f7768e>R</fc>"
|
||||||
|
(( ${#pacnew[@]} )) && text+=" <fc=#7aa2f7>P</fc>"
|
||||||
echo "$text | "
|
echo "$text | "
|
||||||
Executable
+81
@@ -0,0 +1,81 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Current weather for xmobar, e.g. "<icon> 7°C": NOAA's decoded METAR (the source of xmobar's Weather plugin)
|
||||||
|
# Icon from the weather, else the sky conditions; clear/partly/mostly cloudy get moon icons when the sun is down.
|
||||||
|
# Temperature colors match the plugin's -L 0 -H 30: low up to 0, high above 30.
|
||||||
|
# With "notify": show the description (e.g. "Light drizzle, mist") and temperature in a notification instead.
|
||||||
|
|
||||||
|
STATION=LZIB LAT=48.2 LON=17.2
|
||||||
|
|
||||||
|
declare -A ICON=(
|
||||||
|
[thermometer]=$'\xef\x8b\x89' [day_sunny]=$'\xee\x8c\x8d' [night_clear]=$'\xee\x8c\xab'
|
||||||
|
[day_cloudy]=$'\xee\x8c\x82' [night_partly_cloudy]=$'\xee\x8d\xb9' [day_sunny_overcast]=$'\xee\x8c\x8c'
|
||||||
|
[night_cloudy]=$'\xee\x8d\xbe' [cloudy]=$'\xee\x8c\x92' [cloud]=$'\xee\x8c\xbd'
|
||||||
|
[thunderstorm]=$'\xee\x8c\x9d' [rain_mix]=$'\xee\x8c\x96' [snow]=$'\xee\x8c\x9a' [showers]=$'\xee\x8c\x99'
|
||||||
|
[rain]=$'\xee\x8c\x98' [sprinkle]=$'\xee\x8c\x9b' [fog]=$'\xee\x8c\x93' [smoke]=$'\xee\x8d\x9c'
|
||||||
|
[dust]=$'\xee\x8d\x9d'
|
||||||
|
)
|
||||||
|
|
||||||
|
report=$(curl -sf --max-time 20 https://tgftp.nws.noaa.gov/data/observations/metar/decoded/"$STATION".TXT)
|
||||||
|
temp=$(sed -n 's/^Temperature: .*(\([-0-9.]*\) C).*/\1/p' <<< "$report")
|
||||||
|
if [[ -z $temp ]]; then
|
||||||
|
if [[ $1 == notify ]]; then notify-send "Weather" "No report from $STATION"; else echo "<fn=1>${ICON[thermometer]}</fn> N/A"; fi
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Phenomena "in the vicinity" aren't at the station; the rest are e.g. "light drizzle; mist"
|
||||||
|
wx=$(sed -n 's/^Weather: //p' <<< "$report" | tr ';' '\n' | sed 's/^ *//' | grep -v vicinity)
|
||||||
|
wx=${wx,,}
|
||||||
|
sky=$(sed -n 's/^Sky conditions: //p' <<< "$report")
|
||||||
|
# CAVOK/NSC (no cloud below 5000 ft) have no sky line in the decoded report
|
||||||
|
[[ -z $sky ]] && grep -qE '^ob: .* (CAVOK|NSC) ' <<< "$report" && sky=clear
|
||||||
|
sky=${sky,,}
|
||||||
|
|
||||||
|
# Sun above the horizon (elevation > -0.833°, as for sunrise/sunset) right now, from the low-precision solar position
|
||||||
|
sun_up() {
|
||||||
|
awk -v t="$(date +%s)" -v lat="$LAT" -v lon="$LON" 'BEGIN {
|
||||||
|
r = atan2(0, -1) / 180; d = t / 86400 - 10957.5
|
||||||
|
g = (357.529 + 0.98560028 * d) * r
|
||||||
|
l = (280.459 + 0.98564736 * d + 1.915 * sin(g) + 0.020 * sin(2 * g)) * r
|
||||||
|
e = (23.439 - 0.00000036 * d) * r
|
||||||
|
ra = atan2(cos(e) * sin(l), cos(l)); s = sin(e) * sin(l); dec = atan2(s, sqrt(1 - s * s))
|
||||||
|
h = (280.46061837 + 360.98564736629 * d + lon) * r - ra
|
||||||
|
exit !(sin(lat * r) * sin(dec) + cos(lat * r) * cos(dec) * cos(h) > sin(-0.833 * r))
|
||||||
|
}'
|
||||||
|
}
|
||||||
|
|
||||||
|
case $wx in
|
||||||
|
*thunder*) icon=thunderstorm ;;
|
||||||
|
*freezing*|*sleet*|*ice\ pellets*|*hail*) icon=rain_mix ;;
|
||||||
|
*snow*rain*|*rain*snow*|*snow*drizzle*|*drizzle*snow*) icon=rain_mix ;;
|
||||||
|
*snow*) icon=snow ;;
|
||||||
|
*showers*) icon=showers ;;
|
||||||
|
*rain*) icon=rain ;;
|
||||||
|
*drizzle*) icon=sprinkle ;;
|
||||||
|
*fog*|*mist*) icon=fog ;;
|
||||||
|
*haze*|*smoke*) icon=smoke ;;
|
||||||
|
*dust*|*sand*) icon=dust ;;
|
||||||
|
*)
|
||||||
|
case $sky in
|
||||||
|
clear*) if sun_up; then icon=day_sunny; else icon=night_clear; fi ;;
|
||||||
|
"mostly clear"*|"partly cloudy"*) if sun_up; then icon=day_cloudy; else icon=night_partly_cloudy; fi ;;
|
||||||
|
"mostly cloudy"*) if sun_up; then icon=day_sunny_overcast; else icon=night_cloudy; fi ;;
|
||||||
|
overcast*|obscured*) icon=cloudy ;;
|
||||||
|
*) icon=cloud ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if awk -v t="$temp" 'BEGIN { exit !(t > 30) }'; then color="#ffb86c"
|
||||||
|
elif awk -v t="$temp" 'BEGIN { exit !(t > 0) }'; then color="#50fa7b"
|
||||||
|
else color="#8be9fd"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $1 == notify ]]; then
|
||||||
|
if [[ -n $wx ]]; then desc=$(paste -sd, <<< "$wx" | sed 's/,/, /g')
|
||||||
|
elif [[ $icon == day_sunny ]]; then desc=sunny
|
||||||
|
else desc=${sky:-unknown}
|
||||||
|
fi
|
||||||
|
notify-send "${ICON[$icon]} Weather" "${desc^}, $temp°C"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
echo "<fn=1>${ICON[$icon]}</fn> <fc=$color>$temp</fc>°C"
|
||||||
@@ -1,21 +1,15 @@
|
|||||||
Config { overrideRedirect = True
|
Config { overrideRedirect = True
|
||||||
, lowerOnStart = True
|
, lowerOnStart = True
|
||||||
, font = "Jetbrains Mono Nerd Font Bold 9"
|
, font = "Jetbrains Mono Nerd Font Bold 10"
|
||||||
|
, additionalFonts = ["Jetbrains Mono Nerd Font Bold 13"]
|
||||||
, bgColor = "#24283b"
|
, bgColor = "#24283b"
|
||||||
, fgColor = "#737aa2"
|
, fgColor = "#737aa2"
|
||||||
, position = Top
|
, position = TopH 24
|
||||||
, border = NoBorder
|
, border = NoBorder
|
||||||
, borderColor = "#24283b"
|
, borderColor = "#24283b"
|
||||||
, allDesktops = True
|
, allDesktops = True
|
||||||
, pickBroadest = True
|
, pickBroadest = True
|
||||||
, commands = [ Run Weather "LZIB"
|
, commands = [ Run Com "/home/fuxino/.config/xmobar/weather.sh" [] "weather" 9000
|
||||||
[ "--template", "\xf2c9 <tempC>°C"
|
|
||||||
, "-L", "5"
|
|
||||||
, "-H", "25"
|
|
||||||
, "--low" , "#8be9fd"
|
|
||||||
, "--normal" , "#50fa7b"
|
|
||||||
, "--high" , "#ff5555"
|
|
||||||
] 9000
|
|
||||||
, Run MultiCpu
|
, Run MultiCpu
|
||||||
[ "--template" , "\xf4bc <total>%"
|
[ "--template" , "\xf4bc <total>%"
|
||||||
, "--Low" , "25"
|
, "--Low" , "25"
|
||||||
@@ -26,16 +20,17 @@ Config { overrideRedirect = True
|
|||||||
] 10
|
] 10
|
||||||
, Run CoreTemp
|
, Run CoreTemp
|
||||||
[ "--template" , "<core0>°C"
|
[ "--template" , "<core0>°C"
|
||||||
, "--Low" , "60"
|
, "--Low" , "70"
|
||||||
, "--High" , "85"
|
, "--High" , "90"
|
||||||
, "--low" , "#50fa7b"
|
, "--low" , "#50fa7b"
|
||||||
, "--normal" , "#ffb86c"
|
, "--normal" , "#ffb86c"
|
||||||
, "--high" , "#ff5555"
|
, "--high" , "#ff5555"
|
||||||
] 50
|
] 50
|
||||||
|
, Run Com "/home/fuxino/.config/xmobar/gpu.sh" [] "gpu" 50
|
||||||
, Run Memory
|
, Run Memory
|
||||||
[ "--template" , "\xefc5 <usedratio>%"
|
[ "--template" , "\xefc5 <usedratio>%"
|
||||||
, "--Low" , "33"
|
, "--Low" , "50"
|
||||||
, "--High" , "66"
|
, "--High" , "80"
|
||||||
, "--low" , "#50fa7b"
|
, "--low" , "#50fa7b"
|
||||||
, "--normal" , "#ffb86c"
|
, "--normal" , "#ffb86c"
|
||||||
, "--high" , "#ff5555"
|
, "--high" , "#ff5555"
|
||||||
@@ -45,16 +40,15 @@ Config { overrideRedirect = True
|
|||||||
, ("us" , "<fc=#ffb86c>US</fc>")
|
, ("us" , "<fc=#ffb86c>US</fc>")
|
||||||
, ("sk(qwerty)" , "<fc=#ff5555>SK</fc>")
|
, ("sk(qwerty)" , "<fc=#ff5555>SK</fc>")
|
||||||
]
|
]
|
||||||
, Run Date "\xf133 %a %Y-%m-%d <fc=#ff79c6>%H:%M</fc>" "date" 10
|
, Run Date "\xf133 %a %d/%m <fc=#ff79c6>%H:%M</fc>" "date" 10
|
||||||
, Run Uptime
|
|
||||||
[ "--template" , "\xf017 <days>d <hours>h"
|
|
||||||
] 600
|
|
||||||
, Run Com "/home/fuxino/.config/xmobar/pactl_volume.sh" [] "pactl_volume" 10
|
, Run Com "/home/fuxino/.config/xmobar/pactl_volume.sh" [] "pactl_volume" 10
|
||||||
, Run Com "/home/fuxino/.config/xmobar/ens_brief.sh" [] "ens_brief" 18000
|
, Run Com "/home/fuxino/.config/xmobar/ens_brief.sh" [] "ens_brief" 18000
|
||||||
, Run Com "/home/fuxino/.config/xmobar/updates.sh" [] "updates" 600
|
, Run Com "/home/fuxino/.config/xmobar/updates.sh" [] "updates" 600
|
||||||
|
, Run Com "/home/fuxino/.config/xmobar/backup.sh" [] "backup" 3600
|
||||||
|
, Run Com "/home/fuxino/.config/xmobar/calcurse.sh" [] "calcurse" 600
|
||||||
, Run UnsafeXMonadLog
|
, Run UnsafeXMonadLog
|
||||||
]
|
]
|
||||||
, sepChar = "%"
|
, sepChar = "%"
|
||||||
, alignSep = "}{"
|
, alignSep = "}{"
|
||||||
, template = " | %UnsafeXMonadLog% } %uptime% | %multicpu% %coretemp% | %memory% | %kbd% { <action=`/home/fuxino/.config/xmobar/updates.sh list`>%updates%</action><action=`/home/fuxino/.config/xmobar/ens_brief.sh week`>%LZIB% <fc=#565f89>·</fc> %ens_brief%</action> | %pactl_volume% | %date% "
|
, template = " | %UnsafeXMonadLog% } %multicpu% %coretemp% | %gpu% | %memory% | <action=`/home/fuxino/.config/xmobar/kbd_cycle.sh` button=1><action=`/home/fuxino/.config/xmobar/kbd_cycle.sh prev` button=3> %kbd%</action></action> { <action=`/home/fuxino/.config/xmobar/calcurse.sh list` button=1><action=`xdotool key super+shift+a` button=3>%calcurse%</action></action><action=`/home/fuxino/.config/xmobar/backup.sh list`>%backup%</action><action=`/home/fuxino/.config/xmobar/updates.sh list`>%updates%</action><action=`/home/fuxino/.config/xmobar/weather.sh notify`>%weather%</action> <fc=#565f89>·</fc> <action=`/home/fuxino/.config/xmobar/ens_brief.sh week`>%ens_brief%</action> | <action=`pactl set-sink-mute @DEFAULT_SINK@ toggle` button=1>%pactl_volume%</action> | %date% "
|
||||||
}
|
}
|
||||||
@@ -1,21 +1,15 @@
|
|||||||
Config { overrideRedirect = True
|
Config { overrideRedirect = True
|
||||||
, lowerOnStart = True
|
, lowerOnStart = True
|
||||||
, font = "Jetbrains Mono Nerd Font Bold 9"
|
, font = "Jetbrains Mono Nerd Font Bold 10"
|
||||||
|
, additionalFonts = ["Jetbrains Mono Nerd Font Bold 13"]
|
||||||
, bgColor = "#24283b"
|
, bgColor = "#24283b"
|
||||||
, fgColor = "#737aa2"
|
, fgColor = "#737aa2"
|
||||||
, position = Top
|
, position = TopH 24
|
||||||
, border = NoBorder
|
, border = NoBorder
|
||||||
, borderColor = "#24283b"
|
, borderColor = "#24283b"
|
||||||
, allDesktops = True
|
, allDesktops = True
|
||||||
, pickBroadest = True
|
, pickBroadest = True
|
||||||
, commands = [ Run Weather "LZIB"
|
, commands = [ Run Com "/home/fuxino/.config/xmobar/weather.sh" [] "weather" 9000
|
||||||
[ "--template", "\xf2c9 <tempC>°C"
|
|
||||||
, "-L", "5"
|
|
||||||
, "-H", "25"
|
|
||||||
, "--low" , "#8be9fd"
|
|
||||||
, "--normal" , "#50fa7b"
|
|
||||||
, "--high" , "#ff5555"
|
|
||||||
] 9000
|
|
||||||
, Run MultiCpu
|
, Run MultiCpu
|
||||||
[ "--template" , "\xf4bc <total>%"
|
[ "--template" , "\xf4bc <total>%"
|
||||||
, "--Low" , "25"
|
, "--Low" , "25"
|
||||||
@@ -26,16 +20,17 @@ Config { overrideRedirect = True
|
|||||||
] 10
|
] 10
|
||||||
, Run CoreTemp
|
, Run CoreTemp
|
||||||
[ "--template" , "<core0>°C"
|
[ "--template" , "<core0>°C"
|
||||||
, "--Low" , "60"
|
, "--Low" , "70"
|
||||||
, "--High" , "85"
|
, "--High" , "90"
|
||||||
, "--low" , "#50fa7b"
|
, "--low" , "#50fa7b"
|
||||||
, "--normal" , "#ffb86c"
|
, "--normal" , "#ffb86c"
|
||||||
, "--high" , "#ff5555"
|
, "--high" , "#ff5555"
|
||||||
] 50
|
] 50
|
||||||
|
, Run Com "/home/fuxino/.config/xmobar/gpu.sh" [] "gpu" 50
|
||||||
, Run Memory
|
, Run Memory
|
||||||
[ "--template" , "\xefc5 <usedratio>%"
|
[ "--template" , "\xefc5 <usedratio>%"
|
||||||
, "--Low" , "33"
|
, "--Low" , "50"
|
||||||
, "--High" , "66"
|
, "--High" , "80"
|
||||||
, "--low" , "#50fa7b"
|
, "--low" , "#50fa7b"
|
||||||
, "--normal" , "#ffb86c"
|
, "--normal" , "#ffb86c"
|
||||||
, "--high" , "#ff5555"
|
, "--high" , "#ff5555"
|
||||||
@@ -45,17 +40,16 @@ Config { overrideRedirect = True
|
|||||||
, ("us" , "<fc=#ffb86c>US</fc>")
|
, ("us" , "<fc=#ffb86c>US</fc>")
|
||||||
, ("sk(qwerty)" , "<fc=#ff5555>SK</fc>")
|
, ("sk(qwerty)" , "<fc=#ff5555>SK</fc>")
|
||||||
]
|
]
|
||||||
, Run Date "\xf133 %a %Y-%m-%d <fc=#ff79c6>%H:%M</fc>" "date" 10
|
, Run Date "\xf133 %a %d/%m <fc=#ff79c6>%H:%M</fc>" "date" 10
|
||||||
, Run Uptime
|
|
||||||
[ "--template" , "\xf017 <days>d <hours>h"
|
|
||||||
] 600
|
|
||||||
, Run XPropertyLog "_XMONAD_TRAYPAD"
|
, Run XPropertyLog "_XMONAD_TRAYPAD"
|
||||||
, Run Com "/home/fuxino/.config/xmobar/pactl_volume.sh" [] "pactl_volume" 10
|
, Run Com "/home/fuxino/.config/xmobar/pactl_volume.sh" [] "pactl_volume" 10
|
||||||
, Run Com "/home/fuxino/.config/xmobar/ens_brief.sh" [] "ens_brief" 18000
|
, Run Com "/home/fuxino/.config/xmobar/ens_brief.sh" [] "ens_brief" 18000
|
||||||
, Run Com "/home/fuxino/.config/xmobar/updates.sh" [] "updates" 600
|
, Run Com "/home/fuxino/.config/xmobar/updates.sh" [] "updates" 600
|
||||||
|
, Run Com "/home/fuxino/.config/xmobar/backup.sh" [] "backup" 3600
|
||||||
|
, Run Com "/home/fuxino/.config/xmobar/calcurse.sh" [] "calcurse" 600
|
||||||
, Run UnsafeXMonadLog
|
, Run UnsafeXMonadLog
|
||||||
]
|
]
|
||||||
, sepChar = "%"
|
, sepChar = "%"
|
||||||
, alignSep = "}{"
|
, alignSep = "}{"
|
||||||
, template = " | %UnsafeXMonadLog% } %uptime% | %multicpu% %coretemp% | %memory% | %kbd% { <action=`/home/fuxino/.config/xmobar/updates.sh list`>%updates%</action><action=`/home/fuxino/.config/xmobar/ens_brief.sh week`>%LZIB% <fc=#565f89>·</fc> %ens_brief%</action> | %pactl_volume% | %date% %_XMONAD_TRAYPAD% "
|
, template = " | %UnsafeXMonadLog% } %multicpu% %coretemp% | %gpu% | %memory% | <action=`/home/fuxino/.config/xmobar/kbd_cycle.sh` button=1><action=`/home/fuxino/.config/xmobar/kbd_cycle.sh prev` button=3> %kbd%</action></action> { <action=`/home/fuxino/.config/xmobar/calcurse.sh list` button=1><action=`xdotool key super+shift+a` button=3>%calcurse%</action></action><action=`/home/fuxino/.config/xmobar/backup.sh list`>%backup%</action><action=`/home/fuxino/.config/xmobar/updates.sh list`>%updates%</action><action=`/home/fuxino/.config/xmobar/weather.sh notify`>%weather%</action> <fc=#565f89>·</fc> <action=`/home/fuxino/.config/xmobar/ens_brief.sh week`>%ens_brief%</action> | <action=`pactl set-sink-mute @DEFAULT_SINK@ toggle` button=1>%pactl_volume%</action> | %date% %_XMONAD_TRAYPAD% "
|
||||||
}
|
}
|
||||||
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
exec stack ghc --\
|
||||||
|
--make xmonad.hs \
|
||||||
|
-i \
|
||||||
|
-ilib \
|
||||||
|
-fforce-recomp \
|
||||||
|
-main-is main \
|
||||||
|
-v0 \
|
||||||
|
-o "$1"
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
# This file was automatically generated by 'stack init'
|
||||||
|
#
|
||||||
|
# Some commonly used options have been documented as comments in this file.
|
||||||
|
# For advanced use and comprehensive documentation of the format, please see:
|
||||||
|
# https://docs.haskellstack.org/en/stable/yaml_configuration/
|
||||||
|
|
||||||
|
# A 'specific' Stackage snapshot or a compiler version.
|
||||||
|
# A snapshot resolver dictates the compiler version and the set of packages
|
||||||
|
# to be used for project dependencies. For example:
|
||||||
|
#
|
||||||
|
# snapshot: lts-22.28
|
||||||
|
# snapshot: nightly-2024-07-05
|
||||||
|
# snapshot: ghc-9.6.6
|
||||||
|
#
|
||||||
|
# The location of a snapshot can be provided as a file or url. Stack assumes
|
||||||
|
# a snapshot provided as a file might change, whereas a url resource does not.
|
||||||
|
#
|
||||||
|
# snapshot: ./custom-snapshot.yaml
|
||||||
|
# snapshot: https://example.com/snapshots/2024-01-01.yaml
|
||||||
|
snapshot: lts-23.0
|
||||||
|
#compiler: ghc-9.8.3
|
||||||
|
|
||||||
|
# User packages to be built.
|
||||||
|
# Various formats can be used as shown in the example below.
|
||||||
|
#
|
||||||
|
# packages:
|
||||||
|
# - some-directory
|
||||||
|
# - https://example.com/foo/bar/baz-0.0.2.tar.gz
|
||||||
|
# subdirs:
|
||||||
|
# - auto-update
|
||||||
|
# - wai
|
||||||
|
packages:
|
||||||
|
- xmobar-git
|
||||||
|
- xmonad-git
|
||||||
|
- xmonad-contrib-git
|
||||||
|
# Dependency packages to be pulled from upstream that are not in the snapshot.
|
||||||
|
# These entries can reference officially published versions as well as
|
||||||
|
# forks / in-progress versions pinned to a git hash. For example:
|
||||||
|
#
|
||||||
|
extra-deps:
|
||||||
|
- netlink-1.1.1.0@sha256:d83424b5ba9921191449e4b1f53c7cba7f4375f2c55a9b737c77e982e1f40d00,3689
|
||||||
|
# - acme-missiles-0.3
|
||||||
|
# - git: https://github.com/commercialhaskell/stack.git
|
||||||
|
# commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a
|
||||||
|
#
|
||||||
|
# extra-deps: []
|
||||||
|
|
||||||
|
# Override default flag values for project packages and extra-deps
|
||||||
|
flags:
|
||||||
|
xmobar:
|
||||||
|
all_extensions: true
|
||||||
|
|
||||||
|
# Extra package databases containing global packages
|
||||||
|
# extra-package-dbs: []
|
||||||
|
|
||||||
|
# Control whether we use the GHC we find on the path
|
||||||
|
# system-ghc: true
|
||||||
|
#
|
||||||
|
# Require a specific version of Stack, using version ranges
|
||||||
|
# require-stack-version: -any # Default
|
||||||
|
# require-stack-version: ">=3.1"
|
||||||
|
#
|
||||||
|
# Override the architecture used by Stack, especially useful on Windows
|
||||||
|
# arch: i386
|
||||||
|
# arch: x86_64
|
||||||
|
#
|
||||||
|
# Extra directories used by Stack for building
|
||||||
|
# extra-include-dirs: [/path/to/dir]
|
||||||
|
# extra-lib-dirs: [/path/to/dir]
|
||||||
|
#
|
||||||
|
# Allow a newer minor version of GHC than the snapshot specifies
|
||||||
|
# compiler-check: newer-minor
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# This file was autogenerated by Stack.
|
||||||
|
# You should not edit this file by hand.
|
||||||
|
# For more information, please see the documentation at:
|
||||||
|
# https://docs.haskellstack.org/en/stable/topics/lock_files
|
||||||
|
|
||||||
|
packages:
|
||||||
|
- completed:
|
||||||
|
hackage: netlink-1.1.1.0@sha256:d83424b5ba9921191449e4b1f53c7cba7f4375f2c55a9b737c77e982e1f40d00,3689
|
||||||
|
pantry-tree:
|
||||||
|
sha256: 42a57a2db0d8b44e04a04905ed56994b7293d2f244595bf3e65480c36d114ac3
|
||||||
|
size: 1598
|
||||||
|
original:
|
||||||
|
hackage: netlink-1.1.1.0@sha256:d83424b5ba9921191449e4b1f53c7cba7f4375f2c55a9b737c77e982e1f40d00,3689
|
||||||
|
snapshots:
|
||||||
|
- completed:
|
||||||
|
sha256: 9444fadfa30b67a93080254d53872478c087592ad64443e47c546cdcd13149ae
|
||||||
|
size: 678857
|
||||||
|
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/23/0.yaml
|
||||||
|
original: lts-23.0
|
||||||
+304
-118
@@ -1,9 +1,13 @@
|
|||||||
-- Import
|
-- Import
|
||||||
|
|
||||||
import Data.Monoid
|
import Data.Monoid
|
||||||
import Graphics.X11.ExtraTypes.XF86
|
import Data.Bits (complement, (.&.))
|
||||||
import Control.Monad (forM_, liftM2, when)
|
import Data.Char (toLower)
|
||||||
|
import Control.Monad (filterM, forM_, join, unless, when)
|
||||||
|
import qualified Data.Map.Strict as M
|
||||||
|
import Data.Maybe (isJust)
|
||||||
import XMonad
|
import XMonad
|
||||||
|
import XMonad.Actions.OnScreen (Focus (FocusNew), onScreen)
|
||||||
import XMonad.Actions.PhysicalScreens
|
import XMonad.Actions.PhysicalScreens
|
||||||
import XMonad.Hooks.EwmhDesktops
|
import XMonad.Hooks.EwmhDesktops
|
||||||
import XMonad.Hooks.ManageDocks
|
import XMonad.Hooks.ManageDocks
|
||||||
@@ -11,6 +15,7 @@ import XMonad.Hooks.ManageHelpers
|
|||||||
import XMonad.Hooks.Rescreen
|
import XMonad.Hooks.Rescreen
|
||||||
import XMonad.Hooks.StatusBar
|
import XMonad.Hooks.StatusBar
|
||||||
import XMonad.Hooks.StatusBar.PP
|
import XMonad.Hooks.StatusBar.PP
|
||||||
|
import XMonad.Hooks.UrgencyHook (NoUrgencyHook (..), withUrgencyHook)
|
||||||
import XMonad.Layout.Grid
|
import XMonad.Layout.Grid
|
||||||
import XMonad.Layout.Magnifier
|
import XMonad.Layout.Magnifier
|
||||||
import XMonad.Layout.NoBorders
|
import XMonad.Layout.NoBorders
|
||||||
@@ -23,21 +28,26 @@ import XMonad.Layout.ThreeColumns
|
|||||||
import qualified XMonad.StackSet as W
|
import qualified XMonad.StackSet as W
|
||||||
import XMonad.Util.ClickableWorkspaces
|
import XMonad.Util.ClickableWorkspaces
|
||||||
import XMonad.Util.EZConfig
|
import XMonad.Util.EZConfig
|
||||||
|
import qualified XMonad.Util.ExtensibleState as XS
|
||||||
import qualified XMonad.Util.Hacks as Hacks
|
import qualified XMonad.Util.Hacks as Hacks
|
||||||
import XMonad.Util.Loggers
|
import XMonad.Util.Loggers
|
||||||
|
import XMonad.Util.NamedActions
|
||||||
import XMonad.Util.NamedScratchpad
|
import XMonad.Util.NamedScratchpad
|
||||||
import XMonad.Util.Run (runProcessWithInput)
|
import XMonad.Util.Run (runProcessWithInput, spawnPipe)
|
||||||
import XMonad.Util.SpawnOnce
|
import XMonad.Util.SpawnOnce
|
||||||
|
import System.IO (hClose, hPutStr)
|
||||||
|
|
||||||
-- Main
|
-- Main
|
||||||
main :: IO ()
|
main :: IO ()
|
||||||
main =
|
main =
|
||||||
xmonad
|
xmonad
|
||||||
. ewmhFullscreen
|
. ewmhFullscreen
|
||||||
. setEwmhSwitchDesktopHook W.greedyView
|
. setEwmhFullscreenHooks myFullscreenHook myUnfullscreenHook
|
||||||
|
. setEwmhSwitchDesktopHook safeView
|
||||||
. ewmh
|
. ewmh
|
||||||
. docks
|
. docks
|
||||||
. addAfterRescreenHook restartStatusBars
|
. withUrgencyHook NoUrgencyHook
|
||||||
|
. rescreenHook def {afterRescreenHook = restartStatusBars, rescreenWorkspacesHook = Last (Just safeRescreen)}
|
||||||
. addRandrChangeHook (spawn myScreenHotplug)
|
. addRandrChangeHook (spawn myScreenHotplug)
|
||||||
$ myConfig
|
$ myConfig
|
||||||
|
|
||||||
@@ -57,17 +67,12 @@ myNormBorderColor = "#1f2335"
|
|||||||
myFocusBorderColor :: String
|
myFocusBorderColor :: String
|
||||||
myFocusBorderColor = "#41a6b5"
|
myFocusBorderColor = "#41a6b5"
|
||||||
|
|
||||||
myKeyboardLayoutIT :: String
|
myEarbuds :: String
|
||||||
myKeyboardLayoutIT = " -layout it"
|
myEarbuds = "F4:9D:8A:B9:8C:EE"
|
||||||
|
|
||||||
myKeyboardLayoutUS :: String
|
|
||||||
myKeyboardLayoutUS = " -layout us"
|
|
||||||
|
|
||||||
myKeyboardLayoutSK :: String
|
|
||||||
myKeyboardLayoutSK = " -layout sk -variant qwerty"
|
|
||||||
|
|
||||||
|
-- Expanded by sh, as spawn runs it
|
||||||
myScreenshotDir :: String
|
myScreenshotDir :: String
|
||||||
myScreenshotDir = "/home/fuxino/Pictures/Screenshots/"
|
myScreenshotDir = "~/Pictures/Screenshots/"
|
||||||
|
|
||||||
myScreenshotName :: String
|
myScreenshotName :: String
|
||||||
myScreenshotName = "Screenshot-%Y-%m-%d-%H%M%S.png"
|
myScreenshotName = "Screenshot-%Y-%m-%d-%H%M%S.png"
|
||||||
@@ -76,34 +81,33 @@ myScreenshotName = "Screenshot-%Y-%m-%d-%H%M%S.png"
|
|||||||
myScreenLayout :: String
|
myScreenLayout :: String
|
||||||
myScreenLayout = "/home/fuxino/.local/bin/screen-layout"
|
myScreenLayout = "/home/fuxino/.local/bin/screen-layout"
|
||||||
|
|
||||||
-- Safe to re-run (e.g. spawnOnce after this string changes and xmonad restarts)
|
-- Safe to re-run (e.g. spawnOnce after this string changes and xmonad restarts); keeps the last wallpapers across logins
|
||||||
myScreenSetup :: String
|
myScreenSetup :: String
|
||||||
myScreenSetup =
|
myScreenSetup =
|
||||||
"sleep 1; " ++ myScreenLayout ++ "; pgrep -x picom > /dev/null || picom -b -c"
|
"sleep 1; " ++ myScreenLayout ++ " --keep-wallpaper; pgrep -x picom > /dev/null || picom -b -c"
|
||||||
|
|
||||||
-- Run when a monitor is (dis)connected; restarts trayer so it moves to the right screen
|
-- Run when a monitor is (dis)connected; restarts trayer so it moves to the right screen
|
||||||
myScreenHotplug :: String
|
myScreenHotplug :: String
|
||||||
myScreenHotplug = myScreenLayout
|
myScreenHotplug = myScreenLayout ++ " --keep-wallpaper"
|
||||||
|
|
||||||
myScratchpads :: [NamedScratchpad]
|
myScratchpads :: [NamedScratchpad]
|
||||||
myScratchpads =
|
myScratchpads =
|
||||||
[ NS "Riseup-vpn" "riseup-vpn" (className =? "RiseupVPN") (customFloating $ W.RationalRect 0.15 0.4 0.15 0.4),
|
[ NS "Windscribe" "windscribe" (className =? "Windscribe2") (customFloating $ W.RationalRect 0.15 0.4 0.15 0.4),
|
||||||
NS "Terminal" spawnTerminal (className =? "scratch-terminal") (customFloating $ W.RationalRect 0.2 0.2 0.6 0.6),
|
termPad "Terminal" "kitty-float" "",
|
||||||
NS "Music" spawnMusic (className =? "scratch-music") (customFloating $ W.RationalRect 0.2 0.2 0.6 0.6),
|
termPad "Music" "ncmpcpp" "ncmpcpp",
|
||||||
NS "Mail" spawnMail (className =? "scratch-mail") (customFloating $ W.RationalRect 0.2 0.2 0.6 0.6),
|
termPad "Mail" "mutt" "bash -c 'pushd ~/Downloads > /dev/null; mutt; popd > /dev/null'",
|
||||||
NS "Cal" spawnCal (className =? "scratch-cal") (customFloating $ W.RationalRect 0.2 0.2 0.6 0.6),
|
termPad "Cal" "calcurse" "calcurse",
|
||||||
NS "Btop" spawnBtop (className =? "scratch-btop") (customFloating $ W.RationalRect 0.2 0.2 0.6 0.6)
|
termPad "Btop" "btop" "btop"
|
||||||
]
|
]
|
||||||
where
|
where
|
||||||
spawnTerminal = myTerminal ++ " --class scratch-terminal -T kitty-float"
|
-- Centred kitty with class scratch-<name>, window title t, running cmd
|
||||||
spawnMusic = myTerminal ++ " --class scratch-music -T ncmpcpp ncmpcpp"
|
termPad name t cmd =
|
||||||
spawnMail = myTerminal ++ " --class scratch-mail -T mutt bash -c 'pushd ~/Downloads > /dev/null; mutt; popd > /dev/null'"
|
let cls = "scratch-" ++ map toLower name
|
||||||
spawnCal = myTerminal ++ " --class scratch-cal -T calcurse calcurse"
|
in NS name (unwords [myTerminal, "--class", cls, "-T", t, cmd]) (className =? cls) (customFloating $ W.RationalRect 0.2 0.2 0.6 0.6)
|
||||||
spawnBtop = myTerminal ++ " --class scratch-btop -T btop btop"
|
|
||||||
|
|
||||||
-- Config
|
-- Config
|
||||||
myConfig =
|
myConfig =
|
||||||
def
|
addDescrKeys' ((myModMask, xK_F1), showKeys) myKeys $ def
|
||||||
{ modMask = myModMask,
|
{ modMask = myModMask,
|
||||||
terminal = myTerminal,
|
terminal = myTerminal,
|
||||||
workspaces = myWorkspaces,
|
workspaces = myWorkspaces,
|
||||||
@@ -115,57 +119,146 @@ myConfig =
|
|||||||
handleEventHook = myHandleEventHook,
|
handleEventHook = myHandleEventHook,
|
||||||
logHook = myLogHook
|
logHook = myLogHook
|
||||||
}
|
}
|
||||||
`additionalKeysP` [ ("M-b", sendMessage ToggleStruts),
|
|
||||||
("M-S-l", spawn "slock"),
|
-- Keys
|
||||||
("<Print>", unGrab *> spawn ("scrot " ++ myScreenshotDir ++ myScreenshotName)),
|
-- xmonad's described defaults minus the ones overridden here, so M-<F1> lists each key once
|
||||||
("S-<Print>", unGrab *> spawn ("scrot -s " ++ myScreenshotDir ++ myScreenshotName)),
|
myKeys :: XConfig Layout -> [((KeyMask, KeySym), NamedAction)]
|
||||||
("M-S-<Print>", unGrab *> spawn ("scrot -u " ++ myScreenshotDir ++ myScreenshotName)),
|
myKeys c = dropEmptyGroups (filter ((`notElem` overridden) . fst) (defaultKeysDescr c)) ++ custom
|
||||||
("M-d", spawn "dmenu_run"),
|
where
|
||||||
("M-p", spawn "passmenu -i"),
|
custom = myCustomKeys c
|
||||||
("M-f", sendMessage $ JumpToLayout "Tabbed"),
|
-- M-r/M-S-r: there's no third screen
|
||||||
("M-i", spawn $ "setxkbmap" ++ myKeyboardLayoutIT),
|
overridden = (myModMask, xK_r) : (myModMask .|. shiftMask, xK_r) : filter (/= (0, 0)) (map fst custom)
|
||||||
("M-u", spawn $ "setxkbmap" ++ myKeyboardLayoutUS),
|
-- (0, 0) is a subtitle or separator; drop it when nothing follows before the next one
|
||||||
("M-s", spawn $ "setxkbmap" ++ myKeyboardLayoutSK),
|
dropEmptyGroups (((0, 0), _) : rest@(((0, 0), _) : _)) = dropEmptyGroups rest
|
||||||
("M-S-v", namedScratchpadAction myScratchpads "Riseup-vpn"),
|
dropEmptyGroups [((0, 0), _)] = []
|
||||||
("M-S-s", namedScratchpadAction myScratchpads "Terminal"),
|
dropEmptyGroups (x : rest) = x : dropEmptyGroups rest
|
||||||
("M-S-a", namedScratchpadAction myScratchpads "Cal"),
|
dropEmptyGroups [] = []
|
||||||
("M-o", namedScratchpadAction myScratchpads "Btop"),
|
|
||||||
("M-x", spawn "bluetoothctl connect F4:9D:8A:B9:8C:EE"),
|
myCustomKeys :: XConfig Layout -> [((KeyMask, KeySym), NamedAction)]
|
||||||
("M-S-x", spawn "bluetoothctl disconnect F4:9D:8A:B9:8C:EE")
|
myCustomKeys c =
|
||||||
]
|
concatMap
|
||||||
`additionalKeys` [ ((0, xF86XK_AudioMute), spawn "pactl set-sink-mute $(pactl get-default-sink) toggle"),
|
(\(t, ks) -> subtitle t : mkNamedKeymap c ks)
|
||||||
((0, xF86XK_AudioLowerVolume), spawn "pactl set-sink-volume $(pactl get-default-sink) -10%"),
|
[ ( "launchers",
|
||||||
((0, xF86XK_AudioRaiseVolume), spawn "wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 10%+"),
|
[ ("M-d", addName "Run a program (dmenu)" $ spawn "dmenu_run"),
|
||||||
((0, xF86XK_Calculator), spawn "qalculate-gtk"),
|
("M-p", addName "Passwords (passmenu)" $ spawn "passmenu -i"),
|
||||||
((0, xF86XK_HomePage), spawn myBrowser),
|
("<XF86HomePage>", addName "Browser" $ spawn myBrowser),
|
||||||
((0, xF86XK_Mail), namedScratchpadAction myScratchpads "Mail"),
|
("<XF86Calculator>", addName "Calculator" $ spawn "qalculate-gtk")
|
||||||
((0, xF86XK_Tools), namedScratchpadAction myScratchpads "Music")
|
]
|
||||||
]
|
),
|
||||||
++ [ ((myModMask .|. mask, key), f sc)
|
( "scratchpads",
|
||||||
| (key, sc) <- zip [xK_w, xK_e] [0 ..],
|
[ ("M-S-s", addName "Terminal" $ namedScratchpadAction myScratchpads "Terminal"),
|
||||||
(f, mask) <- [(viewScreen def, 0), (sendToScreen def, shiftMask)]
|
("M-S-a", addName "Calendar (calcurse)" $ namedScratchpadAction myScratchpads "Cal"),
|
||||||
]
|
("M-o", addName "btop" $ namedScratchpadAction myScratchpads "Btop"),
|
||||||
|
("M-S-v", addName "Windscribe VPN" $ namedScratchpadAction myScratchpads "Windscribe"),
|
||||||
|
("<XF86Mail>", addName "Mail (mutt)" $ namedScratchpadAction myScratchpads "Mail"),
|
||||||
|
("<XF86Tools>", addName "Music (ncmpcpp)" $ namedScratchpadAction myScratchpads "Music")
|
||||||
|
]
|
||||||
|
),
|
||||||
|
( "session and layout",
|
||||||
|
[ ("M-S-l", addName "Lock the screen" $ spawn "loginctl lock-session"),
|
||||||
|
("M-S-n", addName "Show older notification" $ spawn "dunstctl history-pop"),
|
||||||
|
("M-C-n", addName "Close all notifications" $ spawn "dunstctl close-all"),
|
||||||
|
("M-b", addName "Toggle the status bar gap" $ sendMessage ToggleStruts),
|
||||||
|
("M-f", addName "Tabbed layout" $ sendMessage $ JumpToLayout "Tabbed"),
|
||||||
|
("M-i", addName "Keyboard: Italian" $ spawn "setxkbmap -layout it"),
|
||||||
|
("M-u", addName "Keyboard: US" $ spawn "setxkbmap -layout us"),
|
||||||
|
("M-s", addName "Keyboard: Slovak" $ spawn "setxkbmap -layout sk -variant qwerty"),
|
||||||
|
("M-x", addName "Connect earbuds" $ spawn $ "bluetoothctl connect " ++ myEarbuds),
|
||||||
|
("M-S-x", addName "Disconnect earbuds" $ spawn $ "bluetoothctl disconnect " ++ myEarbuds)
|
||||||
|
]
|
||||||
|
),
|
||||||
|
( "screenshots",
|
||||||
|
[ ("<Print>", addName "Whole screen" $ unGrab *> spawn ("scrot " ++ myScreenshotDir ++ myScreenshotName)),
|
||||||
|
("S-<Print>", addName "Select an area" $ unGrab *> spawn ("scrot -s " ++ myScreenshotDir ++ myScreenshotName)),
|
||||||
|
("M-S-<Print>", addName "Focused window" $ unGrab *> spawn ("scrot -u " ++ myScreenshotDir ++ myScreenshotName))
|
||||||
|
]
|
||||||
|
),
|
||||||
|
( "media keys",
|
||||||
|
[ ("<XF86AudioMute>", addName "Mute" $ spawn "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"),
|
||||||
|
("<XF86AudioLowerVolume>", addName "Volume down" $ spawn "wpctl set-volume @DEFAULT_AUDIO_SINK@ 10%-"),
|
||||||
|
("<XF86AudioRaiseVolume>", addName "Volume up" $ spawn "wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 10%+"),
|
||||||
|
("<XF86AudioPlay>", addName "Play/pause" $ spawn "playerctl play-pause"),
|
||||||
|
("<XF86AudioPause>", addName "Pause" $ spawn "playerctl pause"),
|
||||||
|
("<XF86AudioStop>", addName "Stop" $ spawn "playerctl stop"),
|
||||||
|
("<XF86AudioNext>", addName "Next track" $ spawn "playerctl next"),
|
||||||
|
("<XF86AudioPrev>", addName "Previous track" $ spawn "playerctl previous")
|
||||||
|
]
|
||||||
|
),
|
||||||
|
( "workspaces and screens",
|
||||||
|
[ (m ++ show n, addName (d ++ show n ++ " (" ++ name ++ ")") $ windows $ f ws)
|
||||||
|
| (n, ws, name) <- zip3 [1 :: Int ..] myWorkspaces ["terminal", "web", "games", "chat", "media", "docs", "VM", "free", "free"],
|
||||||
|
(m, d, f) <- [("M-", "Workspace ", safeView), ("M-S-", "Send window to workspace ", W.shift)]
|
||||||
|
]
|
||||||
|
++ [ (m ++ k, addName (d ++ side) $ f def sc)
|
||||||
|
| (k, sc, side) <- [("w", 0, "left screen"), ("e", 1, "right screen")],
|
||||||
|
(m, d, f) <- [("M-", "Focus ", viewScreen), ("M-S-", "Send window to ", sendToScreen)]
|
||||||
|
]
|
||||||
|
)
|
||||||
|
]
|
||||||
|
|
||||||
|
-- Shows the key list in dmenu (type to filter; picking a line does nothing).
|
||||||
|
-- spawnPipe rather than runProcessWithInput, which would block xmonad while dmenu is open.
|
||||||
|
showKeys :: [((KeyMask, KeySym), NamedAction)] -> NamedAction
|
||||||
|
showKeys ks = addName "Show keybindings" $ do
|
||||||
|
h <- spawnPipe "dmenu -i -l 30 -p Keys"
|
||||||
|
io $ hPutStr h (unlines $ map tidy $ filter (not . null) $ lines $ unlines $ showKm ks) >> hClose h
|
||||||
|
where
|
||||||
|
-- showKm writes the mod key as M4- (it doesn't know modMask); re-pad after shortening it
|
||||||
|
tidy l@('>' : _) = l
|
||||||
|
tidy l = let (k, d) = break (== ' ') l in take 24 (fixMod k ++ repeat ' ') ++ dropWhile (== ' ') d
|
||||||
|
fixMod ('M' : '4' : '-' : r) = "M-" ++ fixMod r
|
||||||
|
fixMod (x : r) = x : fixMod r
|
||||||
|
fixMod [] = []
|
||||||
|
|
||||||
|
-- greedyView that keeps wsGames on screen 0 (HDMI), and focuses it: Wine games lose the mouse when moved between screens
|
||||||
|
safeView :: WorkspaceId -> WindowSet -> WindowSet
|
||||||
|
safeView i ws
|
||||||
|
| i == wsGames = onScreen (W.greedyView i) FocusNew 0 ws
|
||||||
|
| W.currentTag ws == wsGames && i `elem` map (W.tag . W.workspace) (W.visible ws) = W.view i ws
|
||||||
|
| otherwise = W.greedyView i ws
|
||||||
|
|
||||||
|
-- xmonad's rescreen, except that a hidden wsGames is never put on a secondary screen
|
||||||
|
safeRescreen :: X ()
|
||||||
|
safeRescreen = do
|
||||||
|
screens <- withDisplay getCleanedScreenInfo
|
||||||
|
case screens of
|
||||||
|
[] -> return ()
|
||||||
|
xinesc : xinescs ->
|
||||||
|
windows $ \ws ->
|
||||||
|
let notGames = (/= wsGames) . W.tag
|
||||||
|
pool = map W.workspace (W.visible ws) ++ filter notGames (W.hidden ws)
|
||||||
|
(xs, _) = splitAt (length xinescs) pool
|
||||||
|
shown = map W.tag (W.workspace (W.current ws) : xs)
|
||||||
|
in ws
|
||||||
|
{ W.current = W.Screen (W.workspace (W.current ws)) 0 (SD xinesc),
|
||||||
|
W.visible = zipWith3 W.Screen xs [1 ..] (map SD xinescs),
|
||||||
|
W.hidden = filter ((`notElem` shown) . W.tag) (map W.workspace (W.visible ws) ++ W.hidden ws)
|
||||||
|
}
|
||||||
|
|
||||||
-- Workspaces
|
-- Workspaces
|
||||||
myWorkspaces :: [String]
|
myWorkspaces :: [String]
|
||||||
myWorkspaces = [wsTerm, wsWeb, wsGames, wsChat, wsMedia, wsDocs, wsVM] ++ map show [8, 9]
|
myWorkspaces = [wsTerm, wsWeb, wsGames, wsChat, wsMedia, wsDocs, wsVM] ++ map show [8, 9 :: Int]
|
||||||
|
|
||||||
|
-- Icons spill past their advance in the non-Mono Nerd Font: keep them ~1000-1160 units wide or gaps look uneven
|
||||||
wsTerm, wsWeb, wsGames, wsChat, wsMedia, wsDocs, wsVM :: String
|
wsTerm, wsWeb, wsGames, wsChat, wsMedia, wsDocs, wsVM :: String
|
||||||
wsTerm = "1:\xf489 "
|
wsTerm = "1:\xf489 "
|
||||||
wsWeb = "2:\xe743 "
|
wsWeb = "2:\xf0ac "
|
||||||
wsGames = "3:\xf1b6 "
|
wsGames = "3:\xf11b "
|
||||||
wsChat = "4:\xf10b "
|
wsChat = "4:\xf086 "
|
||||||
wsMedia = "5:\xead9 "
|
wsMedia = "5:\xefab "
|
||||||
wsDocs = "6:\xeb69 "
|
wsDocs = "6:\xede2 "
|
||||||
wsVM = "7:\xea7a "
|
wsVM = "7:\xf108 "
|
||||||
|
|
||||||
-- Layout
|
-- Layout
|
||||||
myLayoutHook = onWorkspace wsWeb myWebLayout $ onWorkspace wsGames myGamesLayout $ onWorkspace wsMedia myVideoLayout myDefaultLayout
|
myLayoutHook =
|
||||||
|
avoidStruts $
|
||||||
|
onWorkspaces [wsGames, wsMedia] (smartBorders Full) $
|
||||||
|
onWorkspace wsWeb (spaced $ myTabbed ||| tiled ||| Mirror tiled ||| others) $
|
||||||
|
spaced (tiled ||| Mirror tiled ||| myTabbed ||| others)
|
||||||
where
|
where
|
||||||
myWebLayout = avoidStruts $ renamed [CutWordsLeft 1] $ spacingWithEdge 3 $ myTabbed ||| tiled ||| Mirror tiled ||| threeCol ||| Grid ||| spiral 0.856
|
-- CutWordsLeft drops the "Spacing" prefix from the layout names
|
||||||
myGamesLayout = avoidStruts $ smartBorders Full
|
spaced l = renamed [CutWordsLeft 1] $ spacingWithEdge 3 l
|
||||||
myVideoLayout = avoidStruts $ smartBorders Full
|
others = threeCol ||| Grid ||| spiral 0.856
|
||||||
myDefaultLayout = avoidStruts $ renamed [CutWordsLeft 1] $ spacingWithEdge 3 $ tiled ||| Mirror tiled ||| myTabbed ||| threeCol ||| Grid ||| spiral 0.856
|
|
||||||
threeCol =
|
threeCol =
|
||||||
renamed [Replace "ThreeCol"] $
|
renamed [Replace "ThreeCol"] $
|
||||||
magnifiercz' 1.3 $
|
magnifiercz' 1.3 $
|
||||||
@@ -209,15 +302,47 @@ myXmobarPP =
|
|||||||
ppHidden = cultured . wrap " " "",
|
ppHidden = cultured . wrap " " "",
|
||||||
ppHiddenNoWindows = outerspace . wrap " " "",
|
ppHiddenNoWindows = outerspace . wrap " " "",
|
||||||
ppUrgent = sunsetorange . wrap (keylime "!") (keylime "!"),
|
ppUrgent = sunsetorange . wrap (keylime "!") (keylime "!"),
|
||||||
ppOrder = \[ws, l, _, wins] -> [ws, l, wins],
|
-- Show "1:<icon>" as just the icon; tags stay as they are (clickablePP uses the index)
|
||||||
ppExtras = [logTitles formatFocused formatUnfocused]
|
ppRename = \tag _ -> case break (== ':') tag of
|
||||||
|
(_, ':' : icon) -> icon
|
||||||
|
_ -> tag,
|
||||||
|
-- NamedScratchpad never removes NSP once created; hide it while it's empty
|
||||||
|
ppSort = (. filter (\w -> W.tag w /= scratchpadWorkspaceTag || isJust (W.stack w))) <$> ppSort def,
|
||||||
|
ppOrder = dropTitle,
|
||||||
|
ppLayout = layoutIcon,
|
||||||
|
ppExtras = [budgetTitles]
|
||||||
}
|
}
|
||||||
where
|
where
|
||||||
formatFocused = wrap (cultured "[") (cultured "]") . pink . ppWindow
|
-- The focused title is replaced by budgetTitles
|
||||||
formatUnfocused = wrap (outerspace "[") (outerspace "]") . cultured . ppWindow
|
dropTitle :: [String] -> [String]
|
||||||
|
dropTitle (ws : l : _ : rest) = ws : l : rest
|
||||||
|
dropTitle xs = xs
|
||||||
|
|
||||||
ppWindow :: String -> String
|
layoutIcon :: String -> String
|
||||||
ppWindow = xmobarRaw . (\w -> if null w then "untitled" else w) . shorten 20
|
layoutIcon l = case l of
|
||||||
|
"Tall" -> "\xf0bcc"
|
||||||
|
"Mirror Tall" -> "\xf0bcb"
|
||||||
|
"Tabbed" -> "\xf04e9"
|
||||||
|
"ThreeCol" -> "\xf056d"
|
||||||
|
"Grid" -> "\xf0570"
|
||||||
|
"Spiral" -> "\xf056e"
|
||||||
|
"Full" -> "\xf0293"
|
||||||
|
_ -> l
|
||||||
|
|
||||||
|
-- Titles share one width budget, so more windows get shorter titles instead of overflowing the bar
|
||||||
|
budgetTitles :: Logger
|
||||||
|
budgetTitles = do
|
||||||
|
n <- gets $ length . W.integrate' . W.stack . W.workspace . W.current . windowset
|
||||||
|
let width = max 8 . min 30 $ 60 `div` max 1 n
|
||||||
|
logTitles' (TitlesFormat (formatFocused width) (formatUnfocused width) (formatUrgent width))
|
||||||
|
|
||||||
|
formatFocused, formatUnfocused, formatUrgent :: Int -> String -> String
|
||||||
|
formatFocused w = wrap (cultured "[") (cultured "]") . pink . ppWindow w
|
||||||
|
formatUnfocused w = wrap (outerspace "[") (outerspace "]") . cultured . ppWindow w
|
||||||
|
formatUrgent w = wrap (keylime "!") (keylime "!") . sunsetorange . ppWindow w
|
||||||
|
|
||||||
|
ppWindow :: Int -> String -> String
|
||||||
|
ppWindow w = xmobarRaw . (\t -> if null t then "untitled" else t) . shorten' "…" w
|
||||||
|
|
||||||
outerspace, pink, sunsetorange, cultured, keylime :: String -> String
|
outerspace, pink, sunsetorange, cultured, keylime :: String -> String
|
||||||
pink = xmobarColor "#ff79c6" ""
|
pink = xmobarColor "#ff79c6" ""
|
||||||
@@ -230,66 +355,86 @@ myXmobarPP =
|
|||||||
myStartupHook :: X ()
|
myStartupHook :: X ()
|
||||||
myStartupHook = do
|
myStartupHook = do
|
||||||
restartStatusBars
|
restartStatusBars
|
||||||
|
scanDiscoverOverlay
|
||||||
spawnOnce myScreenSetup
|
spawnOnce myScreenSetup
|
||||||
spawnOnce "systemctl --user start fehbg.timer"
|
spawnOnce "systemctl --user start fehbg.timer"
|
||||||
spawnOnce "xsetroot -cursor_name left_ptr"
|
spawnOnce "xsetroot -cursor_name left_ptr"
|
||||||
spawnOnce "xautolock -time 10 -locker slock -detectsleep"
|
spawnOnce "xset s 590 10"
|
||||||
spawnOnce "systemctl --user start xautolock-inhibit"
|
spawnOnce "xset dpms 0 0 900"
|
||||||
|
spawnOnce "xss-lock -n xidle-dim -l -- screen-lock"
|
||||||
|
spawnOnce "systemctl --user start xidle-inhibit"
|
||||||
spawnOnce "redshift-gtk"
|
spawnOnce "redshift-gtk"
|
||||||
spawnOnce "systemctl --user start udiskie"
|
spawnOnce "systemctl --user start udiskie"
|
||||||
spawnOnce "nm-applet"
|
spawnOnce "nm-applet"
|
||||||
spawnOnce "arch-audit-gtk"
|
spawnOnce "arch-audit-gtk"
|
||||||
spawnOnce "calcurse --daemon"
|
spawnOnce "calcurse --daemon"
|
||||||
|
spawnOnce "systemctl --user start calcurse-today.timer"
|
||||||
|
spawnOnce "systemctl --user start calcurse-sync.timer"
|
||||||
spawnOnce "systemctl --user start dunst"
|
spawnOnce "systemctl --user start dunst"
|
||||||
spawnOnce "lxpolkit"
|
spawnOnce "lxpolkit"
|
||||||
spawnOnce "numlockx"
|
spawnOnce "numlockx"
|
||||||
spawnOnce "blueman-applet"
|
spawnOnce "blueman-applet"
|
||||||
spawnOnce "adb start-server"
|
spawnOnce "adb start-server"
|
||||||
spawnOnce "/home/fuxino/.local/bin/discover-overlay-wait"
|
spawnOnce "systemctl --user start discover-overlay-wait"
|
||||||
|
|
||||||
-- Manage hook
|
-- Manage hook
|
||||||
myManageHook :: ManageHook
|
myManageHook :: ManageHook
|
||||||
myManageHook =
|
myManageHook =
|
||||||
composeAll
|
composeAll
|
||||||
[ className =? "Gpodder" --> doShift wsMedia,
|
[ -- Proton games are steam_app_<id>; Wine windows are named after their .exe
|
||||||
className =? "An Anime Game Launcher" --> doShift wsGames,
|
className ^? "steam_app_" --> doShift wsGames,
|
||||||
className =? "Qalculate-gtk" --> doFloat,
|
className $? ".exe" --> doShift wsGames,
|
||||||
|
classIn ["steam", "an anime game launcher"] --> doShift wsGames,
|
||||||
title =? "Genshin Impact" --> doShift wsGames,
|
title =? "Genshin Impact" --> doShift wsGames,
|
||||||
className =? "Signal" --> doShift wsChat,
|
classIn ["steam_app_109600", "steam_app_289070"] --> doFloat,
|
||||||
className =? "Spotify" --> doShift wsMedia,
|
classIn ["zen", "vivaldi-stable", "transmission-gtk"] --> doShift wsWeb,
|
||||||
className =? "Transmission-gtk" --> doShift wsWeb,
|
classIn ["signal", "discord"] --> doShift wsChat,
|
||||||
className =? "Viewnior" --> doFloat,
|
classIn ["gpodder", "spotify", "freetube", "scrcpy", "gimp", "audacity"] --> doShift wsMedia,
|
||||||
className =? "Vivaldi-stable" --> doShift wsWeb,
|
classIn ["xreader", "calibre", "library_manager", "libreoffice-calc", "libreoffice-writer"] --> doShift wsDocs,
|
||||||
className =? "Xmessage" --> doFloat,
|
classIn ["virtualbox manager"] --> doShift wsVM,
|
||||||
className =? "Xreader" --> doShift wsDocs,
|
className =? "VirtualBox Machine" --> doFullFloat <+> doShift wsVM,
|
||||||
className =? "calibre" --> doShift wsDocs,
|
className =? "mpv" --> doFullFloat <+> viewShift wsMedia,
|
||||||
className =? "discord" --> doShift wsChat,
|
|
||||||
className =? "explorer.exe" --> doShift wsGames,
|
|
||||||
className =? "feh" --> doFloat,
|
|
||||||
title =? "glxgears" --> doFloat,
|
|
||||||
className =? "library_manager" --> doShift wsDocs,
|
|
||||||
className =? "libreoffice-calc" --> doShift wsDocs,
|
|
||||||
className =? "libreoffice-writer" --> doShift wsDocs,
|
|
||||||
className =? "mpv" --> doFullFloat,
|
|
||||||
className =? "mpv" --> viewShift wsMedia,
|
|
||||||
className =? "freetube" --> doShift wsMedia,
|
|
||||||
className =? myTerminal --> doShift wsTerm,
|
className =? myTerminal --> doShift wsTerm,
|
||||||
className =? "scrcpy" --> doShift wsMedia,
|
classIn
|
||||||
className =? "steam" --> doShift wsGames,
|
[ "qalculate-gtk", "viewnior", "xmessage", "feh", "lxappearance", "qt5ct", "qt6ct",
|
||||||
className =? "steam_app_109600" --> doFloat,
|
"pavucontrol", "org.pulseaudio.pavucontrol", "zenity", "org.gnome.zenity"
|
||||||
className =? "steam_app_109600" --> doShift wsGames,
|
]
|
||||||
className =? "steam_app_289070" --> doFloat,
|
--> doFloat,
|
||||||
className =? "steam_app_289070" --> doShift wsGames,
|
title =? "glxgears" --> doFloat,
|
||||||
className =? "VirtualBox Machine" --> doShift wsVM,
|
|
||||||
className =? "VirtualBox Machine" --> doFullFloat,
|
|
||||||
className =? "VirtualBox Manager" --> doShift wsVM,
|
|
||||||
className =? "zen" --> doShift wsWeb,
|
|
||||||
isDialog --> doFloat,
|
isDialog --> doFloat,
|
||||||
-- Windows that open already fullscreen; ewmhFullscreen only handles later requests
|
-- Windows that open already fullscreen; ewmhFullscreen only handles later requests
|
||||||
isFullscreen --> doFullFloat
|
isFullscreen --> doFullFloat
|
||||||
]
|
]
|
||||||
<+> namedScratchpadManageHook myScratchpads
|
<+> namedScratchpadManageHook myScratchpads
|
||||||
where viewShift = doF . liftM2 (.) W.greedyView W.shift
|
where
|
||||||
|
viewShift = doF . liftA2 (.) safeView W.shift
|
||||||
|
-- Case-insensitive, as GTK4 and firejailed apps capitalise their class differently
|
||||||
|
classIn names = (`elem` names) . map toLower <$> className
|
||||||
|
|
||||||
|
-- Fullscreen toggles: remember each window's float rect (Nothing if tiled) so leaving
|
||||||
|
-- fullscreen restores it instead of always sinking the window.
|
||||||
|
newtype PreFullscreen = PreFullscreen (M.Map Window (Maybe W.RationalRect))
|
||||||
|
|
||||||
|
instance ExtensionClass PreFullscreen where
|
||||||
|
initialValue = PreFullscreen M.empty
|
||||||
|
|
||||||
|
myFullscreenHook :: ManageHook
|
||||||
|
myFullscreenHook = do
|
||||||
|
w <- ask
|
||||||
|
liftX $ do
|
||||||
|
old <- gets (M.lookup w . W.floating . windowset)
|
||||||
|
XS.modify (\(PreFullscreen m) -> PreFullscreen (M.insert w old m))
|
||||||
|
doFullFloat
|
||||||
|
|
||||||
|
-- Windows with no record (e.g. opened fullscreen) are sunk, as before.
|
||||||
|
myUnfullscreenHook :: ManageHook
|
||||||
|
myUnfullscreenHook = do
|
||||||
|
w <- ask
|
||||||
|
old <- liftX $ do
|
||||||
|
PreFullscreen m <- XS.get
|
||||||
|
XS.put (PreFullscreen (M.delete w m))
|
||||||
|
pure (join (M.lookup w m))
|
||||||
|
maybe doSink doRectFloat old
|
||||||
|
|
||||||
-- Handle event hook
|
-- Handle event hook
|
||||||
myHandleEventHook :: Event -> X All
|
myHandleEventHook :: Event -> X All
|
||||||
@@ -298,6 +443,24 @@ myHandleEventHook =
|
|||||||
<> Hacks.trayerAboveXmobarEventHook
|
<> Hacks.trayerAboveXmobarEventHook
|
||||||
<> Hacks.trayerPaddingXmobarEventHook
|
<> Hacks.trayerPaddingXmobarEventHook
|
||||||
<> Hacks.fixSteamFlicker
|
<> Hacks.fixSteamFlicker
|
||||||
|
<> pinWindscribe
|
||||||
|
<> trackDiscoverOverlay
|
||||||
|
|
||||||
|
-- Windscribe moves itself to a saved position after mapping: apply its resizes (as core does for floats) but drop moves.
|
||||||
|
pinWindscribe :: Event -> X All
|
||||||
|
pinWindscribe e@ConfigureRequestEvent {ev_window = w} = do
|
||||||
|
floats <- gets (W.floating . windowset)
|
||||||
|
pinned <- if M.member w floats then runQuery (className =? "Windscribe2") w else pure False
|
||||||
|
when pinned $ withDisplay $ \dpy -> do
|
||||||
|
bw <- asks (borderWidth . config)
|
||||||
|
io $ configureWindow dpy w (ev_value_mask e .&. complement (fromIntegral (cWX .|. cWY))) $
|
||||||
|
WindowChanges
|
||||||
|
{ wc_x = 0, wc_y = 0, wc_width = ev_width e, wc_height = ev_height e,
|
||||||
|
wc_border_width = fromIntegral bw, wc_sibling = ev_above e, wc_stack_mode = ev_detail e }
|
||||||
|
float w
|
||||||
|
io $ sync dpy False
|
||||||
|
pure (All (not pinned))
|
||||||
|
pinWindscribe _ = pure (All True)
|
||||||
|
|
||||||
-- Log hook
|
-- Log hook
|
||||||
myLogHook :: X ()
|
myLogHook :: X ()
|
||||||
@@ -306,11 +469,34 @@ myLogHook = do
|
|||||||
xmonadPropLog =<< dynamicLogString =<< clickablePP myXmobarPP
|
xmonadPropLog =<< dynamicLogString =<< clickablePP myXmobarPP
|
||||||
|
|
||||||
-- discover-overlay's windows are override-redirect, so xmonad doesn't manage them and
|
-- discover-overlay's windows are override-redirect, so xmonad doesn't manage them and
|
||||||
-- raising a floating window (e.g. a game) covers them; put them back on top after every change
|
-- raising a floating window (e.g. a game) covers them; put them back on top after every change.
|
||||||
raiseDiscoverOverlay :: X ()
|
-- They're remembered when mapped, so the log hook doesn't query every window each time.
|
||||||
raiseDiscoverOverlay = withDisplay $ \d -> do
|
newtype OverlayWindows = OverlayWindows [Window]
|
||||||
|
|
||||||
|
instance ExtensionClass OverlayWindows where
|
||||||
|
initialValue = OverlayWindows []
|
||||||
|
|
||||||
|
isDiscoverOverlay :: Window -> X Bool
|
||||||
|
isDiscoverOverlay = runQuery (className =? "Discover-overlay")
|
||||||
|
|
||||||
|
-- Startup (incl. xmonad --restart): pick up overlays mapped before the event hook could see them
|
||||||
|
scanDiscoverOverlay :: X ()
|
||||||
|
scanDiscoverOverlay = withDisplay $ \d -> do
|
||||||
root <- asks theRoot
|
root <- asks theRoot
|
||||||
(_, _, ws) <- io $ queryTree d root
|
(_, _, ws) <- io $ queryTree d root
|
||||||
forM_ ws $ \w -> do
|
XS.put . OverlayWindows =<< filterM isDiscoverOverlay ws
|
||||||
cls <- io $ getClassHint d w
|
|
||||||
when (resClass cls == "Discover-overlay") $ io $ raiseWindow d w
|
trackDiscoverOverlay :: Event -> X All
|
||||||
|
trackDiscoverOverlay MapNotifyEvent {ev_window = w, ev_override_redirect = True} = do
|
||||||
|
overlay <- isDiscoverOverlay w
|
||||||
|
when overlay $ XS.modify $ \(OverlayWindows ws) -> OverlayWindows (w : filter (/= w) ws)
|
||||||
|
pure (All True)
|
||||||
|
trackDiscoverOverlay DestroyWindowEvent {ev_window = w} = do
|
||||||
|
XS.modify $ \(OverlayWindows ws) -> OverlayWindows (filter (/= w) ws)
|
||||||
|
pure (All True)
|
||||||
|
trackDiscoverOverlay _ = pure (All True)
|
||||||
|
|
||||||
|
raiseDiscoverOverlay :: X ()
|
||||||
|
raiseDiscoverOverlay = do
|
||||||
|
OverlayWindows ws <- XS.get
|
||||||
|
unless (null ws) $ withDisplay $ \d -> io $ mapM_ (raiseWindow d) ws
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Sets a random wallpaper on each monitor; with --keep, redraws the last ones picked instead.
|
||||||
|
|
||||||
|
cache=${XDG_CACHE_HOME:-$HOME/.cache}/wallpapers
|
||||||
|
|
||||||
|
if [[ $1 != --keep || ! -s $cache ]]; then
|
||||||
|
# One image per connected output, so --keep still has enough after an output was off
|
||||||
|
count=$(xrandr --query | grep -c ' connected')
|
||||||
|
shuf -n "$count" -e ~/.local/share/backgrounds/random/* > "$cache"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mapfile -t walls < "$cache"
|
||||||
|
exec /usr/bin/feh --no-fehbg --bg-fill "${walls[@]}"
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
# dotfiles
|
||||||
|
|
||||||
|
Configuration for my Arch Linux desktop: xmonad + xmobar on X11, kitty, fish, vim, mutt, mpd/ncmpcpp, lf and friends.
|
||||||
|
|
||||||
|
The repo is a bare git repository whose work tree is `$HOME`, so files are tracked in place with no symlinks or
|
||||||
|
install script. This README lives in `.github/` to keep it out of the home directory.
|
||||||
|
|
||||||
|
## Contents
|
||||||
|
|
||||||
|
| Area | Files |
|
||||||
|
| --- | --- |
|
||||||
|
| Shells | `.bashrc`, `.bash_profile`, `.bash_aliases`, `.config/fish/`, `.config/starship.toml` |
|
||||||
|
| X session | `.xinitrc`, `.xserverrc`, `.Xresources`, `.config/picom/`, `.config/dunst/` |
|
||||||
|
| Window manager | `.config/xmonad/` (built with stack), `.config/xmobar/` (bar configs and helper scripts) |
|
||||||
|
| Theming | `.gtkrc-2.0`, `.config/gtk-3.0/`, `.config/qt5ct/`, `.config/qt6ct/`, kitty and btop themes |
|
||||||
|
| Terminal apps | kitty, vim, lf, vifm, btop, calcurse, mutt, fastfetch/hyfetch |
|
||||||
|
| Audio / media | mpd, ncmpcpp, mpDris2, mpv, beets, pipewire |
|
||||||
|
| Packaging | `.config/aurutils-makepkg.conf`, `.config/aurb/`, `.local/bin/aurb` / `aurs` (aurutils wrappers) |
|
||||||
|
| Services | `.config/systemd/user/` (timers and overrides) |
|
||||||
|
| Scripts | `.local/bin/` (screen layout, phone mount, video helpers, Library, Garmin and Weather database dumps) |
|
||||||
|
|
||||||
|
Note: `config.fish` sources `~/.bash_aliases`, so the aliases apply in both shells.
|
||||||
|
|
||||||
|
## Setup on a new machine
|
||||||
|
|
||||||
|
```fish
|
||||||
|
git clone --bare https://git.shouldnt.work/fuxino/dotfiles.git ~/.dotfiles
|
||||||
|
alias config 'git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
|
||||||
|
config config status.showUntrackedFiles no
|
||||||
|
config checkout
|
||||||
|
```
|
||||||
|
|
||||||
|
If `checkout` refuses because some files already exist, move them out of the way (or delete them) and run it again.
|
||||||
|
|
||||||
|
## Not in the repo
|
||||||
|
|
||||||
|
Some files are deliberately left out and have to be recreated by hand:
|
||||||
|
|
||||||
|
- `.gitconfig`
|
||||||
|
- `.config/mutt/accounts/main_gmail` (account settings; `muttrc` sources it, so mutt won't start without it)
|
||||||
|
- Credentials (`.git-credentials`, the aurutils git credentials)
|
||||||
|
- Generated or state files (fish variables, histories, completions)
|
||||||
|
|
||||||
|
### xmonad and xmobar
|
||||||
|
|
||||||
|
Only `stack.yaml`, its lock file, `build` and `xmonad.hs` are tracked. The sources are expected as git checkouts
|
||||||
|
next to them:
|
||||||
|
|
||||||
|
```fish
|
||||||
|
cd ~/.config/xmonad
|
||||||
|
git clone https://github.com/xmonad/xmonad xmonad-git
|
||||||
|
git clone https://github.com/xmonad/xmonad-contrib xmonad-contrib-git
|
||||||
|
git clone https://codeberg.org/xmobar/xmobar xmobar-git
|
||||||
|
stack install
|
||||||
|
```
|
||||||
@@ -31,3 +31,13 @@ aur "$cmd" \
|
|||||||
--bind-rw "$THINLTO_HOST_DIR" \
|
--bind-rw "$THINLTO_HOST_DIR" \
|
||||||
--bind "$HOME/.config/aurb" \
|
--bind "$HOME/.config/aurb" \
|
||||||
"${args[@]}"
|
"${args[@]}"
|
||||||
|
status=$?
|
||||||
|
|
||||||
|
# After a successful sync, drop downloaded sources and logs from the AUR clones. Without -d,
|
||||||
|
# git clean keeps untracked directories, so VCS sources (bare clones) survive.
|
||||||
|
if [[ $cmd == sync && $status -eq 0 ]]; then
|
||||||
|
for clone in "${AURDEST:-${XDG_CACHE_HOME:-$HOME/.cache}/aurutils/sync}"/*/; do
|
||||||
|
[[ -d $clone.git ]] && git -C "$clone" clean -fxq
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
exit "$status"
|
||||||
Executable
+101
@@ -0,0 +1,101 @@
|
|||||||
|
#!/usr/bin/env python3
|
||||||
|
"""Renew calcurse-caldav's Google login: catch the OAuth redirect on 127.0.0.1 and hand the code to calcurse-sync.
|
||||||
|
|
||||||
|
--prompt shows a notification first and logs in when it is clicked.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
import configparser
|
||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
import urllib.parse
|
||||||
|
from http.server import BaseHTTPRequestHandler, HTTPServer
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
CONFIG = Path(os.environ.get("XDG_CONFIG_HOME", Path.home() / ".config")) / "calcurse" / "caldav" / "config"
|
||||||
|
WAIT_SECONDS = 300
|
||||||
|
|
||||||
|
|
||||||
|
def notify(summary: str, body: str = "", *extra: str) -> str:
|
||||||
|
"""Send a calcurse notification; with actions in extra, wait and return the chosen action's name."""
|
||||||
|
cmd = ["notify-send", "-a", "calcurse", "-i", "x-office-calendar", *extra, summary, body]
|
||||||
|
return subprocess.run(cmd, capture_output=True, text=True).stdout.strip()
|
||||||
|
|
||||||
|
|
||||||
|
def redirect_port() -> int:
|
||||||
|
parser = configparser.RawConfigParser()
|
||||||
|
parser.read(CONFIG)
|
||||||
|
uri = urllib.parse.urlparse(parser.get("OAuth2", "RedirectURI", fallback=""))
|
||||||
|
if uri.hostname != "127.0.0.1" or uri.port is None:
|
||||||
|
sys.exit(f"RedirectURI in {CONFIG} must be http://127.0.0.1:<port>")
|
||||||
|
return uri.port
|
||||||
|
|
||||||
|
|
||||||
|
def ui_running() -> bool:
|
||||||
|
ttys = subprocess.run(["ps", "-C", "calcurse", "-o", "tty="], capture_output=True, text=True).stdout.split()
|
||||||
|
return any(tty != "?" for tty in ttys)
|
||||||
|
|
||||||
|
|
||||||
|
class RedirectHandler(BaseHTTPRequestHandler):
|
||||||
|
result: dict[str, str] = {}
|
||||||
|
|
||||||
|
def do_GET(self) -> None:
|
||||||
|
query = urllib.parse.parse_qs(urllib.parse.urlparse(self.path).query)
|
||||||
|
for key in ("code", "error"):
|
||||||
|
if key in query:
|
||||||
|
RedirectHandler.result[key] = query[key][0]
|
||||||
|
done = bool(RedirectHandler.result)
|
||||||
|
self.send_response(200 if done else 404)
|
||||||
|
self.send_header("Content-Type", "text/plain; charset=utf-8")
|
||||||
|
self.end_headers()
|
||||||
|
if done:
|
||||||
|
self.wfile.write(b"calcurse: login received, you can close this tab.\n")
|
||||||
|
|
||||||
|
def log_message(self, format: str, *args: object) -> None:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def login() -> int:
|
||||||
|
if ui_running():
|
||||||
|
notify("Google Calendar login", "Close calcurse first, then log in again.", "-u", "critical")
|
||||||
|
return 1
|
||||||
|
server = HTTPServer(("127.0.0.1", redirect_port()), RedirectHandler)
|
||||||
|
# With an expired login calcurse-caldav opens the consent page and exits; with a valid one it just syncs.
|
||||||
|
if subprocess.run(["calcurse-caldav"], capture_output=True).returncode == 0:
|
||||||
|
notify("Google Calendar login", "Already logged in.")
|
||||||
|
return 0
|
||||||
|
deadline = time.monotonic() + WAIT_SECONDS
|
||||||
|
while not RedirectHandler.result and (left := deadline - time.monotonic()) > 0:
|
||||||
|
server.timeout = left
|
||||||
|
server.handle_request()
|
||||||
|
server.server_close()
|
||||||
|
code = RedirectHandler.result.get("code")
|
||||||
|
if not code:
|
||||||
|
reason = RedirectHandler.result.get("error", "no answer from the browser")
|
||||||
|
notify("Google Calendar login failed", reason, "-u", "critical")
|
||||||
|
return 1
|
||||||
|
# The user manager's PATH lacks ~/.local/bin: call calcurse-sync from this script's folder.
|
||||||
|
calcurse_sync = Path(__file__).resolve().with_name("calcurse-sync")
|
||||||
|
sync = subprocess.run([calcurse_sync, "--authcode", code], capture_output=True, text=True)
|
||||||
|
if sync.returncode != 0:
|
||||||
|
last_line = (sync.stdout.strip().splitlines() or [""])[-1]
|
||||||
|
notify("Google Calendar login failed", last_line, "-u", "critical")
|
||||||
|
return 1
|
||||||
|
notify("Google Calendar login renewed", "Synced again.")
|
||||||
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
def main() -> int:
|
||||||
|
parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
|
||||||
|
parser.add_argument("--prompt", action="store_true", help="ask with a notification before logging in")
|
||||||
|
if parser.parse_args().prompt:
|
||||||
|
body = "Click to log in again, then click Allow in the browser."
|
||||||
|
if notify("Google Calendar login expired", body, "-u", "critical", "-A", "default=Log in") != "default":
|
||||||
|
return 0
|
||||||
|
return login()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
sys.exit(main())
|
||||||
Executable
+57
@@ -0,0 +1,57 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# Sync calcurse with Google Calendar via calcurse-caldav; start the login prompt when the weekly OAuth login expires.
|
||||||
|
# --now: called from the UI's pre-load hook (skip the UI check, shorter timeout, no daemon restart).
|
||||||
|
# --authcode CODE: finish a login (from calcurse-relogin, which checks for the UI itself).
|
||||||
|
set -uo pipefail
|
||||||
|
|
||||||
|
data=${XDG_DATA_HOME:-$HOME/.local/share}/calcurse
|
||||||
|
state=${XDG_STATE_HOME:-$HOME/.local/state}/calcurse-sync
|
||||||
|
expired_flag=$state/login-expired
|
||||||
|
now=false
|
||||||
|
authcode=()
|
||||||
|
case ${1:-} in
|
||||||
|
--now) now=true ;;
|
||||||
|
--authcode) authcode=(--authcode "$2") ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# The UI keeps the data in memory, so syncing under it would lose changes; its post-save hook syncs after it exits.
|
||||||
|
ui_running() {
|
||||||
|
# shellcheck disable=SC2009 # pgrep can't match "has any terminal"
|
||||||
|
ps -C calcurse -o tty= | grep -qv '?'
|
||||||
|
}
|
||||||
|
|
||||||
|
if ! $now && ((${#authcode[@]} == 0)) && ui_running; then
|
||||||
|
echo "calcurse UI is running, skipping"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p "$state"
|
||||||
|
# BROWSER=true: an expired login must not open browser tabs on its own.
|
||||||
|
out=$(BROWSER=true timeout "$($now && echo 15 || echo 60)" calcurse-caldav "${authcode[@]}" 2>&1)
|
||||||
|
rc=$?
|
||||||
|
printf '%s\n' "$out"
|
||||||
|
|
||||||
|
if ((rc != 0)); then
|
||||||
|
if grep -q 'Access token is missing or refresh token is expired' <<<"$out"; then
|
||||||
|
# Prompt via calcurse-relogin, again daily if the prompt was dismissed.
|
||||||
|
if [[ ! -e $expired_flag || -n $(find "$expired_flag" -mmin +1440) ]]; then
|
||||||
|
systemctl --user start --no-block calcurse-relogin.service
|
||||||
|
touch "$expired_flag"
|
||||||
|
fi
|
||||||
|
elif grep -q 'Another synchronization instance' <<<"$out"; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
exit "$rc"
|
||||||
|
fi
|
||||||
|
rm -f "$expired_flag"
|
||||||
|
|
||||||
|
# A running daemon never re-reads the data files: restart it so imported appointments get alerts.
|
||||||
|
if ! $now && ! grep -q '^0 items imported, 0 items removed locally' <<<"$out"; then
|
||||||
|
pidfile=$data/.daemon.pid
|
||||||
|
if [[ -s $pidfile ]] && pid=$(<"$pidfile") && kill "$pid" 2>/dev/null; then
|
||||||
|
timeout 5 tail --pid="$pid" -f /dev/null
|
||||||
|
# Own scope, so the daemon outlives this oneshot service.
|
||||||
|
systemd-run --user --scope -q calcurse --daemon
|
||||||
|
echo "restarted calcurse daemon"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
Loaded 100 of 109 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user