Compare commits

...

10 Commits

12 changed files with 82 additions and 42 deletions

View File

@ -12,11 +12,11 @@ input {
follow_mouse = 0
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
sensitivity = -0.17
touchpad {
natural_scroll = true
scroll_factor = 0.2
scroll_factor = 0.15
}
}

View File

@ -22,13 +22,13 @@ bind = $mainMod, M, exec, $email
bind = $mainMod, XF86AudioMedia, exec, $powerMenu
# General binds
bind = $mainMod, Q, killactive,
#bind = $mainMod, M, exit,
bind = $mainMod, X, togglefloating,
bind = $mainMod, F, fullscreen,
bind = $mainMod, D, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, I, togglesplit, # dwindle
bind = $mainMod, q, killactive,
#bind = $mainMod, m, exit,
bind = $mainMod, x, togglefloating,
bind = $mainMod, f, fullscreen,
bind = $mainMod, d, exec, $menu
bind = $mainMod, p, pseudo, # dwindle
bind = $mainMod, s, togglesplit, # dwindle
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
@ -39,6 +39,8 @@ bind = $mainMod, h, movefocus, l
bind = $mainMod, l, movefocus, r
bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d
bind = $mainMod, n, focusmonitor, r
bind = $mainMod, m, focusmonitor, l
# Resize windows
bind = $mainMod CTRL, left, resizeactive, -35 0
@ -60,6 +62,8 @@ bind = $mainMod SHIFT, l, moveWindow, r
bind = $mainMod SHIFT, k, moveWindow, u
bind = $mainMod SHIFT, j, moveWindow, d
bindm = SUPER, mouse:272, movewindow
bind = $mainMod SHIFT, n, movecurrentworkspacetomonitor, r
bind = $mainMod SHIFT, m, movecurrentworkspacetomonitor, l
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1

View File

@ -6,7 +6,9 @@
################
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,1.566667
monitor=eDP-1,preferred,auto,1.566667
monitor=DP-2,preferred,auto,1
monitor=DP-4,preferred,auto,1
###################
### MY PROGRAMS ###

View File

@ -76,7 +76,7 @@ input-field {
# TITLE
label {
monitor =
text = Dune-OS
text = Dune OS
font_size = 90
font_family = $font_dune

View File

@ -1,3 +1,5 @@
preload = /home/alex/wallpapers/dune.jpg
wallpaper = eDP-1,/home/alex/wallpapers/dune.jpg
wallpaper = DP-2,/home/alex/wallpapers/dune.jpg
wallpaper = DP-4,/home/alex/wallpapers/dune.jpg

View File

@ -1,19 +1,19 @@
[[manager.prepend_keymap]]
[[mgr.prepend_keymap]]
on = [ "C", "i" ]
run = "plugin lazygit"
desc = "run lazygit"
[[manager.append_keymap]]
[[mgr.append_keymap]]
on = [ "g", "p" ]
run = "cd ~/Documents/Programming"
desc = "Go to ~/Documents/Programming"
[[manager.append_keymap]]
[[mgr.append_keymap]]
on = [ "g", "u" ]
run = "cd ~/Documents/Uni"
desc = "Go to ~/Documents/Uni"
[[manager.append_keymap]]
[[mgr.append_keymap]]
on = [ "g", "s" ]
run = "cd /mnt/smb"
desc = "Go to /mnt/smb"

View File

@ -1,9 +0,0 @@
[open]
rules = [
{ mime = "video/*", use = "play" },
]
[opener]
play = [
{ run = 'mpv "$@"', orphan = true}
]

View File

@ -0,0 +1,30 @@
#!/bin/bash
VPN_NAME="wg0"
HOME_ESSID="Alex's Vault"
interface=$1
status=$2
CURRENT_ESSID=$(iwgetid -r)
case $status in
up|vpn-down)
if [[ "$CURRENT_ESSID" != "$HOME_ESSID" ]]; then
logger "[vpn-dispatch] Connected to '$CURRENT_ESSID'. Starting VPN '$VPN_NAME'."
systemctl start wg-quick@$VPN_NAME
else
logger "[vpn-dispatch] On home network '$CURRENT_ESSID'. VPN not started."
fi
;;
down)
if [[ "$CURRENT_ESSID" != "$HOME_ESSID" ]]; then
if nmcli connection show --active | grep -q "$VPN_NAME"; then
logger "[vpn-dispatch] Disconnected from '$CURRENT_ESSID'. Stopping VPN '$VPN_NAME'."
systemctl stop wg-quick@$VPN_NAME
fi
else
logger "[vpn-dispatch] On home network '$CURRENT_ESSID'. No VPN to stop."
fi
;;
esac

View File

