Compare commits

...

19 Commits

Author SHA1 Message Date
30488edaed [Fish] Fix latexdocs alias 2025-10-10 15:05:28 +02:00
8ed711d300 [Fish] Improve latex doc opening 2025-10-09 21:08:06 +02:00
a8043a9899 [Hyprland] Speed up animations even more 2025-10-09 11:02:51 +02:00
aa9ebaf22b [Astal] Battery widget: Show waiting 2025-10-09 09:33:21 +02:00
2314a17066 [Install] Add ntp 2025-10-06 13:11:34 +02:00
7051688fa5 [Clang] Formatter: Only merge empty functions 2025-10-05 12:13:56 +02:00
0f4f601a2d [Clang] Improve formatter config 2025-10-05 12:09:53 +02:00
f38e2ff94f [Clang] Improve formatter config 2025-10-05 11:58:55 +02:00
50c5cf945d [Clang] Improve formatter config 2025-10-05 08:38:26 +02:00
903da245ac [Termfilechooser] Fix 2025-10-04 08:53:07 +02:00
2d15296597 [Fish] Force pager into pager mode and not cat 2025-10-02 14:39:15 +02:00
3a619cbf92 [Hyprland] Add new keybind on laptop 2025-10-02 14:21:32 +02:00
530022ee59 [Hyprlock] Update clock 2025-10-02 08:39:03 +02:00
5c01a5f806 [LatexIndent] Fix path 2025-10-01 15:34:14 +02:00
b6f5ad9bcf [Install] Add man 2025-10-01 13:44:15 +02:00
92dc644ee2 [Fish] Add alias for gcc with error flags 2025-10-01 12:42:14 +02:00
ddc39f4928 [Setup] Fix indentconfig copying 2025-10-01 10:48:30 +02:00
a93d7494d3 [Install] Add sysstat package 2025-10-01 10:47:13 +02:00
706cff40b3 [Setup] Fix errors with startup 2025-09-30 14:03:26 +02:00
15 changed files with 46 additions and 35 deletions

View File

