Compare commits

...

4 commits

Author SHA1 Message Date
b28f2da899 dotconfig: add 2025-08-17 13:38:24 +02:00
4af23ad5de bin: add 2025-08-17 13:38:03 +02:00
3f7c1b0c7c etc/acpi: add 2025-08-17 13:37:46 +02:00
7a7fcebd29 etc/portage: add 2025-08-17 13:37:28 +02:00
27 changed files with 387 additions and 0 deletions

8
bin/mount-nas Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
host=""
mountpoint=""
username=""
uid=
exec mount -t cifs -o username=$username -o uid=$uid -o vers=2.0 $host $mountpoint

9
dotconfig/foot/foot.ini Normal file
View file

@ -0,0 +1,9 @@
# foot config
font=monospace:size=10
dpi-aware=on
[colors]
background=000000
foreground=dcdccc
alpha=0.8

View file

@ -0,0 +1,25 @@
# fuzzel config
font=monospace:size=14
dpi-aware=on
icons-enabled=yes
icon-theme=Tela-circle-black-dark
width=30
lines=10
horizontal-pad=20
vertical-pod=10
inner-pad=20
[colors]
background=00000088
text=666666ff
prompt=ffffffff
input=ffffffff
selection=005fb5ff
selection-text=666666ff
match=ffffffff
selection-match=ffffffff
[border]
width=0
radius=15

3
dotconfig/kanshi/config Normal file
View file

@ -0,0 +1,3 @@
profile {
output eDP-1 position 0,0
}

10
dotconfig/mako/config Normal file
View file

@ -0,0 +1,10 @@
# mako config
font=monospace:size=14
background-color=#00000088
border-size=5
border-radius=15
border-color=#00000088
progress-color=#005FB5FF
icons=1
icon-path=/home/luc/.local/share/tela-circle-black-dark

9
dotconfig/rc/init.d/footserver Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/openrc-run
depend() {
need graphical-session
}
supervisor=supervise-daemon
command="/usr/bin/foot"
command_args="--server"

8
dotconfig/rc/init.d/kanshi Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/openrc-run
depend() {
need graphical-session
}
supervisor=supervise-daemon
command="/usr/bin/kanshi"

8
dotconfig/rc/init.d/mako Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/openrc-run
depend() {
need graphical-session
}
supervisor=supervise-daemon
command="/usr/bin/mako"

9
dotconfig/rc/init.d/pipewire Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/openrc-run
depend() {
need graphical-session
provide audio-session
}
supervisor=supervise-daemon
command="/usr/bin/pipewire"

View file

@ -0,0 +1,8 @@
#!/usr/bin/openrc-run
depend() {
need audio-session
}
supervisor=supervise-daemon
command="/usr/bin/pipewire-pulse"

9
dotconfig/rc/init.d/river Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/openrc-run
depend() {
need dbus
provide graphical-session
}
supervisor=supervise-daemon
command="/usr/bin/river"

View file

@ -0,0 +1,8 @@
#!/usr/bin/openrc-run
depend() {
need audio-session
}
supervisor=supervise-daemon
command="/usr/bin/wireplumber"

9
dotconfig/rc/init.d/wlsunset Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/openrc-run
depend() {
need graphical-session
}
supervisor=supervise-daemon
command="/usr/bin/wlsunset"
command_args="-l 52 -L 6"

View file

@ -0,0 +1,9 @@
#!/usr/bin/openrc-run
depend() {
need graphical-session
need audio-session
}
supervisor=supervise-daemon
command="/usr/libexec/xdg-desktop-portal-wlr"

1
dotconfig/rc/rc.conf Normal file
View file

@ -0,0 +1 @@
rc_env_allow="WAYLAND_DISPLAY"

131
dotconfig/river/binds Executable file
View file

