Skip to content

Commit

Permalink
Started working on the config again!
Browse files Browse the repository at this point in the history
  • Loading branch information
Guibi1 committed May 28, 2024
1 parent ce72703 commit bb3a317
Show file tree
Hide file tree
Showing 21 changed files with 583 additions and 2,222 deletions.
2 changes: 1 addition & 1 deletion dotfiles/eww/power-menu.yuck
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
:halign "center"
:valign "center"
(icon-button
:command "swaylock"
:command "hyprlock"
:icon "lock"
:tooltip "Verrouiller"
)
Expand Down
27 changes: 27 additions & 0 deletions dotfiles/fastfetch/config.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"display": { "separator": " -> " },
"modules": [
"break",
{ "type": "title", "key": " ", "keyColor": "cyan" },
{ "type": "custom", "format": "┌───────────────────────────────────────────────────┐" },
{ "type": "cpu", "key": " 󰧑", "keyColor": "cyan" },
{ "type": "gpu", "key": " 󰍛", "keyColor": "green" },
{ "type": "memory", "key": " ", "keyColor": "red" },
{ "type": "display", "key": " ", "keyColor": "magenta" },
{ "type": "custom", "format": "├───────────────────────────────────────────────────┤" },
{ "type": "os", "key": " ", "keyColor": "blue" },
{ "type": "wm", "key": " ", "keyColor": "cyan" },
{ "type": "shell", "key": " ", "keyColor": "green" },
{ "type": "terminal", "key": " ", "keyColor": "yellow" },
{ "type": "terminalfont", "key": " ", "keyColor": "white" },
{ "type": "theme", "key": " ", "keyColor": "magenta" },
{ "type": "icons", "key": " 󰉦", "keyColor": "red" },
// { "type": "packages", "key": " 󰏖", "keyColor": "green" },
// { "type": "uptime", "key": " ", "keyColor": "yellow" },
{ "type": "custom", "format": "└───────────────────────────────────────────────────┘" }

// { "type": "localip", "key": " " }
// { "type": "battery", "key": " " }
]
}
16 changes: 16 additions & 0 deletions dotfiles/fastfetch/greeting.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"display": { "separator": " -> " },
"logo": null,
"modules": [
"break",
{ "type": "title", "key": " ", "keyColor": "cyan" },
{ "type": "custom", "format": "┌───────────────────────────────────────────────────┐" },
{ "type": "os", "key": " ", "keyColor": "blue" },
{ "type": "shell", "key": " ", "keyColor": "green" },
{ "type": "memory", "key": " ", "keyColor": "red" },
{ "type": "localip", "key": " 󱦂" },
{ "type": "battery", "key": " ", "keyColor": "green" },
{ "type": "custom", "format": "└───────────────────────────────────────────────────┘" }
]
}
11 changes: 8 additions & 3 deletions dotfiles/hypr/autostart.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# #################################### #
# Autostart desktop apps and processes #
# #################################### #

# Autostart desktop apps
exec-once = dex --autostart
exec-once = discord --start-minimized
Expand All @@ -7,10 +11,11 @@ exec-once = wl-clip-persist --clipboard both

# UI
exec-once = eww daemon
exec-once = eww open bar
# exec-once = eww open bar
exec-once = waybar
exec-once = swww init
exec-once = swww img /home/guibi/Images/wallpaper.png

# Lock
exec-once = swaylock
exec-once = swayidle -w
exec-once = hyprlock
exec-once = hypridle
7 changes: 5 additions & 2 deletions dotfiles/hypr/env.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
###########################################
# ####################################### #
# The environment variables of the system #
###########################################
# ####################################### #

env = XDG_DOCUMENTS_DIR,$HOME/Documents
env = XDG_DOWNLOAD_DIR,$HOME/Téléchargements
Expand All @@ -14,3 +14,6 @@ env = NPM_CONFIG_USERCONFIG,$XDG_CONFIG_HOME/npm/npmrc
env = PYTHONSTARTUP,$XDG_CONFIG_HOME/python/pythonrc
env = CARGO_HOME,$XDG_DATA_HOME/cargo
env = RUSTUP_HOME,$XDG_DATA_HOME/rustup

env = HYPRCURSOR_THEME,Bibata-Modern-Classic
env = HYPRCURSOR_SIZE,20
39 changes: 39 additions & 0 deletions dotfiles/hypr/hypridle.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# #################### #
# Idle triggers config #
# #################### #


general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}

listener {
timeout = 60 # 1min.
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume = brightnessctl -r # monitor backlight restore.
}

# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight.
listener {
timeout = 150 # 2.5min.
on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
}

listener {
timeout = 120 # 2min
on-timeout = loginctl lock-session # lock screen when timeout has passed
}

listener {
timeout = 150 # 2.5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
}

listener {
timeout = 300 # 5min
on-timeout = systemctl suspend # suspend pc
}
11 changes: 6 additions & 5 deletions dotfiles/hypr/hyprland.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
############################################################################################
# ######################################################################################## #
# ___ _ _ _ _ _ _ _ _ __ _ #
# / __|_ _(_) |__(_| )___ | || |_ _ _ __ _ _| |__ _ _ _ __| | __ ___ _ _ / _(_)__ _ #
# | (_ | || | | '_ \ |/(_-< | __ | || | '_ \ '_| / _` | ' \/ _` | / _/ _ \ ' \| _| / _` | #
# \___|\_,_|_|_.__/_| /__/ |_||_|\_, | .__/_| |_\__,_|_||_\__,_| \__\___/_||_|_| |_\__, | #
# |__/|_| |___/ #
############################################################################################
# ######################################################################################## #