@@ -5,6 +5,8 @@
Collection of dotfiles for my personal Hyprland setup, running on Arch Linux. Includes a setup and install script (that one is not complete yet though). For my neovim config, see [here](https://git.janishutz.com/janishutz/nvim) Collection of dotfiles for my personal Hyprland setup, running on Arch Linux. Includes a setup and install script (that one is not complete yet though). For my neovim config, see [here](https://git.janishutz.com/janishutz/nvim)
![screenshot of desktop with 2 screens](./assets/screenshot.png)
## Features ## Features
- Astal4 based Status Bar and Quick Actions menu - Astal4 based Status Bar and Quick Actions menu
- System info - System info

BIN
assets/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@@ -41,10 +41,10 @@ export const BatteryBox = () => {
); );
}; };
const MINUTE = 60;
const HOUR = MINUTE * 60;
const toTime = (time: number) => { const toTime = (time: number) => {
const MINUTE = 60; if (!time) return "Waiting on BIOS"
const HOUR = MINUTE * 60;
if (time > 24 * HOUR) return "24h+"; if (time > 24 * HOUR) return "24h+";
const hours = Math.round(time / HOUR); const hours = Math.round(time / HOUR);

View File

@@ -6,7 +6,7 @@ alias c='clear'
alias zs='zathura-sandbox' alias zs='zathura-sandbox'
alias z='zathura' alias z='zathura'
alias bt='bluetui' alias bt='bluetui'
alias vicfg='nvim ~/projects/active/nvim/' alias vicfg='nvim ~/projects/nvim/'
alias fm='thunar .' alias fm='thunar .'
alias gl='git ls-files --others --exclude-standard' alias gl='git ls-files --others --exclude-standard'
alias gm='gti ls-files -m' alias gm='gti ls-files -m'
@@ -23,8 +23,9 @@ alias g='lazygit'
alias open-webui='sudo systemctl start docker && sudo docker start -i open-webui' alias open-webui='sudo systemctl start docker && sudo docker start -i open-webui'
alias ai='ollama serve' alias ai='ollama serve'
alias ff='fastfetch' alias ff='fastfetch'
alias p='nvimpager' alias p='nvimpager -p'
alias latexdocs='zathura ~/projects/latex/docs/docs.pdf' alias latexdocs='zathura ~/projects/latex/docs/docs.pdf &>> /dev/null & disown'
alias gccerr='gcc -Wall -Wextra -Wpedantic -Werror -Wmissing-prototypes -std=c99'
# Add scripts in ~/projects/dotfiles/scripts/ to path # Add scripts in ~/projects/dotfiles/scripts/ to path
fish_add_path -P ~/projects/dotfiles/scripts/ fish_add_path -P ~/projects/dotfiles/scripts/

View File

@@ -15,7 +15,7 @@ exec-once = nm-applet
exec-once = nextcloud --background exec-once = nextcloud --background
exec-once = sleep 2 && bash -c "ags run -d ~/projects/dotfiles/config/astal/ --gtk4 >> /tmp/runner-log 2>&1" exec-once = sleep 2 && bash -c "ags run -d ~/projects/dotfiles/config/astal/ --gtk4 >> /tmp/runner-log 2>&1"
# exec-once = sleep 2 && bash -c "ags run -d ~/projects/active/dotfiles/config/astal/ --gtk4" # exec-once = sleep 2 && bash -c "ags run -d ~/projects/active/dotfiles/config/astal/ --gtk4"
exec-once = bash -c "ags run -d ~/projects/config/ags/notifications/ >> /tmp/notifier-log 2>&1" exec-once = bash -c "ags run -d ~/projects/dotfiles/config/ags/notifications/ >> /tmp/notifier-log 2>&1"
# exec-once = bash -c "ags run -d ~/projects/active/dotfiles/config/ags/notifications/" # exec-once = bash -c "ags run -d ~/projects/active/dotfiles/config/ags/notifications/"
# ── wlhist ────────────────────────────────────────────────────────── # ── wlhist ──────────────────────────────────────────────────────────
@@ -126,11 +126,11 @@ animations {
bezier = myBezier, 0.05, 0.9, 0.1, 1.05 bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 5, myBezier animation = windows, 1, 4, myBezier
animation = windowsOut, 1, 7, default, popin 80% animation = windowsOut, 1, 6, default, popin 80%
animation = border, 1, 10, default animation = border, 1, 8, default
animation = fade, 1, 4, default animation = fade, 1, 3, default
animation = workspaces, 1, 3, default animation = workspaces, 1, 2, default
animation = specialWorkspaceIn, 1, 2, default, fade animation = specialWorkspaceIn, 1, 2, default, fade
animation = specialWorkspaceOut, 1, 2, default, fade animation = specialWorkspaceOut, 1, 2, default, fade
} }

View File

@@ -22,9 +22,6 @@ monitor=eDP-1, 2880x1800@60, 0x0, 1.5
monitor=,highres highrr, auto, 1 monitor=,highres highrr, auto, 1
# exec = swaybg -m fill -i /home/janis/Pictures/arch-bg.png
source=./hyprland/binds.conf source=./hyprland/binds.conf
source=./hyprland/general.conf source=./hyprland/general.conf
source=./hyprland/windowrules.conf source=./hyprland/windowrules.conf
@@ -35,12 +32,11 @@ source=./hyprland/windowrules.conf
exec = hyprctl setcursor oreo_spark_blue_cursors 36 exec = hyprctl setcursor oreo_spark_blue_cursors 36
env = HYPRCURSOR_THEME, Oreo_spark_blue_cursor env = HYPRCURSOR_THEME, Oreo_spark_blue_cursor
env = X_CURSOR_THEME, Oreo_spark_blue_cursor env = X_CURSOR_THEME, Oreo_spark_blue_cursor
env = XCURSOR_SIZE,24 env = XCURSOR_SIZE, 24
env = ELECTRON_ENABLE_HIGHDPI_SUPPORT, 1 env = ELECTRON_ENABLE_HIGHDPI_SUPPORT, 1
env = XDG_SESSION_TYPE, wayland env = XDG_SESSION_TYPE, wayland
env = QT_QPA_PLATFORM,wayland env = QT_QPA_PLATFORM, wayland
# env = QT_QPA_PLATFORM_THEME,qt6ct env = ELECTRON_OZONE_PLATFORM_HINT, wayland
env = ELECTRON_OZONE_PLATFORM_HINT,wayland
env = GDK_SCALE,2 env = GDK_SCALE,2
exec-once = hyprpm reload -nn exec-once = hyprpm reload -nn
@@ -66,6 +62,7 @@ bind = $mainMod CTRL, E, exec, hyprctl keyword monitor HDMI-A-1, 1920x1080@60, 1
# ── Internal display controls ─────────────────────────────────────── # ── Internal display controls ───────────────────────────────────────
bind = $mainMod ALT, E, exec, hyprctl keyword monitor eDP-1, 2880x1800@60, 0x0, 1.5 && cpupower-gui -b && notify-send 'Set to battery optimized settings' bind = $mainMod ALT, E, exec, hyprctl keyword monitor eDP-1, 2880x1800@60, 0x0, 1.5 && cpupower-gui -b && notify-send 'Set to battery optimized settings'
bind = $mainMod ALT, B, exec, hyprctl keyword monitor eDP-1, 2880x1800@120, 0x0, 1.5 && cpupower-gui -b && notify-send 'Set to balanced performance settings'
bind = $mainMod ALT, P, exec, hyprctl keyword monitor eDP-1, 2880x1800@120, 0x0, 1.5 && cpupower-gui -p && notify-send 'Set to performance optimized settings' bind = $mainMod ALT, P, exec, hyprctl keyword monitor eDP-1, 2880x1800@120, 0x0, 1.5 && cpupower-gui -p && notify-send 'Set to performance optimized settings'
# ── Using docked ──────────────────────────────────────────────────── # ── Using docked ────────────────────────────────────────────────────

View File

@@ -45,7 +45,7 @@ label {
monitor = monitor =
text = <b>$TIME</b> text = <b>$TIME</b>
color = color =
font_size = 100 font_size = 150
font_family = Comfortaa font_family = Comfortaa
position = 0, 80 position = 0, 80

View File

@@ -5,10 +5,10 @@
# ───────────────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────────────
BasedOnStyle: LLVM BasedOnStyle: LLVM
AccessModifierOffset: -2 AccessModifierOffset: -2
AlignAfterOpenBracket: Align AlignAfterOpenBracket: BlockIndent
AlignArrayOfStructures: Left AlignArrayOfStructures: Left
AlignConsecutiveAssignments: AlignConsecutiveAssignments:
Enabled: true Enabled: false
AcrossEmptyLines: false AcrossEmptyLines: false
AcrossComments: false AcrossComments: false
AlignCompound: false AlignCompound: false
@@ -22,7 +22,7 @@ AlignConsecutiveBitFields:
AlignFunctionPointers: false AlignFunctionPointers: false
PadOperators: false PadOperators: false
AlignConsecutiveDeclarations: AlignConsecutiveDeclarations:
Enabled: true Enabled: false
AcrossEmptyLines: false AcrossEmptyLines: false
AcrossComments: false AcrossComments: false
AlignCompound: false AlignCompound: false
@@ -75,7 +75,7 @@ AllowShortCaseExpressionOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: false AllowShortCaseLabelsOnASingleLine: false
AllowShortCompoundRequirementOnASingleLine: true AllowShortCompoundRequirementOnASingleLine: true
AllowShortEnumsOnASingleLine: true AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: All AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: All AllowShortLambdasOnASingleLine: All
AllowShortLoopsOnASingleLine: false AllowShortLoopsOnASingleLine: false
@@ -94,7 +94,7 @@ BraceWrapping:
AfterFunction: false AfterFunction: false
AfterNamespace: false AfterNamespace: false
AfterObjCDeclaration: false AfterObjCDeclaration: false
AfterStruct: false AfterStruct: true
AfterUnion: false AfterUnion: false
AfterExternBlock: false AfterExternBlock: false
BeforeCatch: false BeforeCatch: false
@@ -110,7 +110,7 @@ BreakAfterAttributes: Always
BreakAfterJavaFieldAnnotations: false BreakAfterJavaFieldAnnotations: false
BreakAfterReturnType: None BreakAfterReturnType: None
BreakArrays: true BreakArrays: true
BreakBeforeBinaryOperators: None BreakBeforeBinaryOperators: All
BreakBeforeBraces: Attach BreakBeforeBraces: Attach
BreakBeforeConceptDeclarations: Always BreakBeforeConceptDeclarations: Always
BreakBeforeInlineASMColon: OnlyMultiline BreakBeforeInlineASMColon: OnlyMultiline

View File

@@ -1,2 +1,2 @@
paths: paths:
- /home/janis/projects/active/dotfiles/config/lint/latexfmt.yaml - /home/janis/projects/dotfiles/config/lint/latexfmt.yaml

View File

@@ -1,3 +1,11 @@
[filechooser] [filechooser]
cmd=yazi-wrapper.sh cmd=yazi-wrapper.sh
default_dir=$HOME default_dir=$HOME
; Uncomment to skip creating destination save files with instructions in them
; create_help_file=0
; Uncomment and edit the line below to change the terminal emulator command
; env=TERMCMD=foot
; Mode must be one of 'suggested', 'default', or 'last'.
open_mode=suggested
save_mode=suggested

View File

@@ -0,0 +1,2 @@
[preferred]
org.freedesktop.impl.portal.FileChooser=termfilechooser

View File

@@ -24,7 +24,7 @@ echo "
==> Installing Hyprland ==> Installing Hyprland
" "
sleep 2 sleep 2
yay -S --noconfirm --noremovemake hyprland hypridle hyprfreeze hyprlock aylurs-gtk-shell brightnessctl pulsemixer xdg-desktop-portal-hyprland cliphist grimblast wl-clipboard polkit-gnome swaybg polkit-kde-agent grim rofi cpio yay -S --noconfirm --noremovemake hyprland hypridle hyprfreeze hyprlock aylurs-gtk-shell brightnessctl pulsemixer xdg-desktop-portal-hyprland cliphist grimblast wl-clipboard polkit-gnome swaybg polkit-kde-agent grim rofi cpio sysstat
# Audio, drivers # Audio, drivers
echo " echo "
@@ -39,7 +39,7 @@ echo "
" "
sleep 2 sleep 2
yay -S --noconfirm --noremovemake fish fzf ouch zathura zathura-pdf-poppler wget vimiv zoxide thunar yazi gnome-tweaks lxappearance gnome-keyring ffmpeg network-manager-applet cpupower-gui python-tkinter acpi python-pillow seahorse yay -S --noconfirm --noremovemake fish fzf ouch zathura zathura-pdf-poppler wget vimiv zoxide thunar yazi gnome-tweaks lxappearance gnome-keyring ffmpeg network-manager-applet cpupower-gui python-tkinter acpi python-pillow seahorse man man-pages ntp
# Set up yazi # Set up yazi
echo " echo "
@@ -116,11 +116,11 @@ cd ./config/astal/
mkdir node_modules && cd node_modules && ln -sf /usr/share/astal/gjs/ ./astal mkdir node_modules && cd node_modules && ln -sf /usr/share/astal/gjs/ ./astal
cd ../../config/ags/notifications/ cd ../../config/ags/notifications/
mkdir node_modules && cd node_modules && ln -sf /usr/share/astal/gjs/ ./astal mkdir node_modules && cd node_modules && ln -sf /usr/share/astal/gjs/ ./astal
cd ~/projects/active/dotfiles/ cd ~/projects/dotfiles/
./setup ./setup
cd ~/projects/active/ cd ~/projects/
git clone https://git.janishutz.com/janishutz/nvim git clone https://git.janishutz.com/janishutz/nvim
cd nvim cd nvim
./nvim-install.sh ./nvim-install.sh

View File

@@ -45,7 +45,7 @@ label {
monitor = monitor =
text = <b>$TIME</b> text = <b>$TIME</b>
color = {{ colour-primary-rgb }} color = {{ colour-primary-rgb }}
font_size = 100 font_size = 150
font_family = {{ font-primary }} font_family = {{ font-primary }}
position = 0, 80 position = 0, 80

View File

@@ -8,6 +8,6 @@ echo "
killall gjs killall gjs
killall ags killall ags
sleep 4 sleep 4
ags run -d ~/projects/active/dotfiles/config/astal --gtk4 & disown ags run -d ~/projects/dotfiles/config/astal --gtk4 & disown
sleep 2 sleep 2
ags run -d ~/projects/active/dotfiles/config/ags/notifications & disown ags run -d ~/projects/dotfiles/config/ags/notifications & disown

3
setup
View File

@@ -60,6 +60,7 @@ cp -r ./config/hypr ~/.config/
rm -rf ~/.config/rofi/ rm -rf ~/.config/rofi/
cp -r ./config/rofi ~/.config/ cp -r ./config/rofi ~/.config/
cp -r ./config/xdg-desktop-portal-termfilechooser/ ~/.config/ cp -r ./config/xdg-desktop-portal-termfilechooser/ ~/.config/
cp -r ./config/xdg-desktop-portal/ ~/.config/
# Depending on platform, remove one or the other config and rename remaining one # Depending on platform, remove one or the other config and rename remaining one
if [[ "$platform" == "d" ]]; then if [[ "$platform" == "d" ]]; then
@@ -79,7 +80,7 @@ cp -r ./config/Thunar ~/.config/
cp -r ./config/wlogout/ ~/.config/ cp -r ./config/wlogout/ ~/.config/
cp -r ./config/yazi ~/.config/ cp -r ./config/yazi ~/.config/
cp -r ./config/zathura ~/.config/ cp -r ./config/zathura ~/.config/
cp ./config/lint/.indentconfig.yaml ~/.indentconfig.yaml cp ./config/lint/indentconfig.yaml ~/.indentconfig.yaml
echo " echo "
=> Installing yazi plugins => Installing yazi plugins