@ -28,14 +28,16 @@ ln -s ~/dotfiles/.conf/environment.d ~/.config/environment.d
pacman -S uwsm hyprland xdg-desktop-portal-hyprland hyprpaper qt5-wayland
# Basic essentials
pacman -S waybar dunst libnotify wofi pipewire brightnessctl man-db man-pages
pacman -S waybar dunst libnotify wofi pipewire brightnessctl wireless_tools man-db man-pages
# Yazi dependencies (but also useful otherwise)
pacman -S yazi ffmpeg poppler fd p7zip
# Other software
# Use amdctl for undervolting
pacman -S stress btop ripgrep bat neovim nano grim slurp dust fastfetch imv wl-clipboard amdctl
pacman -S stress btop bat neovim nano dust fastfetch imv wl-clipboard
# Screenshots
pacman -S grim slurp
# Bash prompt bar
pacman -S starship
@ -49,6 +51,13 @@ sudo pacman -S pacman-contrib
# Run networkmanager with "nmcli dev wifi connect 'ssid' password 'password'"
pacman -S networkmanager wpa_supplicant
# Waybar: https://github.com/sejjy/mechabar/tree/classic
# Dependencies:
# wireplumber is Session/policy manager implementation for PipeWire
pacman -S cava bluez-utils bluez pipewire-pulse ttf-jetbrains-mono-nerd wireplumber
yay -S rofi-lbonn-wayland-git bluetui
systemctl enable --now bluetooth.service
###################################################################
# TINKERING
###################################################################
@ -64,19 +73,14 @@ systemctl enable --now NetworkManager-dispatcher.service
systemctl mask systemd-rfkill.service # Needed for auto-disable of BT on boot by TLP
systemctl mask systemd-rfkill.socket # Also needed for auto-disable BT
# Make wireguard connection persistent in /etc/wireguard
# Make wireguard connection persistent in /etc/wireguard
# and ensure wireguard restarts when network is re-established after loss
echo "PersistentKeepalive = 25" >> /etc/wireguard/home.conf
# After installing Anki, force Anki to use Wayland by replacing Exec= in /usr/local/share/applications/anki.desktop
# Exec=env ANKI_WAYLAND=1 anki %f
cp ~/dotfiles/etc/NetworkManager/dispatcher.d/* /etc/NetworkManager/dispatcher.d/
###################################################################
# MANUAL CONFIGURATION REQUIRED
###################################################################
# Waybar: https://github.com/sejjy/mechabar/tree/classic
# Dependencies:
# wireplumber is Session/policy manager implementation for PipeWire
pacman -S cava bluez-utils bluez pipewire-pulse ttf-jetbrains-mono-nerd wireplumber
yay -S rofi-lbonn-wayland-git bluetui
systemctl enable --now bluetooth.service
# After installing Anki, force Anki to use Wayland by replacing Exec= in /usr/local/share/applications/anki.desktop
# Exec=env ANKI_WAYLAND=1 anki %f

View File

@ -1,13 +1,20 @@
[Default Applications]
x-scheme-handler/mailto=userapp-Thunderbird-B1FR62.desktop
message/rfc822=userapp-Thunderbird-B1FR62.desktop
x-scheme-handler/mid=userapp-Thunderbird-B1FR62.desktop
x-scheme-handler/mailto=org.mozilla.Thunderbird.desktop
message/rfc822=org.mozilla.Thunderbird.desktop
x-scheme-handler/mid=org.mozilla.Thunderbird.desktop
image/png=imv.desktop
image/jpeg=imv.desktop
image/gif=imv.desktop
image/bmp=imv.desktop
image/webp=imv.desktop
application/pdf=okularApplication_pdf.desktop
video/mp4=mpv.desktop
video/x-matroska=mpv.desktop
video/webm=mpv.desktop
video/avi=mpv.desktop
video/x-msvideo=mpv.desktop
video/mpeg=mpv.desktop
video/ogg=mpv.desktop
[Added Associations]
x-scheme-handler/mailto=userapp-Thunderbird-B1FR62.desktop;

1
remove_dolbyvision.sh Normal file
View File

@ -0,0 +1 @@
/usr/lib/jellyfin-ffmpeg/ffmpeg -y -hide_banner -stats -fflags +genpts+igndts -loglevel error -i "Star_Wars_the_Rise_of_Skywalker.mkv" -map 0:v:0 -map 0:a:0 -map 0:a:1 -map 0:a:5 -map 0:s? -c:v copy -bsf:v hevc_metadata=remove_dovi=1 -c:a copy -c:s copy -max_muxing_queue_size 2048 -avoid_negative_ts disabled "Star Wars the Rise of Skywalker.mkv"

View File

@ -1 +0,0 @@
/usr/lib/jellyfin-ffmpeg/ffmpeg -y -hide_banner -stats -fflags +genpts+igndts -loglevel error -i "/makemkv/output/John_Wick_4.mkv" -map 0 -bsf:v hevc_metadata=remove_dovi=1 -codec copy -max_muxing_queue_size 2048 -max_interleave_delta 0 -avoid_negative_ts disabled John_Wick_4.mkv