From cb3663cddb05b3dece76731038e943a530254a76 Mon Sep 17 00:00:00 2001 From: Stuce Date: Sun, 13 Jul 2025 09:51:07 +0200 Subject: [PATCH] wallpapers and such --- Readme.md | 21 +++++----- config/hypr/hyprland.conf | 9 +++- config/hypr/hyprlock.conf | 87 +++++++++++++++++++++++++++++++++++++++ config/kitty/kitty.conf | 7 +++- home/.gitconfig | 3 ++ install.sh | 6 +-- scripts/background.sh | 2 +- scripts/lock.sh | 4 ++ 8 files changed, 122 insertions(+), 17 deletions(-) create mode 100644 config/hypr/hyprlock.conf create mode 100644 home/.gitconfig create mode 100755 scripts/lock.sh diff --git a/Readme.md b/Readme.md index b7efc44..6cbe677 100644 --- a/Readme.md +++ b/Readme.md @@ -6,30 +6,29 @@ All my dotfiles, easily installable using the install script. The scripts checks if a file already exists there before overwriting ! ## To do : -- [ ] git defaults -- [ ] kitty +- [x] git defaults +- [x] kitty - [x] theme - - [ ] remove annoying question on closing - - [ ] polish tab/panes shortcuts -- [ ] sessionizer (via kitty or lazyvim) + - [x] remove annoying question on closing + - [x] polish tab/panes shortcuts +- [ ] sessionizer (via kitty or lazyvim) (or both ?) - [ ] hyprland - [x] default functionality - [x] borders - [x] xdg-portal - [ ] multi gpu on desktop ? -- [ ] hyprlock and hyprctl +- [x] hyprlock - [ ] lazyvim - [x] remove enter in blink - [x] remove tabs - [x] harpoon - - [ ] markdown -- [ ] add greeter - - [x] works - - [ ] theme + - [ ] markdown - make it less annoying +- [x] add greeter - [x] bar - [ ] statusBar - [x] works - [ ] make battery conditional ? + - [ ] fix small annoying artifact since installing fonts - [ ] notifications - [ ] add per folder sudo when needed on install script - [ ] screen sharing works for zoom @@ -37,5 +36,7 @@ The scripts checks if a file already exists there before overwriting ! - [ ] all dependencies in a list to install everything (via pacman or yay) at once easily - [ ] add way to add export variables and aliases and scripts in bashrc/zshrc - [ ] customize terminal a bit ? try fsh ? +- [ ] Dependencies : everything that is needed to install should be recorded in dependencies file until it is actually implemented in the install script ## Usage `./install.sh` +NOTE: this is still work in progress, it does not work completely yet diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 9beac1f..2e5258e 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -1,7 +1,7 @@ exec-once=systemctl --user start hyprpolkitagent exec-once=i3bar-river -exec-once=hyprpaper exec-once="$HOME/dotfiles/scripts/background.sh" +exec-once=hyprpaper #exec-once = /nix/store/lww2khz04qsc8prjp8l0haldwz15yivi-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY HYPRLAND_INSTANCE_SIGNATURE WAYLAND_DISPLAY XDG_CURRENT_DESKTOP && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target $mod=SUPER #source=/nix/store/zqfq9kzjv69rzaif98fjlhg7k0218pyh-catppuccin-hyprland-0-unstable-2024-06-19/mocha.conf @@ -38,6 +38,12 @@ misc { } monitor=, preferred, auto, 1 +# Global shorcuts +bind = SUPER + ALT, S, pass, class:^(com\.obsproject\.Studio)$ +bind = SUPER + ALT, O, pass, class:^(com\.obsproject\.Studio)$ +bind = SUPER + ALT, P, pass, class:^(com\.obsproject\.Studio)$ +bind = SUPER + ALT, R, pass, class:^(com\.obsproject\.Studio)$ + # Launchers bind=$mod, D, exec, wmenu-run @@ -75,6 +81,7 @@ bind=$mod, code:17, workspace, 8 bind=$mod SHIFT, code:17, movetoworkspace, 8 bind=$mod, code:18, workspace, 9 bind=$mod SHIFT, code:18, movetoworkspace, 9 +bind=, XF86LogOff, exec, "$HOME/dotfiles/scripts/lock.sh" # Settings buttons binde=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+ diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf new file mode 100644 index 0000000..ffe86b3 --- /dev/null +++ b/config/hypr/hyprlock.conf @@ -0,0 +1,87 @@ +# sample hyprlock.conf +# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock +# +# rendered text in all widgets supports pango markup (e.g. or tags) +# ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#general-remarks +# +# shortcuts to clear password buffer: ESC, Ctrl+U, Ctrl+Backspace +# +# you can get started by copying this config to ~/.config/hypr/hyprlock.conf +# + +$font = Monospace + +general { + hide_cursor = true +} + +# uncomment to enable fingerprint authentication +# auth { +# fingerprint { +# enabled = true +# ready_message = Scan fingerprint to unlock +# present_message = Scanning... +# retry_delay = 250 # in milliseconds +# } +# } + +animations { + enabled = false +} + +background { + monitor = + path = $BG + # path = $HOME/dotfiles/backgrounds/uwp4468846.jpeg + blur_passes = 0 +} + +input-field { + monitor = + size = 150, 150 + outline_thickness = 10 + inner_color = rgba(0, 0, 0, 0.0) # no fill + + outer_color = rgba(33ccffee) rgba(00ff99ee) 45deg + check_color = rgba(00ff99ee) rgba(ff6633ee) 120deg + fail_color = rgba(ff6633ee) rgba(ff0066ee) 40deg + + font_color = rgb(143, 143, 143) + fade_on_empty = true + rounding = 100 + + font_family = $font + placeholder_text = + fail_text = $PAMFAIL + + # uncomment to use an input indicator that does not show the password length (similar to swaylock's input indicator) + hide_input = true + + position = 0, -20 + halign = center + valign = center +} + +# TIME +label { + monitor = + text = $TIME # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution + font_size = 90 + font_family = $font + + position = -30, 0 + halign = right + valign = top +} + +# DATE +label { + monitor = + text = cmd[update:60000] date +"%A, %d %B %Y" # update every 60 seconds + font_size = 25 + font_family = $font + + position = -30, -150 + halign = right + valign = top +} diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf index fb771ef..b70bf3b 100644 --- a/config/kitty/kitty.conf +++ b/config/kitty/kitty.conf @@ -65,5 +65,8 @@ map alt+2 goto_tab 2 map alt+3 goto_tab 3 map alt+4 goto_tab 4 map alt+5 goto_tab 5 -map alt+enter new_tab_with_cwd -map alt+q close_tab +map alt+enter new_window_with_cwd +map alt+t new_tab_with_cwd +map alt+q close_window + +confirm_os_window_close 0 diff --git a/home/.gitconfig b/home/.gitconfig new file mode 100644 index 0000000..b25b01c --- /dev/null +++ b/home/.gitconfig @@ -0,0 +1,3 @@ +[user] + email = lefabricesaucy@outlook.com + name = Stuce diff --git a/install.sh b/install.sh index 0ce6219..edcd8e9 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -sources=("$PWD/config/" "$PWD/etc/") -targets=("$HOME/.config/" "/etc/") +sources=("$PWD/config/" "$PWD/etc/" "$PWD/home/") +targets=("$HOME/.config/" "/etc/" "$HOME/") length=${#sources[@]} # TODO: need to address need to run as sudo to add symlink to certain folders, maybe ask in outer loop when sudo is needed and set a variable @@ -10,7 +10,7 @@ for ((i = 0; i < length; i++)); do source=${sources[i]} target=${targets[i]} - for folder in $(ls $source); do + for folder in $(ls $source -a); do if [ -e "$target$folder" ]; then echo "The file '$target$folder' exists." else diff --git a/scripts/background.sh b/scripts/background.sh index 4fcd283..e0da297 100755 --- a/scripts/background.sh +++ b/scripts/background.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash WALLPAPER_DIR="$HOME/dotfiles/backgrounds/" CURRENT_WALL=$(hyprctl hyprpaper listloaded) diff --git a/scripts/lock.sh b/scripts/lock.sh new file mode 100755 index 0000000..30da30e --- /dev/null +++ b/scripts/lock.sh @@ -0,0 +1,4 @@ +#!/bin/bash +WALLPAPER_DIR=$HOME/dotfiles/backgrounds/ +WALLPAPER=$(find "$WALLPAPER_DIR" | shuf -n 1) +BG=$WALLPAPER hyprlock