@ -0,0 +1,131 @@
#!/bin/sh
# Super+Shift+Q to exit river
riverctl map normal Super+Shift Q spawn "openrc -U g && openrc -U default"
## Aplication mapping ##
# Super+Backspace to spawn waylock
riverctl map normal Super BackSpace spawn "waylock -ignore-empty-password -init-color 0x000000 -input-color 0x3D3D3D -input-alt-color 0x3D3D3D -fail-color 0xFFFFFF"
# Super+Return to spawn foot
riverctl map normal Super Return spawn footclient
# Super+Space to spawn fuzzel
riverctl map normal Super Space spawn fuzzel
# Super+D to dismiss mako notification
riverctl map normal Super d spawn "makoctl dismiss"
# Super+T to spawn datetime
riverctl map normal Super T spawn "$HOME/.local/bin/datetime"
# Super+B to spawn battery state
riverctl map normal Super B spawn "$HOME/.local/bin/battery"
# MonBrightnessUp to increase brightness by 5%
riverctl map normal None XF86_MonBrightnessUp spawn "$HOME/.local/bin/brightness"
# MonBrightnessDown to decrease brightness by 5%
riverctl map normal None XF86_MonBrightnessDown spawn "$HOME/.local/bin/brightness"
# Print to spawn interactive screenshot
#riverctl map normal None Print spawn "grim -g "$(slurp -d)" - | wl-copy -t image/jpeg"
# Shift+Print to spawn screenshot
#riverctl map normal Shift Print spawn "grim - | wl-copy -t image/jpeg"
## Focused view mapping ##
# Super+Q to close the focused view
riverctl map normal Super Q close
# Super+F to fullscreen toggle the focused view
riverctl map normal Super F toggle-fullscreen
# Super+BTN_MIDDLE to toggle float of the focused view
riverctl map-pointer normal Super BTN_MIDDLE toggle-float
# Super+BTN_LEFT to move the floated focused view
riverctl map-pointer normal Super BTN_LEFT move-view
# Super+BTN_RIGHT to resize the floated focused view
riverctl map-pointer normal Super BTN_RIGHT resize-view
# Super+{K;J} to focus next/previous view
riverctl map normal Super K focus-view next
riverctl map normal Super J focus-view previous
# Super+Shift+{K;J} to swap the focused view with the next/previous view
riverctl map normal Super+Shift K swap next
riverctl map normal Super+Shift J swap previous
# Super+{.;,} to focus the next/previous output
riverctl map normal Super Period focus-output next
riverctl map normal Super Comma focus-output previous
# Super+Shift+{.;,} to send the focused view to the next/previous output
riverctl map normal Super+Shift Period send-to-output next
riverctl map normal Super+Shift Comma send-to-output previous
## Rivertile mapping ##
# Super+{Up;Right;Down;Left} to change layout orientation
riverctl map normal Super Up send-layout-cmd rivertile "main-location top"
riverctl map normal Super Right send-layout-cmd rivertile "main-location right"
riverctl map normal Super Down send-layout-cmd rivertile "main-location down"
riverctl map normal Super Left send-layout-cmd rivertile "main-location left"
# Super+Shift+{Up;Down} to increment/decrement the main count of rivertile
riverctl map normal Super+Shift Up send-layout-cmd rivertile "main-count +1"
riverctl map normal Super+Shift Down send-layout-cmd rivertile "main-count -1"
# Super+Shift+{Right;Left} to increase/decrease the main ratio of rivertile
riverctl map normal Super+Shift Right send-layout-cmd rivertile "main-ratio +0.05"
riverctl map normal Super+Shift Left send-layout-cmd rivertile "main-ratio -0.05"
## Tag mapping ##
for i in $(seq 1 9)
do
j=$((1 << ($i - 1)))
# Super+[1-9] to focus tag [0-8]
riverctl map normal Super $i set-focused-tags $j
# Super+Shift+[1-9] to tag focused view with tag [0-8]
riverctl map normal Super+Shift $i set-view-tags $j
# Super+Control+[1-9] to toggle focus of tag [0-8]
riverctl map normal Super+Control $i toggle-focused-tags $j
# Super+Shift+Control+[1-9] to toggle tag [0-8] of focused view
riverctl map normal Super+Shift+Control $i toggle-view-tags $j
done
all_tags=$(((1 << 32) - 1))
# Super+O to focus all tags
riverctl map normal Super O set-focused-tags $all_tags
# Super+Shift+O to tag focused view with all tags
riverctl map normal Super+Shift O set-view-tags $all_tags
## Media mapping ##
# AudioRaiseVolume to increase volume audio sink by 5%
riverctl map normal None XF86AudioRaiseVolume spawn "$HOME/.local/bin/audio sink volup"
# AudioLowerVolume to decrease volume audio sink by 5%
riverctl map normal None XF86AudioLowerVolume spawn "$HOME/.local/bin/audio sink voldown"
# AudioMute to toggle mute audio sink
riverctl map normal None XF86AudioMute spawn "$HOME/.local/bin/audio sink toggle"
# AudioMicMute to toggle mute audio source
riverctl map normal None XF86AudioMicMute spawn "$HOME/.local/bin/audio source toggle"

40
dotconfig/river/init Executable file
View file

