commit d30379991edc3708a80eea7a38739200ec2bc7d1 Author: stuce-bot Date: Thu Jul 10 19:39:59 2025 +0200 first commit diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf new file mode 100644 index 0000000..c93c0bc --- /dev/null +++ b/config/hypr/hyprland.conf @@ -0,0 +1,79 @@ +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 +source=/nix/store/ll6lprw073fwdnqgn75s9csi4i4h1351-hyprland-pink-accent.conf +animations { + enabled=false +} + +decoration { + blur { + enabled=false + } + + shadow { + enabled=false + } +} + +general { + gaps_in=0 + gaps_out=0 +} + +input { + kb_layout=us,ch + kb_options=caps:swapescape + kb_variant=,fr +} + +misc { + middle_click_paste=false + vfr=true +} +bind=$mod, D, exec, bemenu-run +bind=$mod, RETURN, exec, kitty +bind=$mod, Y, exec, foot yazi +bind=$mod + SHIFT, Q, killactive +bind=$mod, SPACE, togglefloating +bind=$mod, F, fullscreen, 1 +bind=$mod, H, movefocus, l +bind=$mod, J, movefocus, d +bind=$mod, K, movefocus, u +bind=$mod, L, movefocus, r +bind=$mod + SHIFT, H, movewindow, l +bind=$mod + SHIFT, J, movewindow, d +bind=$mod + SHIFT, K, movewindow, u +bind=$mod + SHIFT, L, movewindow, r +bind=$mod, P, exec, tms +bind=$mod, P, exec, kitty --app-id="sessionizer" ~/dev/scripts/kitty-sessionizer +bind=$mod, code:10, workspace, 1 +bind=$mod SHIFT, code:10, movetoworkspace, 1 +bind=$mod, code:11, workspace, 2 +bind=$mod SHIFT, code:11, movetoworkspace, 2 +bind=$mod, code:12, workspace, 3 +bind=$mod SHIFT, code:12, movetoworkspace, 3 +bind=$mod, code:13, workspace, 4 +bind=$mod SHIFT, code:13, movetoworkspace, 4 +bind=$mod, code:14, workspace, 5 +bind=$mod SHIFT, code:14, movetoworkspace, 5 +bind=$mod, code:15, workspace, 6 +bind=$mod SHIFT, code:15, movetoworkspace, 6 +bind=$mod, code:16, workspace, 7 +bind=$mod SHIFT, code:16, movetoworkspace, 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 +binde=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+ +binde=, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%- +binde=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle +binde=, XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle +binde=, XF86MonBrightnessUp, exec, brightnessctl s +5% +binde=, XF86MonBrightnessDown, exec, brightnessctl s 5%- +bindl=, switch:off:3c3fceb90, exec, swaylock +exec-once=i3bar-river +exec-once=swaybg -i ~/.backgrounds/nixos-wallpaper-catppuccin-mocha.png +exec-once=systemctl --user start hyprpolkitagent +monitor=, preferred, auto, 1 +windowrule=float, class:sessionizer diff --git a/config/i3bar-river/config.toml b/config/i3bar-river/config.toml new file mode 100644 index 0000000..e0928e0 --- /dev/null +++ b/config/i3bar-river/config.toml @@ -0,0 +1,14 @@ +background = "#11111b" +color = "#00ff00" +command = "i3status-rs ~/.config/i3status-rust/config-default.toml" +font = "pango:monospace 10" +height = 20 +tag_bg = "#313244" +tag_fg = "#cdd6f4" +tag_focused_bg = "#f5a7de" +tag_focused_fg = "#585b70" +tag_inactive_bg = "#cdd6f4" +tag_inactive_fg = "#313244" +tag_urgent_bg = "#ce052a" +tag_urgent_fg = "#585b70" +tags_padding = 10 diff --git a/config/i3status-rust/config.toml b/config/i3status-rust/config.toml new file mode 100644 index 0000000..4c5abd7 --- /dev/null +++ b/config/i3status-rust/config.toml @@ -0,0 +1,42 @@ +[[block]] +block = "battery" +interval = 30 + +[[block]] +block = "net" +format = " $icon {$signal_strength $ssid|Wired connection}" +interval = 10 + +[[block]] +block = "disk_space" +interval = 300 + +[[block]] +block = "memory" +format = " $icon $mem_used_percents" +interval = 30 + +[[block]] +block = "cpu" + +[[block]] +block = "sound" +max_vol = 150 +show_volume_when_muted = true + +[[block]] +block = "sound" +device_kind = "source" +max_vol = 150 +show_volume_when_muted = true + +[[block]] +block = "time" +format = " $timestamp.datetime(f:' %d/%m %R') " +interval = 60 + +[icons] +icons = "material-nf" + +[theme] +theme = "ctp-mocha" diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf new file mode 100644 index 0000000..aa0b37e --- /dev/null +++ b/config/kitty/kitty.conf @@ -0,0 +1,18 @@ +# Generated by Home Manager. +# See https://sw.kovidgoyal.net/kitty/conf.html +include /nix/store/rjp2p9ndz1j74k074nnic900987pfwqv-kitty-themes-0-unstable-2024-08-14/share/kitty-themes/themes/Catppuccin-Mocha.conf + +# Shell integration is sourced and configured manually +shell_integration no-rc + + + +map alt+1 goto_tab 1 +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 + + diff --git a/config/kitty/nixosConfig b/config/kitty/nixosConfig new file mode 100644 index 0000000..039c3cf --- /dev/null +++ b/config/kitty/nixosConfig @@ -0,0 +1,6 @@ +cd ~/dev/nixosConfig +new_tab nvim +launch bash -c nvim -c"lua require('persistence').load()" . +new_tab terminal +cd ~/dev/nixosConfig +launch bash diff --git a/config/kitty/sTodo b/config/kitty/sTodo new file mode 100644 index 0000000..d36846a --- /dev/null +++ b/config/kitty/sTodo @@ -0,0 +1,6 @@ +new_tab nvim +cd ~/dev/sTodo +launch bash -c "nix-shell --impure --command \"nvim -c \\\"lua require('persistence').load()\\\" .\"" +new_tab terminal +cd ~/dev/sTodo +launch bash -c nix-shell diff --git a/config/sway/config b/config/sway/config new file mode 100644 index 0000000..8bb4ff2 --- /dev/null +++ b/config/sway/config @@ -0,0 +1,111 @@ +include /nix/store/wikvvzqfk86y5rlx8bx0jlq59aa7l414-catppuccin-sway-0-unstable-2024-10-14/catppuccin-mocha + +font pango:monospace 10.000000 +floating_modifier Mod4 +default_border pixel 3 +default_floating_border normal 2 +hide_edge_borders smart +focus_wrapping no +focus_follows_mouse yes +focus_on_window_activation smart +mouse_warping output +workspace_layout default +workspace_auto_back_and_forth no +client.focused #f5a7de #11111b #cdd6f4 #f5e0dc #f5a7de +client.focused_inactive #6c7086 #181825 #cdd6f4 #f5e0dc #6c7086 +client.unfocused #6c7086 #181825 #cdd6f4 #bac2de #bac2de +client.urgent #ce052a #181825 #fab387 #6c7086 #ce052a +client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c +client.background #181825 +bindsym Mod4+1 workspace number 1 +bindsym Mod4+0 workspace number 10 +bindsym Mod4+2 workspace number 2 +bindsym Mod4+3 workspace number 3 +bindsym Mod4+4 workspace number 4 +bindsym Mod4+5 workspace number 5 +bindsym Mod4+6 workspace number 6 +bindsym Mod4+7 workspace number 7 +bindsym Mod4+8 workspace number 8 +bindsym Mod4+9 workspace number 9 +bindsym Mod4+Down focus down +bindsym Mod4+Left focus left +bindsym Mod4+Return exec /nix/store/6lmh9qmlb13c6ch9zd1pr5pdhc1gcplh-foot-1.22.3/bin/foot +bindsym Mod4+Right focus right +bindsym Mod4+Shift+0 move container to workspace number 10 +bindsym Mod4+Shift+1 move container to workspace number 1 +bindsym Mod4+Shift+2 move container to workspace number 2 +bindsym Mod4+Shift+3 move container to workspace number 3 +bindsym Mod4+Shift+4 move container to workspace number 4 +bindsym Mod4+Shift+5 move container to workspace number 5 +bindsym Mod4+Shift+6 move container to workspace number 6 +bindsym Mod4+Shift+7 move container to workspace number 7 +bindsym Mod4+Shift+8 move container to workspace number 8 +bindsym Mod4+Shift+9 move container to workspace number 9 +bindsym Mod4+Shift+Down move down +bindsym Mod4+Shift+Left move left +bindsym Mod4+Shift+Right move right +bindsym Mod4+Shift+Up move up +bindsym Mod4+Shift+c reload +bindsym Mod4+Shift+e exec swaymsg exit +bindsym Mod4+Shift+h move left +bindsym Mod4+Shift+j move down +bindsym Mod4+Shift+k move up +bindsym Mod4+Shift+l move right +bindsym Mod4+Shift+minus move scratchpad +bindsym Mod4+Shift+q kill +bindsym Mod4+Shift+space floating toggle +bindsym Mod4+Up focus up +bindsym Mod4+a focus parent +bindsym Mod4+b splith +bindsym Mod4+d exec /nix/store/l52hchbxk9w6i9hi513vspwh2mvyp37k-dmenu-5.3/bin/dmenu_path | /nix/store/l52hchbxk9w6i9hi513vspwh2mvyp37k-dmenu-5.3/bin/dmenu | /nix/store/c14zwgl8hf1wm0izij2i16xvk8ak70cy-findutils-4.10.0/bin/xargs swaymsg exec -- +bindsym Mod4+e layout toggle split +bindsym Mod4+f fullscreen toggle +bindsym Mod4+h focus left +bindsym Mod4+j focus down +bindsym Mod4+k focus up +bindsym Mod4+l focus right +bindsym Mod4+minus scratchpad show +bindsym Mod4+r mode resize +bindsym Mod4+s layout stacking +bindsym Mod4+space focus mode_toggle +bindsym Mod4+v splitv +bindsym Mod4+w layout tabbed +bindsym Mod4+y exec /nix/store/6lmh9qmlb13c6ch9zd1pr5pdhc1gcplh-foot-1.22.3/bin/foot /nix/store/866y2shya5rca4w3r2c8yfwa5g5zf252-yazi-25.5.31/bin/yazi + +input "type:keyboard" { + xkb_layout us,ch(fr) + xkb_options caps:escape,grp:win_space_toggle +} + +output "*" { + bg ~/.backgrounds/nixos-wallpaper-catppuccin-mocha.png fill +} + +mode "resize" { + bindsym Down resize grow height 10 px + bindsym Escape mode default + bindsym Left resize shrink width 10 px + bindsym Return mode default + bindsym Right resize grow width 10 px + bindsym Up resize shrink height 10 px + bindsym h resize shrink width 10 px + bindsym j resize grow height 10 px + bindsym k resize shrink height 10 px + bindsym l resize grow width 10 px +} + +bar { + font pango:monospace 8.000000 + position top + status_command /nix/store/mympf64s5g95vjx5mr2infhwi3jxdmzs-i3status-2.15/bin/i3status + swaybar_command /nix/store/0dqqgd2rqq5djcz45i0pv30lpbik79qn-sway-1.11/bin/swaybar + colors { + background #11111b + focused_workspace #f5a7de #f5a7de #585b70 + active_workspace #11111b #313244 #cdd6f4 + inactive_workspace #1e1e2e #313244 #cdd6f4 + urgent_workspace #ce052a #ce052a #585b70 + } +} + +exec "/nix/store/lww2khz04qsc8prjp8l0haldwz15yivi-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE NIXOS_OZONE_WL XCURSOR_THEME XCURSOR_SIZE; systemctl --user reset-failed && systemctl --user start sway-session.target && swaymsg -mt subscribe '[]' || true && systemctl --user stop sway-session.target" diff --git a/script.sh b/script.sh new file mode 100755 index 0000000..755c4a0 --- /dev/null +++ b/script.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +sources=("./config/" "./var/") +targets=("$HOME/.config/" "/var/") + +length=${#sources[@]} +for ((i = 0; i < length; i++)); do + + source=${sources[i]} + target=${targets[i]} + + for folder in $(ls $source) + do + if [ -e "$target$folder" ]; then + echo "The file '$target$folder' exists." + else + echo "ln -s $source$folder $target$folder" + fi + done +done diff --git a/var/bar b/var/bar new file mode 100644 index 0000000..e69de29 diff --git a/var/baz b/var/baz new file mode 100644 index 0000000..e69de29 diff --git a/var/foo b/var/foo new file mode 100644 index 0000000..e69de29