Compare commits

..

21 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
e35845099a [Hyprland] Update for new folder structure 2025-09-30 07:41:44 +02:00
c44ef61cf2 [Fish] Update for new folder structure 2025-09-30 07:41:14 +02:00
15 changed files with 54 additions and 43 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)
![screenshot of desktop with 2 screens](./assets/screenshot.png)
## Features
- Astal4 based Status Bar and Quick Actions menu
- 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 MINUTE = 60;
const HOUR = MINUTE * 60;
if (!time) return "Waiting on BIOS"
if (time > 24 * HOUR) return "24h+";
const hours = Math.round(time / HOUR);

View File

@@ -6,7 +6,7 @@ alias c='clear'
alias zs='zathura-sandbox'
alias z='zathura'
alias bt='bluetui'
alias vicfg='nvim ~/projects/active/nvim/'
alias vicfg='nvim ~/projects/nvim/'
alias fm='thunar .'
alias gl='git ls-files --others --exclude-standard'
alias gm='gti ls-files -m'
@@ -14,20 +14,21 @@ alias gpu='git push'
alias gp='git pull'
alias gc='git commit -a -m'
alias ga='git add ./*'
alias cfh='nvim ~/projects/active/dotfiles/config/hypr/'
alias cfn='nvim ~/projects/active/nvim/'
alias cff='nvim ~/projects/active/dotfiles/config/fish/'
alias cfa='nvim ~/projects/active/dotfiles/config/astal/'
alias cf='nvim ~/projects/active/dotfiles/'
alias cfh='nvim ~/projects/dotfiles/config/hypr/'
alias cfn='nvim ~/projects/nvim/'
alias cff='nvim ~/projects/dotfiles/config/fish/'
alias cfa='nvim ~/projects/dotfiles/config/astal/'
alias cf='nvim ~/projects/dotfiles/'
alias g='lazygit'
alias open-webui='sudo systemctl start docker && sudo docker start -i open-webui'
alias ai='ollama serve'
alias ff='fastfetch'
alias p='nvimpager'
alias latexdocs='zathura ~/projects/latex/docs/docs.pdf'
alias p='nvimpager -p'
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/active/dotfiles/general/scripts/ to path
fish_add_path -P ~/projects/active/dotfiles/scripts/
# Add scripts in ~/projects/dotfiles/scripts/ to path
fish_add_path -P ~/projects/dotfiles/scripts/
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")

View File

@@ -13,9 +13,9 @@ exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = hypridle
exec-once = nm-applet
exec-once = nextcloud --background
exec-once = sleep 2 && bash -c "ags run -d ~/projects/active/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 = bash -c "ags run -d ~/projects/active/dotfiles/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/"
# ── wlhist ──────────────────────────────────────────────────────────
@@ -126,11 +126,11 @@ animations {
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 5, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = fade, 1, 4, default
animation = workspaces, 1, 3, default
animation = windows, 1, 4, myBezier
animation = windowsOut, 1, 6, default, popin 80%
animation = border, 1, 8, default
animation = fade, 1, 3, default
animation = workspaces, 1, 2, default
animation = specialWorkspaceIn, 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
# exec = swaybg -m fill -i /home/janis/Pictures/arch-bg.png
source=./hyprland/binds.conf
source=./hyprland/general.conf
source=./hyprland/windowrules.conf
@@ -35,12 +32,11 @@ source=./hyprland/windowrules.conf
exec = hyprctl setcursor oreo_spark_blue_cursors 36
env = HYPRCURSOR_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 = XDG_SESSION_TYPE, wayland
env = QT_QPA_PLATFORM,wayland
# env = QT_QPA_PLATFORM_THEME,qt6ct
env = ELECTRON_OZONE_PLATFORM_HINT,wayland
env = QT_QPA_PLATFORM, wayland
env = ELECTRON_OZONE_PLATFORM_HINT, wayland
env = GDK_SCALE,2
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 ───────────────────────────────────────
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'
# ── Using docked ────────────────────────────────────────────────────

View File

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

View File

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

View File

@@ -1,2 +1,2 @@
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]
cmd=yazi-wrapper.sh
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
"
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
echo "
@@ -39,7 +39,7 @@ echo "
"
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
echo "
@@ -116,11 +116,11 @@ cd ./config/astal/
mkdir node_modules && cd node_modules && ln -sf /usr/share/astal/gjs/ ./astal
cd ../../config/ags/notifications/
mkdir node_modules && cd node_modules && ln -sf /usr/share/astal/gjs/ ./astal
cd ~/projects/active/dotfiles/
cd ~/projects/dotfiles/
./setup
cd ~/projects/active/
cd ~/projects/
git clone https://git.janishutz.com/janishutz/nvim
cd nvim
./nvim-install.sh

View File

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

View File

@@ -8,6 +8,6 @@ echo "
killall gjs
killall ags
sleep 4
ags run -d ~/projects/active/dotfiles/config/astal --gtk4 & disown
ags run -d ~/projects/dotfiles/config/astal --gtk4 & disown
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/
cp -r ./config/rofi ~/.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
if [[ "$platform" == "d" ]]; then
@@ -79,7 +80,7 @@ cp -r ./config/Thunar ~/.config/
cp -r ./config/wlogout/ ~/.config/
cp -r ./config/yazi ~/.config/
cp -r ./config/zathura ~/.config/
cp ./config/lint/.indentconfig.yaml ~/.indentconfig.yaml
cp ./config/lint/indentconfig.yaml ~/.indentconfig.yaml
echo "
=> Installing yazi plugins