monitor=,preferred,auto,1
monitor=,preferred,auto,1.25
# monitor=DP-1,preferred,auto,1,mirror,eDP-1

# Source
Expand All @@ -25,8 +25,9 @@ input {
}
}

device:corsair-corsair-m65-rgb-elite-gaming-mouse {
sensitivity= -1.0
device {
name = corsair-corsair-m65-rgb-elite-gaming-mouse
sensitivity = -1.0
}

general {
Expand Down
65 changes: 65 additions & 0 deletions dotfiles/hypr/hyprlock.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# ################## #
# Lock screen config #
# ################## #


background {
monitor =
path = ~/Images/lock.png

blur_passes = 2
blur_size = 4
noise = 0.02
contrast = 0.9
brightness = 0.8
vibrancy = 0.2
}

input-field {
monitor =

size = 320, 60
outline_thickness = 4

dots_size = 0.35
dots_spacing = 0.3
dots_center = true

font_color = rgb(200, 200, 200)
inner_color = rgb(0, 0, 0)
outer_color = rgb(34, 14, 28)
check_color = rgb(66, 20, 32)

fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i> # can be set to empty
fail_transition = 150
fade_timeout = 2000 # Milliseconds before fade_on_empty is triggered.

position = 0, -200
halign = center
valign = center
}

label {
monitor =
text = $TIME
color = rgba(200, 200, 200, 1.0)
font_size = 80
font_family = Cascadia Code PL Extra Bold

position = 0, 100
halign = center
valign = center
}

label {
monitor =
text = Welcome back, $USER
color = rgba(200, 200, 200, 1.0)
font_size = 40
font_family = Cascadia Code PL Bold

position = 0, -20
halign = center
valign = center
}
30 changes: 17 additions & 13 deletions dotfiles/hypr/keybinds.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
################################
# ############################ #
# All the keybinds of Hyprland #
################################
# ############################ #

$mainMod = SUPER

Expand All @@ -14,14 +14,15 @@ bind = $mainMod, P, pseudo, # dwindle
# Open programs
bind = $mainMod, Return, exec, kitty
bind = $mainMod, E, exec, nautilus
bind = $mainMod, R, exec, pkill wofi || wofi --show drun
bindr = $mainMod, SUPER_L, exec, pkill rofi || rofi -show drun
bind = $mainMod, D, exec, discord
bind = $mainMod, F, exec, firefox
bind = $mainMod, C, exec, betterbird
bind = $mainMod, V, exec, code


# Open utilities
bind = $mainMod, L, exec, swaylock
bind = $mainMod, L, exec, hyprlock
bind = $mainMod, Q, exec, eww close power-menu || eww open power-menu
bind = , PRINT, exec, grimblast --freeze copy screen
bind = $mainMod SHIFT, S, exec, grimblast --freeze copy area
Expand All @@ -34,16 +35,19 @@ bindle=, XF86MonBrightnessUp, exec, brightnessctl set 5%+
bindle=, XF86MonBrightnessDown, exec, brightnessctl set 5%- -n

# Alt Tab
bind = ALT,Tab,cyclenext,
bind = ALT SHIFT,Tab,cyclenext,prev
bind = ALT,Tab,bringactivetotop,
bind = ALT SHIFT,Tab,bringactivetotop,
# bind = ALT,Tab,cyclenext,
# bind = ALT SHIFT,Tab,cyclenext,prev
# bind = ALT,Tab,bringactivetotop,
# bind = ALT SHIFT,Tab,bringactivetotop,

bind = ALT, Tab, exec, pidof rofi || rofi -show window -kb-accept-entry "Return,KP_Enter,Alt_L"
# bindtr = ALT, ALT_L, exec, pkill rofi

# Mod Tab
bind = $mainMod,Tab,cyclenext,
bind = $mainMod SHIFT,Tab,cyclenext,prev
bind = $mainMod,Tab,bringactivetotop,
bind = $mainMod SHIFT,Tab,bringactivetotop,
# bind = $mainMod,Tab,cyclenext,
# bind = $mainMod SHIFT,Tab,cyclenext,prev
# bind = $mainMod,Tab,bringactivetotop,
# bind = $mainMod SHIFT,Tab,bringactivetotop,

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
Expand Down Expand Up @@ -77,7 +81,7 @@ bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
# bind = $mainMod SHIFT, S, movetoworkspace, special:magic
bind = $mainMod ALT, S, movetoworkspace, special:magic

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
Expand Down
52 changes: 0 additions & 52 deletions dotfiles/neofetch.conf

This file was deleted.

4 changes: 0 additions & 4 deletions dotfiles/swayidle/config

This file was deleted.

23 changes: 18 additions & 5 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ in
# Packages to install
home.packages = with pkgs; [
grc # Fish plugin
neofetch
fastfetch

# Dev env
bun nodejs_20
cargo
gnumake gcc
bun nodejs_20 # TypeScript
rustc cargo # Rust
nixd # Nix
python3 ruff # Python
gnumake gcc # C
];


Expand All @@ -29,7 +31,9 @@ in
fish = {
enable = true;
interactiveShellInit = ''
set fish_greeting # Disable greeting
function fish_greeting
fastfetch -c ~/.config/fastfetch/greeting.jsonc
end
'';
plugins = [
{ name = "grc"; src = pkgs.fishPlugins.grc.src; }
Expand Down Expand Up @@ -66,6 +70,15 @@ in
home-manager.enable = true;
};

xdg = {
enable = true;

# .config symlinks
configFile = {
fastfetch.source = ./dotfiles/fastfetch;
};
};


# Env variables
home.sessionVariables = {
Expand Down
Loading

0 comments on commit bb3a317

Please sign in to comment.