@ -0,0 +1,40 @@
#!/bin/sh
## Set colours
swaybg -m fill -c 000000 -i $HOME/.local/share/backgrounds/andromeda.jpg &
riverctl border-color-focused 0xFFFFFFCC
riverctl border-color-unfocused 0xFFFFF66
riverctl border-color-urgent 0xFFFFFF
# Set border-width
riverctl border-width 2
# Set layout
riverctl default-layout rivertile
rivertile -view-padding 4 -outer-padding 4 &
# Source the keybinds
source ~/.config/river/binds
# Switch to post-grahpical runlevel
openrc -U h
## Device input settings ##
# Keyboard layout
riverctl keyboard-layout qwerty
# Set keyboard repeat rate
riverctl set-repeat 50 300
# Set focus-follow
riverctl focus-follows-cursor normal
## Rules ##
# Set server-side-decorations for firefox
riverctl rule-add -app-id firefox-esr ssd
# Set server-side-decorations for thunderbird
riverctl rule-add -app-id thunderbird-esr ssd

15
dotconfig/user-dirs.dirs Normal file
View file

@ -0,0 +1,15 @@
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/desktop"
XDG_DOWNLOAD_DIR="$HOME/downloads"
XDG_TEMPLATES_DIR="$HOME/templates"
XDG_PUBLICSHARE_DIR="$HOME/public"
XDG_DOCUMENTS_DIR="$HOME/documents"
XDG_MUSIC_DIR="$HOME/music"
XDG_PICTURES_DIR="$HOME/pictures"
XDG_VIDEOS_DIR="$HOME/videos"

View file

@ -0,0 +1 @@
en_US

View file

@ -0,0 +1,8 @@
#!/bin/sh
for backlight in /sys/class/backlight/*; do
[ -d $backlight ] || continue
step=$(( $(cat "$backlight/max_brightness") / 20))
[ $step -gt 1 ] || step=1
printf '%s' "$(( $(cat "$backlight/brightness") $1 $step))" > "$backlight/brightness"
done

9
etc/acpi/actions/powerbtn.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
CURRENT_INIT=`ps -p 1 -o comm=`
if [ "$CURRENT_INIT" = "openrc-init" ]
then
/sbin/openrc-shutdown -p now
else
/sbin/shutdown -h now "Power button pressed"
fi

View file

@ -0,0 +1,2 @@
event=video[ /]brightnessdown
action=/etc/acpi/actions/brightnessdsp.sh -

View file

@ -0,0 +1,2 @@
event=video[ /]brightnessup
action=/etc/acpi/actions/brightnessdsp.sh +

2
etc/acpi/events/powerbtn Normal file
View file

@ -0,0 +1,2 @@
event=button[ /]power
action=/etc/acpi/actions/powerbtn.sh %e

2
etc/portage/env/enable-ccache.conf vendored Normal file
View file

@ -0,0 +1,2 @@
FEATURES="ccache"
CCACHE_DIR="/var/cache/ccache"

1
etc/portage/env/rust-makeopts.conf vendored Normal file
View file

@ -0,0 +1 @@
MAKEOPTS="-j8"

41
etc/portage/make.conf Normal file
View file

@ -0,0 +1,41 @@
# Compiler flags
COMMON_FLAGS="-march=native -O3 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
RUSTFLAGS="${RUSTFLAGS} -C target-cpu=native"
# Compile options
MAKEOPTS="-j10 -l12"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult https://wiki.gentoo.org/wiki/Changing_the_CHOST_variable before changing.
CHOST="x86_64-pc-linux-musl"
# NOTE: This stage was built with the bindist USE flag enabled
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=en_US.utf8
# Logging
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_LOGDIR="/var/log/portage"
PORTAGE_LOGDIR_CLEAN="find \"\${PORTAGE_LOGDIR}\" -type f ! -name \"summary.log*\" -mtime +7 -delete"
# Only accept free licenses
ACCEPT_LICENSE="-* @FREE"
# USE flags
USE="${USE} -debug -telemetry -modemmanager -ext* -ppp -systemd -elogind -X -kde -gnome -gtk-doc -webengine hardened dist-kernel udev initramfs hostonly secureboot modules-sign apparmor acpi networkmanager dbus hwaccel bash-completion man pam pipewire pulseaudio vulkan wayland jpeg png svg eme-free"
# Emerge flags
EMERGE_DEFAULT_OPTS="${EMERGE_DEFAULT_OPTS} --with-bdeps y --quiet-build y"
# Secureboot settings
SECUREBOOT_SIGN_KEY="/var/lib/sbctl/keys/db/db.key"
SECUREBOOT_SIGN_CERT="/var/lib/sbctl/keys/db/db.pem"
MODULES_SIGN_KEY="${SECUREBOOT_SIGN_KEY}"
MODULES_SIGN_CERT="${SECUREBOOT_SIGN_CERT}"
MODULES_SIGN_HASH="sha512"