54
config/.nanorc
Normal file
54
config/.nanorc
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
# --- Activation des numéros de ligne (Repérage rapide) ---
|
||||||
|
set linenumbers
|
||||||
|
|
||||||
|
# --- Tabulation à 4 espaces (Standard Epitech/42) ---
|
||||||
|
set tabsize 4
|
||||||
|
set tabstospaces
|
||||||
|
|
||||||
|
# --- Coloration Syntaxique C Optimisée pour la lisibilité ---
|
||||||
|
syntax "c" "\.(c|h)$"
|
||||||
|
|
||||||
|
# 1. LES COMMENTAIRES : Gris sombre ou discret
|
||||||
|
# On veut qu'ils ne polluent pas la lecture du code actif
|
||||||
|
color brightblack "//.*"
|
||||||
|
color brightblack start="/\*" end="\*/"
|
||||||
|
|
||||||
|
# 2. LES TYPES : Bleu Cyan très vif
|
||||||
|
# Pour repérer immédiatement "int", "char", "void"
|
||||||
|
color cyan "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
|
||||||
|
|
||||||
|
# 3. LES POINTEURS ET ADRESSES : Rouge vif ou Magenta (LE PLUS IMPORTANT)
|
||||||
|
# C'est votre point faible visuel. On le met en alerte rouge.
|
||||||
|
# Cela va colorer tous les '*' et '&'
|
||||||
|
color brightred "[\*&]"
|
||||||
|
|
||||||
|
# 4. LES NOMBRES : Vert
|
||||||
|
# Pour distinguer "0" de "NULL" ou d'une lettre
|
||||||
|
color green "\<[0-9]+\>"
|
||||||
|
color green "\<0x[0-9a-fA-F]+\>"
|
||||||
|
|
||||||
|
# 5. LES STRING (Chaînes) : Jaune
|
||||||
|
# Pour bien voir où commence et finit le texte
|
||||||
|
color yellow ""(\\.|[^"])*""
|
||||||
|
color yellow "'(\\.|[^'])*'"
|
||||||
|
|
||||||
|
# 6. LES MOTS-CLÉS DE CONTRÔLE : Magenta ou Violet
|
||||||
|
# if, while, return... pour structurer le bloc visuel
|
||||||
|
color magenta "\<(for|if|while|do|else|case|default|switch)\>"
|
||||||
|
color magenta "\<(try|throw|catch|operator|new|delete)\>"
|
||||||
|
color magenta "\<(goto|continue|break|return)\>"
|
||||||
|
|
||||||
|
# 7. LES FONCTIONS : Blanc Brillant (ou autre couleur qui ressort)
|
||||||
|
# Pour voir les actions
|
||||||
|
color white "\<[a-z_][a-z0-9_]*\("
|
||||||
|
|
||||||
|
# 8. MACROS ET INCLUDES : Bleu
|
||||||
|
color blue "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
|
||||||
|
|
||||||
|
# 9. POINT-VIRGULE OUBLIÉ ? (Astuce visuelle)
|
||||||
|
# On peut colorer le ; en blanc brillant pour vérifier qu'ils sont là
|
||||||
|
color brightwhite ";"
|
||||||
|
|
||||||
|
# 10. Erreurs courantes (Espaces en fin de ligne - INTERDIT)
|
||||||
|
# Ça s'affichera en fond rouge, impossible de le rater
|
||||||
|
color ,red "[[:space:]]+$"
|
||||||
@@ -1,280 +0,0 @@
|
|||||||
################
|
|
||||||
### MONITORS ###
|
|
||||||
################
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
|
||||||
monitor=,preferred,auto,1
|
|
||||||
|
|
||||||
|
|
||||||
###################
|
|
||||||
### MY PROGRAMS ###
|
|
||||||
###################
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
|
||||||
|
|
||||||
# Set programs that you use
|
|
||||||
$terminal = kitty
|
|
||||||
$fileManager = dolphin
|
|
||||||
$menu = wofi --show drun
|
|
||||||
$browser = firefox
|
|
||||||
|
|
||||||
#################
|
|
||||||
### AUTOSTART ###
|
|
||||||
#################
|
|
||||||
|
|
||||||
exec-once = nm-applet --indicator
|
|
||||||
exec-once = blueman-applet
|
|
||||||
exec-once = swaybg -i /home/ssfunerals/wp.png -m fill
|
|
||||||
exec-once=~/.config/waybar/launch.sh
|
|
||||||
exec-once = mako
|
|
||||||
exec-once = kitty -e /home/ssfunerals/vpnactivation.sh
|
|
||||||
exec-once = kitty -e /home/ssfunerals/update.sh
|
|
||||||
#############################
|
|
||||||
### ENVIRONMENT VARIABLES ###
|
|
||||||
#############################
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Environment-variables/
|
|
||||||
|
|
||||||
env = XCURSOR_SIZE,24
|
|
||||||
env = HYPRCURSOR_SIZE,24
|
|
||||||
env = QT_QPA_PLATFORMTHEME,qt5ct
|
|
||||||
env = QT_QPA_PLATFORM,wayland
|
|
||||||
env = WAYLAND_DISPLAY, wayland-0
|
|
||||||
env = XDG_SESSION_TYPE, wayland
|
|
||||||
|
|
||||||
#####################
|
|
||||||
### LOOK AND FEEL ###
|
|
||||||
#####################
|
|
||||||
|
|
||||||
# Refer to https://wiki.hyprland.org/Configuring/Variables/
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#general
|
|
||||||
general {
|
|
||||||
gaps_in = 5
|
|
||||||
gaps_out = 20
|
|
||||||
|
|
||||||
border_size = 2
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
|
||||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
|
||||||
col.inactive_border = rgba(595959aa)
|
|
||||||
|
|
||||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
|
||||||
resize_on_border = false
|
|
||||||
|
|
||||||
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
|
||||||
allow_tearing = false
|
|
||||||
|
|
||||||
layout = dwindle
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
|
||||||
decoration {
|
|
||||||
rounding = 10
|
|
||||||
|
|
||||||
# Change transparency of focused and unfocused windows
|
|
||||||
active_opacity = 1
|
|
||||||
inactive_opacity = 0.7
|
|
||||||
|
|
||||||
shadow {
|
|
||||||
enabled = true
|
|
||||||
range = 4
|
|
||||||
render_power = 3
|
|
||||||
color = rgba(1a1a1aee)
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
|
||||||
blur {
|
|
||||||
enabled = true
|
|
||||||
size = 3
|
|
||||||
passes = 1
|
|
||||||
|
|
||||||
vibrancy = 0.1696
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
|
||||||
animations {
|
|
||||||
enabled = yes, please :)
|
|
||||||
|
|
||||||
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
|
||||||
|
|
||||||
bezier = easeOutQuint,0.23,1,0.32,1
|
|
||||||
bezier = easeInOutCubic,0.65,0.05,0.36,1
|
|
||||||
bezier = linear,0,0,1,1
|
|
||||||
bezier = almostLinear,0.5,0.5,0.75,1.0
|
|
||||||
bezier = quick,0.15,0,0.1,1
|
|
||||||
|
|
||||||
animation = global, 1, 10, default
|
|
||||||
animation = border, 1, 5.39, easeOutQuint
|
|
||||||
animation = windows, 1, 4.79, easeOutQuint
|
|
||||||
animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
|
|
||||||
animation = windowsOut, 1, 1.49, linear, popin 87%
|
|
||||||
animation = fadeIn, 1, 1.73, almostLinear
|
|
||||||
animation = fadeOut, 1, 1.46, almostLinear
|
|
||||||
animation = fade, 1, 3.03, quick
|
|
||||||
animation = layers, 1, 3.81, easeOutQuint
|
|
||||||
animation = layersIn, 1, 4, easeOutQuint, fade
|
|
||||||
animation = layersOut, 1, 1.5, linear, fade
|
|
||||||
animation = fadeLayersIn, 1, 1.79, almostLinear
|
|
||||||
animation = fadeLayersOut, 1, 1.39, almostLinear
|
|
||||||
animation = workspaces, 1, 1, almostLinear, slide
|
|
||||||
animation = workspacesIn, 1, 2, almostLinear, slide
|
|
||||||
animation = workspacesOut, 1, 2, almostLinear, slide
|
|
||||||
}
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
|
||||||
dwindle {
|
|
||||||
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = true # You probably want this
|
|
||||||
}
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
||||||
master {
|
|
||||||
new_status = master
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
|
||||||
misc {
|
|
||||||
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
|
||||||
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#############
|
|
||||||
### INPUT ###
|
|
||||||
#############
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#input
|
|
||||||
input {
|
|
||||||
kb_layout = fr
|
|
||||||
kb_variant =
|
|
||||||
kb_model =
|
|
||||||
kb_options =
|
|
||||||
kb_rules =
|
|
||||||
|
|
||||||
follow_mouse = 1
|
|
||||||
|
|
||||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
|
||||||
|
|
||||||
touchpad {
|
|
||||||
natural_scroll = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
|
||||||
gestures {
|
|
||||||
workspace_swipe = false
|
|
||||||
}
|
|
||||||
|
|
||||||
# Example per-device config
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
|
||||||
device {
|
|
||||||
name = epic-mouse-v1
|
|
||||||
sensitivity = -0.5
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
###################
|
|
||||||
### KEYBINDINGS ###
|
|
||||||
###################
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
|
||||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
|
||||||
bind = $mainMod, T, exec, $terminal
|
|
||||||
bind = $mainMod, X, killactive,
|
|
||||||
bind = $mainMod, F, exec, $browser
|
|
||||||
bind = $mainMod, M, exit,
|
|
||||||
bind = $mainMod, E, exec, $fileManager
|
|
||||||
bind = $mainMod, V, togglefloating,
|
|
||||||
bind = $mainMod, Space, exec, $menu
|
|
||||||
bind = $mainMod, P, pseudo, # dwindle
|
|
||||||
bind = $mainMod, J, togglesplit, # dwindle
|
|
||||||
bind = $mainMod, L, exec, hyprlock
|
|
||||||
bind = $mainMod, C, exec, /usr/bin/code --ozone-platform=wayland
|
|
||||||
bind = $mainMod, N, exec, spotify-launcher
|
|
||||||
bind = $mainMod, A, exec, hyprshot -m region
|
|
||||||
bind = $mainMod, U, exec, kitty -e /home/ssfunerals/update.sh
|
|
||||||
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
|
||||||
bind = $mainMod, left, movefocus, l
|
|
||||||
bind = $mainMod, right, movefocus, r
|
|
||||||
bind = $mainMod, up, movefocus, u
|
|
||||||
bind = $mainMod, down, movefocus, d
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
bind = $mainMod, code:10, workspace, 1
|
|
||||||
bind = $mainMod, code:11, workspace, 2
|
|
||||||
bind = $mainMod, code:12, workspace, 3
|
|
||||||
bind = $mainMod, code:13, workspace, 4
|
|
||||||
bind = $mainMod, code:14, workspace, 5
|
|
||||||
bind = $mainMod, 6, workspace, 6
|
|
||||||
bind = $mainMod, 7, workspace, 7
|
|
||||||
bind = $mainMod, 8, workspace, 8
|
|
||||||
bind = $mainMod, 9, workspace, 9
|
|
||||||
bind = $mainMod, 0, workspace, 10
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
bind = $mainMod SHIFT, code:10, movetoworkspace, 1
|
|
||||||
bind = $mainMod SHIFT, code:11, movetoworkspace, 2
|
|
||||||
bind = $mainMod SHIFT, code:12, movetoworkspace, 3
|
|
||||||
bind = $mainMod SHIFT, code:13, movetoworkspace, 4
|
|
||||||
bind = $mainMod SHIFT, code:14, movetoworkspace, 5
|
|
||||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
|
||||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
|
||||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
|
||||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
|
||||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
|
||||||
|
|
||||||
|
|
||||||
# Custom
|
|
||||||
bind = $mainMod, code:48, exec, kitty -e /home/ssfunerals/vpnactivation.sh
|
|
||||||
|
|
||||||
|
|
||||||
# Example special workspace (scratchpad)
|
|
||||||
bind = $mainMod, S, togglespecialworkspace, magic
|
|
||||||
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
bind = $mainMod, code:112, workspace, e+1
|
|
||||||
bind = $mainMod, code:117, workspace, e-1
|
|
||||||
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
bindm = $mainMod, mouse:272, movewindow
|
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
|
||||||
|
|
||||||
# Laptop multimedia keys for volume and LCD brightness
|
|
||||||
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
|
||||||
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
|
||||||
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
|
||||||
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
|
||||||
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
|
|
||||||
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
|
|
||||||
|
|
||||||
# Requires playerctl
|
|
||||||
bindl = , XF86AudioNext, exec, playerctl next
|
|
||||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
|
||||||
|
|
||||||
##############################
|
|
||||||
### WINDOWS AND WORKSPACES ###
|
|
||||||
##############################
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
|
||||||
|
|
||||||
# Example windowrule v1
|
|
||||||
# windowrule = float, ^(kitty)$
|
|
||||||
windowrule = tile, ^(kitty)$
|
|
||||||
# Example windowrule v2
|
|
||||||
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
|
||||||
|
|
||||||
# Ignore maximize requests from apps. You'll probably like this.
|
|
||||||
windowrulev2 = suppressevent maximize, class:.*
|
|
||||||
|
|
||||||
# Fix some dragging issues with XWayland
|
|
||||||
windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
|
||||||
@@ -1,297 +0,0 @@
|
|||||||
|
|
||||||
# #######################################################################################
|
|
||||||
# AUTOGENERATED HYPRLAND CONFIG.
|
|
||||||
# PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hyprland.conf AND EDIT IT,
|
|
||||||
# OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
|
|
||||||
# #######################################################################################
|
|
||||||
|
|
||||||
autogenerated = 1 # remove this line to remove the warning
|
|
||||||
|
|
||||||
# This is an example Hyprland config file.
|
|
||||||
# Refer to the wiki for more information.
|
|
||||||
# https://wiki.hyprland.org/Configuring/
|
|
||||||
|
|
||||||
# Please note not all available settings / options are set here.
|
|
||||||
# For a full list, see the wiki
|
|
||||||
|
|
||||||
# You can split this configuration into multiple files
|
|
||||||
# Create your files separately and then link them to this file like this:
|
|
||||||
# source = ~/.config/hypr/myColors.conf
|
|
||||||
|
|
||||||
|
|
||||||
################
|
|
||||||
### MONITORS ###
|
|
||||||
################
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
|
||||||
monitor=,preferred,auto,auto
|
|
||||||
|
|
||||||
|
|
||||||
###################
|
|
||||||
### MY PROGRAMS ###
|
|
||||||
###################
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
|
||||||
|
|
||||||
# Set programs that you use
|
|
||||||
$terminal = kitty
|
|
||||||
$fileManager = dolphin
|
|
||||||
$menu = wofi --show drun
|
|
||||||
|
|
||||||
|
|
||||||
#################
|
|
||||||
### AUTOSTART ###
|
|
||||||
#################
|
|
||||||
|
|
||||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
|
||||||
# Or execute your favorite apps at launch like this:
|
|
||||||
|
|
||||||
# exec-once = $terminal
|
|
||||||
# exec-once = nm-applet &
|
|
||||||
# exec-once = waybar & hyprpaper & firefox
|
|
||||||
|
|
||||||
|
|
||||||
#############################
|
|
||||||
### ENVIRONMENT VARIABLES ###
|
|
||||||
#############################
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Environment-variables/
|
|
||||||
|
|
||||||
env = XCURSOR_SIZE,24
|
|
||||||
env = HYPRCURSOR_SIZE,24
|
|
||||||
|
|
||||||
|
|
||||||
#####################
|
|
||||||
### LOOK AND FEEL ###
|
|
||||||
#####################
|
|
||||||
|
|
||||||
# Refer to https://wiki.hyprland.org/Configuring/Variables/
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#general
|
|
||||||
general {
|
|
||||||
gaps_in = 5
|
|
||||||
gaps_out = 20
|
|
||||||
|
|
||||||
border_size = 2
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
|
||||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
|
||||||
col.inactive_border = rgba(595959aa)
|
|
||||||
|
|
||||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
|
||||||
resize_on_border = false
|
|
||||||
|
|
||||||
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
|
||||||
allow_tearing = false
|
|
||||||
|
|
||||||
layout = dwindle
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
|
||||||
decoration {
|
|
||||||
rounding = 10
|
|
||||||
|
|
||||||
# Change transparency of focused and unfocused windows
|
|
||||||
active_opacity = 1.0
|
|
||||||
inactive_opacity = 1.0
|
|
||||||
|
|
||||||
shadow {
|
|
||||||
enabled = true
|
|
||||||
range = 4
|
|
||||||
render_power = 3
|
|
||||||
color = rgba(1a1a1aee)
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#blur
|
|
||||||
blur {
|
|
||||||
enabled = true
|
|
||||||
size = 3
|
|
||||||
passes = 1
|
|
||||||
|
|
||||||
vibrancy = 0.1696
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
|
||||||
animations {
|
|
||||||
enabled = yes, please :)
|
|
||||||
|
|
||||||
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
|
||||||
|
|
||||||
bezier = easeOutQuint,0.23,1,0.32,1
|
|
||||||
bezier = easeInOutCubic,0.65,0.05,0.36,1
|
|
||||||
bezier = linear,0,0,1,1
|
|
||||||
bezier = almostLinear,0.5,0.5,0.75,1.0
|
|
||||||
bezier = quick,0.15,0,0.1,1
|
|
||||||
|
|
||||||
animation = global, 1, 10, default
|
|
||||||
animation = border, 1, 5.39, easeOutQuint
|
|
||||||
animation = windows, 1, 4.79, easeOutQuint
|
|
||||||
animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
|
|
||||||
animation = windowsOut, 1, 1.49, linear, popin 87%
|
|
||||||
animation = fadeIn, 1, 1.73, almostLinear
|
|
||||||
animation = fadeOut, 1, 1.46, almostLinear
|
|
||||||
animation = fade, 1, 3.03, quick
|
|
||||||
animation = layers, 1, 3.81, easeOutQuint
|
|
||||||
animation = layersIn, 1, 4, easeOutQuint, fade
|
|
||||||
animation = layersOut, 1, 1.5, linear, fade
|
|
||||||
animation = fadeLayersIn, 1, 1.79, almostLinear
|
|
||||||
animation = fadeLayersOut, 1, 1.39, almostLinear
|
|
||||||
animation = workspaces, 1, 1.94, almostLinear, fade
|
|
||||||
animation = workspacesIn, 1, 1.21, almostLinear, fade
|
|
||||||
animation = workspacesOut, 1, 1.94, almostLinear, fade
|
|
||||||
}
|
|
||||||
|
|
||||||
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
|
|
||||||
# "Smart gaps" / "No gaps when only"
|
|
||||||
# uncomment all if you wish to use that.
|
|
||||||
# workspace = w[tv1], gapsout:0, gapsin:0
|
|
||||||
# workspace = f[1], gapsout:0, gapsin:0
|
|
||||||
# windowrulev2 = bordersize 0, floating:0, onworkspace:w[tv1]
|
|
||||||
# windowrulev2 = rounding 0, floating:0, onworkspace:w[tv1]
|
|
||||||
# windowrulev2 = bordersize 0, floating:0, onworkspace:f[1]
|
|
||||||
# windowrulev2 = rounding 0, floating:0, onworkspace:f[1]
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
|
||||||
dwindle {
|
|
||||||
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
||||||
preserve_split = true # You probably want this
|
|
||||||
}
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
||||||
master {
|
|
||||||
new_status = master
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
|
||||||
misc {
|
|
||||||
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
|
||||||
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#############
|
|
||||||
### INPUT ###
|
|
||||||
#############
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#input
|
|
||||||
input {
|
|
||||||
kb_layout = fr
|
|
||||||
kb_variant =
|
|
||||||
kb_model =
|
|
||||||
kb_options =
|
|
||||||
kb_rules =
|
|
||||||
|
|
||||||
follow_mouse = 1
|
|
||||||
|
|
||||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
|
||||||
|
|
||||||
touchpad {
|
|
||||||
natural_scroll = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
|
||||||
gestures {
|
|
||||||
workspace_swipe = false
|
|
||||||
}
|
|
||||||
|
|
||||||
# Example per-device config
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
|
||||||
device {
|
|
||||||
name = epic-mouse-v1
|
|
||||||
sensitivity = -0.5
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
###################
|
|
||||||
### KEYBINDINGS ###
|
|
||||||
###################
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
|
||||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
|
||||||
|
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
|
||||||
bind = $mainMod, Q, exec, $terminal
|
|
||||||
bind = $mainMod, C, killactive,
|
|
||||||
bind = $mainMod, M, exit,
|
|
||||||
bind = $mainMod, E, exec, $fileManager
|
|
||||||
bind = $mainMod, V, togglefloating,
|
|
||||||
bind = $mainMod, R, exec, $menu
|
|
||||||
bind = $mainMod, P, pseudo, # dwindle
|
|
||||||
bind = $mainMod, J, togglesplit, # dwindle
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
|
||||||
bind = $mainMod, left, movefocus, l
|
|
||||||
bind = $mainMod, right, movefocus, r
|
|
||||||
bind = $mainMod, up, movefocus, u
|
|
||||||
bind = $mainMod, down, movefocus, d
|
|
||||||
|
|
||||||
# Switch workspaces with mainMod + [0-9]
|
|
||||||
bind = $mainMod, 1, workspace, 1
|
|
||||||
bind = $mainMod, 2, workspace, 2
|
|
||||||
bind = $mainMod, 3, workspace, 3
|
|
||||||
bind = $mainMod, 4, workspace, 4
|
|
||||||
bind = $mainMod, 5, workspace, 5
|
|
||||||
bind = $mainMod, 6, workspace, 6
|
|
||||||
bind = $mainMod, 7, workspace, 7
|
|
||||||
bind = $mainMod, 8, workspace, 8
|
|
||||||
bind = $mainMod, 9, workspace, 9
|
|
||||||
bind = $mainMod, 0, workspace, 10
|
|
||||||
|
|
||||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
||||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
|
||||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
|
||||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
|
||||||
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
|
||||||
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
|
||||||
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
|
||||||
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
|
||||||
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
|
||||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
|
||||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
|
||||||
|
|
||||||
# Example special workspace (scratchpad)
|
|
||||||
bind = $mainMod, S, togglespecialworkspace, magic
|
|
||||||
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
|
||||||
|
|
||||||
# Scroll through existing workspaces with mainMod + scroll
|
|
||||||
bind = $mainMod, mouse_down, workspace, e+1
|
|
||||||
bind = $mainMod, mouse_up, workspace, e-1
|
|
||||||
|
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
||||||
bindm = $mainMod, mouse:272, movewindow
|
|
||||||
bindm = $mainMod, mouse:273, resizewindow
|
|
||||||
|
|
||||||
# Laptop multimedia keys for volume and LCD brightness
|
|
||||||
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
|
||||||
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
|
||||||
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
|
||||||
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
|
||||||
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
|
|
||||||
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
|
|
||||||
|
|
||||||
# Requires playerctl
|
|
||||||
bindl = , XF86AudioNext, exec, playerctl next
|
|
||||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
|
||||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
|
||||||
|
|
||||||
##############################
|
|
||||||
### WINDOWS AND WORKSPACES ###
|
|
||||||
##############################
|
|
||||||
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
|
||||||
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
|
||||||
|
|
||||||
# Example windowrule v1
|
|
||||||
# windowrule = float, ^(kitty)$
|
|
||||||
|
|
||||||
# Example windowrule v2
|
|
||||||
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
|
|
||||||
|
|
||||||
# Ignore maximize requests from apps. You'll probably like this.
|
|
||||||
windowrulev2 = suppressevent maximize, class:.*
|
|
||||||
|
|
||||||
# Fix some dragging issues with XWayland
|
|
||||||
windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
|
||||||
@@ -1,140 +0,0 @@
|
|||||||
source = /home/justin/.cache/wal/colors-hyprland.conf
|
|
||||||
|
|
||||||
# BACKGROUND
|
|
||||||
background {
|
|
||||||
monitor =
|
|
||||||
path = screenshot
|
|
||||||
# path = /home/justin/Pictures/wal.png
|
|
||||||
#color = $background
|
|
||||||
blur_passes = 1
|
|
||||||
contrast = 1
|
|
||||||
brightness = 0.5
|
|
||||||
vibrancy = 0.2
|
|
||||||
vibrancy_darkness = 0.2
|
|
||||||
}
|
|
||||||
|
|
||||||
# GENERAL
|
|
||||||
general {
|
|
||||||
no_fade_in = true
|
|
||||||
no_fade_out = true
|
|
||||||
hide_cursor = false
|
|
||||||
grace = 0
|
|
||||||
disable_loading_bar = true
|
|
||||||
}
|
|
||||||
|
|
||||||
# INPUT FIELD
|
|
||||||
input-field {
|
|
||||||
monitor =
|
|
||||||
size = 250, 60
|
|
||||||
outline_thickness = 2
|
|
||||||
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
|
|
||||||
dots_spacing = 0.35 # Scale of dots' absolute size, 0.0 - 1.0
|
|
||||||
dots_center = true
|
|
||||||
outer_color = rgba(0, 0, 0, 0)
|
|
||||||
inner_color = rgba(110, 110, 110, 0.2)
|
|
||||||
font_color = $foreground
|
|
||||||
fade_on_empty = false
|
|
||||||
rounding = -1
|
|
||||||
check_color = rgb(204, 136, 34)
|
|
||||||
placeholder_text = <i><span foreground="##cdd6f4">Input Password...</span></i>
|
|
||||||
hide_input = false
|
|
||||||
position = 0, -200
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# DATE
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$(date +"%A, %B %d")"
|
|
||||||
color = rgba(242, 243, 244, 0.75)
|
|
||||||
font_size = 22
|
|
||||||
font_family = JetBrains Mono
|
|
||||||
position = 0, 300
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# TIME
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$(date +"%-I:%M")"
|
|
||||||
color = rgba(242, 243, 244, 0.75)
|
|
||||||
font_size = 95
|
|
||||||
font_family = JetBrains Mono Extrabold
|
|
||||||
position = 0, 200
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Profile Picture
|
|
||||||
image {
|
|
||||||
monitor =
|
|
||||||
path = /home/justin/Pictures/profile_pictures/justin_square.png
|
|
||||||
size = 100
|
|
||||||
border_size = 2
|
|
||||||
border_color = $foreground
|
|
||||||
position = 0, -100
|
|
||||||
halign = center
|
|
||||||
valign = center
|
|
||||||
}
|
|
||||||
|
|
||||||
# Desktop Environment
|
|
||||||
image {
|
|
||||||
monitor =
|
|
||||||
path = /home/justin/Pictures/profile_pictures/hypr.png
|
|
||||||
size = 75
|
|
||||||
border_size = 2
|
|
||||||
border_color = $foreground
|
|
||||||
position = -50, 50
|
|
||||||
halign = right
|
|
||||||
valign = bottom
|
|
||||||
}
|
|
||||||
|
|
||||||
# CURRENT SONG
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$(/home/justin/Documents/Scripts/whatsong.sh)"
|
|
||||||
color = $foreground
|
|
||||||
#color = rgba(255, 255, 255, 0.6)
|
|
||||||
font_size = 18
|
|
||||||
font_family = Metropolis Light, Font Awesome 6 Free Solid
|
|
||||||
position = 0, 50
|
|
||||||
halign = center
|
|
||||||
valign = bottom
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$(/home/justin/Documents/Scripts/whoami.sh)"
|
|
||||||
color = $foreground
|
|
||||||
font_size = 14
|
|
||||||
font_family = JetBrains Mono
|
|
||||||
position = 0, -10
|
|
||||||
halign = center
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$(/home/justin/Documents/Scripts/battery.sh)"
|
|
||||||
color = $foreground
|
|
||||||
font_size = 24
|
|
||||||
font_family = JetBrains Mono
|
|
||||||
position = -90, -10
|
|
||||||
halign = right
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
|
|
||||||
label {
|
|
||||||
monitor =
|
|
||||||
text = cmd[update:1000] echo "$(/home/justin/Documents/Scripts/network-status.sh)"
|
|
||||||
color = $foreground
|
|
||||||
font_size = 24
|
|
||||||
font_family = JetBrains Mono
|
|
||||||
position = -20, -10
|
|
||||||
halign = right
|
|
||||||
valign = top
|
|
||||||
}
|
|
||||||
371
config/i3/config
Normal file
371
config/i3/config
Normal file
@@ -0,0 +1,371 @@
|
|||||||
|
# i3 config file (v4)
|
||||||
|
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
|
||||||
|
|
||||||
|
# set modifier
|
||||||
|
set $super Mod4
|
||||||
|
set $alt Mod1
|
||||||
|
|
||||||
|
################################
|
||||||
|
### Commonly Used Variables: ###
|
||||||
|
################################
|
||||||
|
# - Below defined are some of the very common variables that users like to customise
|
||||||
|
# - For Keybindings search: Commonly Used Keybindings in this document
|
||||||
|
# - Make sure that you give the absolute path to the binary / program / executable
|
||||||
|
# - You may specify any additional arguments required by the binary / executable
|
||||||
|
|
||||||
|
### Wallpaper: ###
|
||||||
|
# - You need to specify homescreen wallpaper using azote
|
||||||
|
|
||||||
|
set $lockScreenWallpaper /usr/share/wallpapers/garuda-wallpapers/Dr460nized\ Honeycomb.png
|
||||||
|
|
||||||
|
### Applications: ###
|
||||||
|
|
||||||
|
set $preferredTerminalEmulator /usr/bin/kitty
|
||||||
|
set $preferredBrowser /usr/bin/firefox
|
||||||
|
set $preferredFileManager /usr/bin/thunar
|
||||||
|
set $preferredMailClient /usr/bin/geary
|
||||||
|
set $preferredTextEditor /usr/bin/geany
|
||||||
|
set $preferredScreenCaptureTool /usr/bin/flameshot gui
|
||||||
|
|
||||||
|
###########################################
|
||||||
|
### Commonly Used Application Keybinds: ###
|
||||||
|
###########################################
|
||||||
|
|
||||||
|
bindsym $super+F1 exec $preferredBrowser;focus
|
||||||
|
bindsym $super+F2 exec $preferredMailClient;focus
|
||||||
|
bindsym $super+F3 exec $preferredFileManager;focus
|
||||||
|
bindsym $super+F4 exec $preferredTextEditor;focus
|
||||||
|
|
||||||
|
### Screen Capturing & Print Screen: ###
|
||||||
|
|
||||||
|
bindsym $super+F9 exec $preferredScreenCaptureTool
|
||||||
|
bindsym Print exec --no-startup-id $preferredScreenCaptureTool
|
||||||
|
|
||||||
|
### Start a Terminal Emulator: ###
|
||||||
|
# - You can change the preferredTerminalEmulator variable
|
||||||
|
# - Terminal can also be started using their individual keybindings
|
||||||
|
|
||||||
|
bindsym $super+Return exec $preferredTerminalEmulator
|
||||||
|
bindsym $super+t exec kitty
|
||||||
|
bindsym $super+SHIFT+i exec ~/.local/bin/shcts # open cheatsheet
|
||||||
|
|
||||||
|
# Use Mouse+$super to drag floating windows to their wanted position
|
||||||
|
floating_modifier $super
|
||||||
|
|
||||||
|
#autostart
|
||||||
|
exec --no-startup-id ~/.fehbg
|
||||||
|
exec --no-startup-id copyq
|
||||||
|
exec --no-startup-id dunst
|
||||||
|
exec --no-startup-id dex -a -s /etc/xdg/autostart/:~/.config/autostart/
|
||||||
|
exec --no-startup-id nm-applet
|
||||||
|
#exec --no-startup-id lxrandr
|
||||||
|
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||||
|
exec --no-startup-id xfce4-power-manager
|
||||||
|
exec_always --no-startup-id setcursor
|
||||||
|
exec --no-startup-id ~/.local/bin/shcts # comment stop autostart cheatsheet
|
||||||
|
#exec_always --no-startup-id ${HOME}/.config/polybar/launch.sh
|
||||||
|
exec_always --no-startup-id numlockx on
|
||||||
|
exec blueberry-tray
|
||||||
|
exec --no-startup-id java -Xmx1024m -jar "/opt/xdman/xdman.jar" -m
|
||||||
|
exec --no-startup-id ~/.local/bin/fastfetch-garuda
|
||||||
|
|
||||||
|
# hide/unhide i3status bar
|
||||||
|
bindsym $super+m bar mode toggle
|
||||||
|
|
||||||
|
# start dmenu (a program launcher)
|
||||||
|
bindsym $super+Shift+d exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'Noto Sans:size=20'"
|
||||||
|
|
||||||
|
# start rofi (a program launcher) change modus Ctrl + Tab
|
||||||
|
bindsym $super+d exec rofi -show run
|
||||||
|
|
||||||
|
# Garuda Linux install
|
||||||
|
bindsym $super+i exec sudo -E calamares
|
||||||
|
|
||||||
|
# Lock screen
|
||||||
|
bindsym $super+l exec bash /home/mathieu/.config/i3/lock.sh
|
||||||
|
|
||||||
|
# Screen brightness controls
|
||||||
|
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5%; exec notify-send 'brightness up 5%'
|
||||||
|
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%-; exec notify-send 'brightness down 5%'
|
||||||
|
|
||||||
|
# Use pactl to adjust volume in PulseAudio.
|
||||||
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
||||||
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
||||||
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||||
|
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||||
|
#change volume
|
||||||
|
#bindsym XF86AudioRaiseVolume exec pulseaudio-ctl up
|
||||||
|
#bindsym XF86AudioLowerVolume exec pulseaudio-ctl down
|
||||||
|
#bindsym XF86AudioMute exec pulseaudio-ctl mute
|
||||||
|
|
||||||
|
|
||||||
|
# music control
|
||||||
|
bindsym XF86AudioNext exec playerctl next
|
||||||
|
bindsym XF86AudioPrev exec playerctl previous
|
||||||
|
bindsym XF86AudioPlay exec playerctl play-pause
|
||||||
|
bindsym XF86AudioStop exec playerctl stop
|
||||||
|
|
||||||
|
# Print screen
|
||||||
|
bindsym $super+Print exec --no-startup-id "flameshot gui"
|
||||||
|
|
||||||
|
# kill focused window
|
||||||
|
bindsym $super+c kill
|
||||||
|
bindsym $super+q kill
|
||||||
|
|
||||||
|
# change focus
|
||||||
|
bindsym $super+Left focus left
|
||||||
|
bindsym $super+Down focus down
|
||||||
|
bindsym $super+Up focus up
|
||||||
|
bindsym $super+Right focus right
|
||||||
|
|
||||||
|
# move focused window
|
||||||
|
bindsym $super+Shift+Left move left
|
||||||
|
bindsym $super+Shift+Down move down
|
||||||
|
bindsym $super+Shift+Up move up
|
||||||
|
bindsym $super+Shift+Right move right
|
||||||
|
|
||||||
|
# split in horizontal orientation
|
||||||
|
bindsym $super+h split h
|
||||||
|
|
||||||
|
# split in vertical orientation
|
||||||
|
bindsym $super+v split v
|
||||||
|
|
||||||
|
# enter fullscreen mode for the focused container
|
||||||
|
bindsym $super+f fullscreen toggle
|
||||||
|
|
||||||
|
# change container layout split
|
||||||
|
bindsym $super+s layout toggle split
|
||||||
|
|
||||||
|
# toggle tiling / floating
|
||||||
|
bindsym $super+space floating toggle
|
||||||
|
|
||||||
|
# change focus between tiling / floating windows
|
||||||
|
bindsym $super+Shift+space focus mode_toggle
|
||||||
|
|
||||||
|
# toggle sticky
|
||||||
|
bindsym $super+Shift+s sticky toggle
|
||||||
|
|
||||||
|
# focus the parent container
|
||||||
|
bindsym $super+a focus parent
|
||||||
|
|
||||||
|
# move the currently focused window to the scratchpad
|
||||||
|
bindsym $super+Shift+minus move scratchpad
|
||||||
|
|
||||||
|
# Show the next scratchpad window or hide the focused scratchpad window.
|
||||||
|
# If there are multiple scratchpad windows, this command cycles through them.
|
||||||
|
bindsym $super+minus scratchpad show
|
||||||
|
|
||||||
|
#navigate workspaces next / previous
|
||||||
|
bindsym $super+Ctrl+Right workspace next
|
||||||
|
bindsym $super+Ctrl+Left workspace prev
|
||||||
|
|
||||||
|
|
||||||
|
# switch to workspace
|
||||||
|
bindsym $alt+Control+Right workspace next
|
||||||
|
bindsym $alt+Control+Left workspace prev
|
||||||
|
bindsym $super+1 workspace 1
|
||||||
|
bindsym $super+2 workspace 2
|
||||||
|
bindsym $super+3 workspace 3
|
||||||
|
bindsym $super+4 workspace 4
|
||||||
|
bindsym $super+5 workspace 5
|
||||||
|
bindsym $super+6 workspace 6
|
||||||
|
bindsym $super+7 workspace 7
|
||||||
|
bindsym $super+8 workspace 8
|
||||||
|
|
||||||
|
# move focused container to workspace
|
||||||
|
bindsym $super+Shift+1 move container to workspace 1
|
||||||
|
bindsym $super+Shift+2 move container to workspace 2
|
||||||
|
bindsym $super+Shift+3 move container to workspace 3
|
||||||
|
bindsym $super+Shift+4 move container to workspace 4
|
||||||
|
bindsym $super+Shift+5 move container to workspace 5
|
||||||
|
bindsym $super+Shift+6 move container to workspace 6
|
||||||
|
bindsym $super+Shift+7 move container to workspace 7
|
||||||
|
bindsym $super+Shift+8 move container to workspace 8
|
||||||
|
|
||||||
|
# Move to workspace with focused container
|
||||||
|
bindsym $alt+Shift+1 move container to workspace 1; workspace 1
|
||||||
|
bindsym $alt+Shift+2 move container to workspace 2; workspace 2
|
||||||
|
bindsym $alt+Shift+3 move container to workspace 3; workspace 3
|
||||||
|
bindsym $alt+Shift+4 move container to workspace 4; workspace 4
|
||||||
|
bindsym $alt+Shift+5 move container to workspace 5; workspace 5
|
||||||
|
bindsym $alt+Shift+6 move container to workspace 6; workspace 6
|
||||||
|
bindsym $alt+Shift+7 move container to workspace 7; workspace 7
|
||||||
|
bindsym $alt+Shift+8 move container to workspace 8; workspace 8
|
||||||
|
|
||||||
|
# Swipe gestures
|
||||||
|
bindsym --whole-window button19 workspace prev
|
||||||
|
bindsym --whole-window button17 workspace next
|
||||||
|
|
||||||
|
# reload the configuration file
|
||||||
|
bindsym $super+Shift+c reload
|
||||||
|
|
||||||
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
|
bindsym $super+Shift+r restart
|
||||||
|
|
||||||
|
# exit i3
|
||||||
|
#bindsym $super+q exec "i3-nagbar -t warning -m 'Really, exit?' -b 'Yes' 'i3-msg exit'"
|
||||||
|
|
||||||
|
# resize window (you can also use the mouse for that)
|
||||||
|
mode "resize" {
|
||||||
|
bindsym Left resize shrink width 5 px or 5 ppt
|
||||||
|
bindsym Down resize grow height 5 px or 5 ppt
|
||||||
|
bindsym Up resize shrink height 5 px or 5 ppt
|
||||||
|
bindsym Right resize grow width 5 px or 5 ppt
|
||||||
|
bindsym Return mode "default"
|
||||||
|
}
|
||||||
|
bindsym $super+r mode "resize"
|
||||||
|
|
||||||
|
# change borders
|
||||||
|
bindsym $super+u border none
|
||||||
|
bindsym $super+y border pixel 1
|
||||||
|
bindsym $super+n border normal
|
||||||
|
|
||||||
|
|
||||||
|
# panel
|
||||||
|
# Start i3bar to display a workspace bar
|
||||||
|
|
||||||
|
bar {
|
||||||
|
status_command exec /usr/bin/net-speed.sh
|
||||||
|
font pango:source code pro 16
|
||||||
|
separator_symbol "|"
|
||||||
|
#strip_workspace_numbers yes|no
|
||||||
|
#strip_workspace_name yes|no
|
||||||
|
colors {
|
||||||
|
background #181b28
|
||||||
|
statusline #161925
|
||||||
|
separator #2f343f
|
||||||
|
|
||||||
|
# colour of border background text
|
||||||
|
focused_workspace #4C7899 #285577 #FFFFFF
|
||||||
|
active_workspace #333333 #222222 #FFFFFF
|
||||||
|
inactive_workspace #333333 #222222 #888888
|
||||||
|
urgent_workspace #2F343A #900000 #FFFFFF
|
||||||
|
#binding_mode #2F343A #900000 #FFFFFF
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
# Open specific applications in floating mode
|
||||||
|
for_window [title="alsamixer"] floating enable border pixel 1
|
||||||
|
for_window [class="calamares"] floating enable border normal
|
||||||
|
for_window [class="Clipgrab"] floating enable
|
||||||
|
for_window [title="File Transfer*"] floating enable
|
||||||
|
for_window [class="bauh"] floating enable
|
||||||
|
for_window [class="Galculator"] floating enable border pixel 1
|
||||||
|
for_window [class="GParted"] floating enable border normal
|
||||||
|
for_window [title="i3_help"] floating enable sticky enable border normal
|
||||||
|
for_window [class="Lightdm-settings"] floating enable
|
||||||
|
for_window [class="Lxappearance"] floating enable border normal
|
||||||
|
for_window [class="Garuda Settings Manager"] floating enable border normal
|
||||||
|
for_window [title="MuseScore: Play Panel"] floating enable
|
||||||
|
for_window [class="azote"] floating enable sticky enable border normal
|
||||||
|
for_window [class="Oblogout"] fullscreen enable
|
||||||
|
for_window [class="octopi"] floating enable
|
||||||
|
for_window [title="About Pale Moon"] floating enable
|
||||||
|
for_window [class="Pamac-manager"] floating enable
|
||||||
|
for_window [class="Pamac-updater"] floating enable
|
||||||
|
for_window [class="pamac-aur"] floating enable
|
||||||
|
for_window [class="Pavucontrol"] floating enable
|
||||||
|
for_window [class="Qtconfig-qt4"] floating enable border normal
|
||||||
|
for_window [class="qt5ct"] floating enable sticky enable border normal
|
||||||
|
for_window [class="qt6ct"] floating enable sticky enable border normal
|
||||||
|
#for_window [title="sudo"] floating enable border normal
|
||||||
|
for_window [class="Simple-scan"] floating enable border normal
|
||||||
|
for_window [class="(?i)System-config-printer.py"] floating enable border normal
|
||||||
|
for_window [class="Skype"] floating enable border normal
|
||||||
|
for_window [class="Timeshift-gtk"] floating enable border normal
|
||||||
|
for_window [class="(?i)virtualbox"] floating enable border normal
|
||||||
|
for_window [class="Xfburn"] floating enable
|
||||||
|
for_window [class="keepassxc"] floating enable
|
||||||
|
for_window [class="garuda-welcome"] floating enable
|
||||||
|
|
||||||
|
# window rules, you can find the window class using xprop
|
||||||
|
for_window [class=".*"] border pixel 4
|
||||||
|
assign [class=URxvt] 1
|
||||||
|
for_window [class=Viewnior|feh|Audacious|File-roller|Lxappearance|Lxtask|Pavucontrol|upgrade2ultimate.sh] floating enable
|
||||||
|
for_window [class=URxvt|firedragon|Geany|Evince|Soffice|libreoffice*|mpv|Ghb|Xfburn|Gimp*|Inkscape|Vlc|Lxappearance|Audacity] focus
|
||||||
|
for_window [class=Xfburn|GParted|System-config-printer.py|Lxtask|Pavucontrol|Exo-helper*|Lxrandr|Arandr] focus
|
||||||
|
|
||||||
|
# class border backgr. text indicator child_border
|
||||||
|
client.focused #4c7899 #285577 #ffffff #2e9ef4 #285577
|
||||||
|
client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
|
||||||
|
client.unfocused #333333 #222222 #888888 #292d2e #222222
|
||||||
|
client.urgent #2f343a #900000 #ffffff #900000 #900000
|
||||||
|
client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#############################
|
||||||
|
### settings for i3-gaps: ###
|
||||||
|
#############################
|
||||||
|
|
||||||
|
# Set inner/outer gaps
|
||||||
|
gaps inner 0
|
||||||
|
gaps outer -2
|
||||||
|
|
||||||
|
# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
|
||||||
|
# gaps inner|outer current|all set|plus|minus <px>
|
||||||
|
# gaps inner all set 10
|
||||||
|
# gaps outer all plus 5
|
||||||
|
|
||||||
|
# Smart gaps (gaps used if only more than one container on the workspace)
|
||||||
|
smart_gaps on
|
||||||
|
|
||||||
|
# Smart borders (draw borders around container only if it is not the only container on this workspace)
|
||||||
|
# on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
|
||||||
|
smart_borders on
|
||||||
|
|
||||||
|
# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
|
||||||
|
set $mode_gaps Gaps: (o) outer, (i) inner
|
||||||
|
set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
|
||||||
|
bindsym $super+Shift+g mode "$mode_gaps"
|
||||||
|
|
||||||
|
mode "$mode_gaps" {
|
||||||
|
bindsym o mode "$mode_gaps_outer"
|
||||||
|
bindsym i mode "$mode_gaps_inner"
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_inner" {
|
||||||
|
bindsym plus gaps inner current plus 5
|
||||||
|
bindsym minus gaps inner current minus 5
|
||||||
|
bindsym 0 gaps inner current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps inner all plus 5
|
||||||
|
bindsym Shift+minus gaps inner all minus 5
|
||||||
|
bindsym Shift+0 gaps inner all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
mode "$mode_gaps_outer" {
|
||||||
|
bindsym plus gaps outer current plus 5
|
||||||
|
bindsym minus gaps outer current minus 5
|
||||||
|
bindsym 0 gaps outer current set 0
|
||||||
|
|
||||||
|
bindsym Shift+plus gaps outer all plus 5
|
||||||
|
bindsym Shift+minus gaps outer all minus 5
|
||||||
|
bindsym Shift+0 gaps outer all set 0
|
||||||
|
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Set shut down, restart and locking features
|
||||||
|
bindsym $super+0 mode "$mode_system"
|
||||||
|
set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
|
||||||
|
mode "$mode_system" {
|
||||||
|
bindsym l exec --no-startup-id i3exit lock, mode "default"
|
||||||
|
bindsym s exec --no-startup-id i3exit suspend, mode "default"
|
||||||
|
bindsym u exec --no-startup-id i3exit switch_user, mode "default"
|
||||||
|
bindsym e exec --no-startup-id i3exit logout, mode "default"
|
||||||
|
bindsym h exec --no-startup-id i3exit hibernate, mode "default"
|
||||||
|
bindsym r exec --no-startup-id i3exit reboot, mode "default"
|
||||||
|
bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
|
||||||
|
|
||||||
|
# exit system mode: "Enter" or "Escape"
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
33
config/i3/lock.sh
Executable file
33
config/i3/lock.sh
Executable file
@@ -0,0 +1,33 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# i3lock blurred screen inspired by /u/patopop007 and the blog post
|
||||||
|
# http://plankenau.com/blog/post-10/gaussianlock
|
||||||
|
|
||||||
|
# Timings are on an Intel i7-2630QM @ 2.00GHz
|
||||||
|
|
||||||
|
# Dependencies:
|
||||||
|
# imagemagick
|
||||||
|
# i3lock
|
||||||
|
# scrot (optional but default)
|
||||||
|
|
||||||
|
IMAGE=/tmp/i3lock.png
|
||||||
|
SCREENSHOT="scrot $IMAGE" # 0.46s
|
||||||
|
|
||||||
|
# Alternate screenshot method with imagemagick. NOTE: it is much slower
|
||||||
|
# SCREENSHOT="import -window root $IMAGE" # 1.35s
|
||||||
|
|
||||||
|
# Here are some imagemagick blur types
|
||||||
|
# Uncomment one to use, if you have multiple, the last one will be used
|
||||||
|
|
||||||
|
# All options are here: http://www.imagemagick.org/Usage/blur/#blur_args
|
||||||
|
#BLURTYPE="0x5" # 7.52s
|
||||||
|
#BLURTYPE="0x2" # 4.39s
|
||||||
|
#BLURTYPE="5x2" # 3.80s
|
||||||
|
#BLURTYPE="2x8" # 2.90s
|
||||||
|
#BLURTYPE="2x3" # 2.92s
|
||||||
|
BLURTYPE="0x7"
|
||||||
|
# Get the screenshot, add the blur and lock the screen with it
|
||||||
|
$SCREENSHOT
|
||||||
|
convert $IMAGE -blur $BLURTYPE $IMAGE
|
||||||
|
i3lock -i $IMAGE
|
||||||
|
rm $IMAGE
|
||||||
47
config/kitty/current-theme.conf
Normal file
47
config/kitty/current-theme.conf
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
# vim:ft=kitty
|
||||||
|
## name: Gruvbox Material Light Soft
|
||||||
|
## author: Sainnhe Park
|
||||||
|
## license: MIT
|
||||||
|
## upstream: https://raw.githubusercontent.com/rsaihe/gruvbox-material-kitty/main/colors/gruvbox-material-light-soft.conf
|
||||||
|
## blurb: A modified version of Gruvbox with softer contrasts
|
||||||
|
|
||||||
|
background #f2e5bc
|
||||||
|
foreground #654735
|
||||||
|
|
||||||
|
selection_background #654735
|
||||||
|
selection_foreground #f2e5bc
|
||||||
|
|
||||||
|
cursor #928374
|
||||||
|
cursor_text_color background
|
||||||
|
|
||||||
|
# Black
|
||||||
|
color0 #bdae93
|
||||||
|
color8 #928374
|
||||||
|
|
||||||
|
# Red
|
||||||
|
color1 #c14a4a
|
||||||
|
color9 #c14a4a
|
||||||
|
|
||||||
|
# Green
|
||||||
|
color2 #6c782e
|
||||||
|
color10 #6c782e
|
||||||
|
|
||||||
|
# Yellow
|
||||||
|
color3 #c35e0a
|
||||||
|
color11 #b47109
|
||||||
|
|
||||||
|
# Blue
|
||||||
|
color4 #45707a
|
||||||
|
color12 #45707a
|
||||||
|
|
||||||
|
# Magenta
|
||||||
|
color5 #945e80
|
||||||
|
color13 #945e80
|
||||||
|
|
||||||
|
# Cyan
|
||||||
|
color6 #4c7a5d
|
||||||
|
color14 #4c7a5d
|
||||||
|
|
||||||
|
# White
|
||||||
|
color7 #654735
|
||||||
|
color15 #654735
|
||||||
21
config/kitty/current-theme.conf.bak
Normal file
21
config/kitty/current-theme.conf.bak
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
background #1f1c27
|
||||||
|
foreground #b6a0ff
|
||||||
|
cursor #ff9738
|
||||||
|
selection_background #353146
|
||||||
|
color0 #1f1c27
|
||||||
|
color8 #353146
|
||||||
|
color1 #d8393d
|
||||||
|
color9 #d8393d
|
||||||
|
color2 #2dcc72
|
||||||
|
color10 #2dcc72
|
||||||
|
color3 #d8b76e
|
||||||
|
color11 #d8b76e
|
||||||
|
color4 #ffc183
|
||||||
|
color12 #ffc183
|
||||||
|
color5 #dd8d40
|
||||||
|
color13 #dd8d40
|
||||||
|
color6 #2388ff
|
||||||
|
color14 #2388ff
|
||||||
|
color7 #b6a0ff
|
||||||
|
color15 #e9e4ff
|
||||||
|
selection_foreground #1f1c27
|
||||||
@@ -29,7 +29,7 @@ term xterm-kitty
|
|||||||
enable_audio_bell no
|
enable_audio_bell no
|
||||||
|
|
||||||
# os specific tweaks (Gnome window decoration for wayland)
|
# os specific tweaks (Gnome window decoration for wayland)
|
||||||
linux_display_server wayland
|
linux_display_server x11
|
||||||
|
|
||||||
# font
|
# font
|
||||||
font_family JetBrainsMono Nerd Font
|
font_family JetBrainsMono Nerd Font
|
||||||
@@ -60,7 +60,7 @@ remember_window_size yes
|
|||||||
window_border_width 1.5pt
|
window_border_width 1.5pt
|
||||||
enabled_layouts tall
|
enabled_layouts tall
|
||||||
hide_window_decorations no
|
hide_window_decorations no
|
||||||
window_scale 3.0
|
#window_scale 3.0
|
||||||
|
|
||||||
# window management
|
# window management
|
||||||
map ctrl+shift+enter new_window
|
map ctrl+shift+enter new_window
|
||||||
@@ -85,3 +85,9 @@ map ctrl+shift+t new_tab
|
|||||||
map ctrl+shift+right next_tab
|
map ctrl+shift+right next_tab
|
||||||
map ctrl+shift+left previous_tab
|
map ctrl+shift+left previous_tab
|
||||||
map ctrl+shift+q close_tab
|
map ctrl+shift+q close_tab
|
||||||
|
|
||||||
|
|
||||||
|
# BEGIN_KITTY_THEME
|
||||||
|
# Gruvbox Material Light Soft
|
||||||
|
include current-theme.conf
|
||||||
|
# END_KITTY_THEME
|
||||||
93
config/kitty/kitty.conf.bak
Normal file
93
config/kitty/kitty.conf.bak
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
|
||||||
|
# _ _ _ _ _ _ _
|
||||||
|
# | | _(_) |_| |_ _ _ | |_ ___ _ __ _ __ ___ (_)_ __ __ _| |
|
||||||
|
# | |/ / | __| __| | | | | __/ _ \ '__| '_ ` _ \| | '_ \ / _` | |
|
||||||
|
# | <| | |_| |_| |_| | | || __/ | | | | | | | | | | | (_| | |
|
||||||
|
# |_|\_\_|\__|\__|\__, | \__\___|_| |_| |_| |_|_|_| |_|\__,_|_|
|
||||||
|
# |___/ _ _ _
|
||||||
|
# ___ _ _ ___| |_ ___ _ __ ___ (_)______ _| |_(_) ___ _ __
|
||||||
|
# / __| | | / __| __/ _ \| '_ ` _ \| |_ / _` | __| |/ _ \| '_ \
|
||||||
|
# | (__| |_| \__ \ || (_) | | | | | | |/ / (_| | |_| | (_) | | | |
|
||||||
|
# \___|\__,_|___/\__\___/|_| |_| |_|_/___\__,_|\__|_|\___/|_| |_|
|
||||||
|
|
||||||
|
##########################################################################
|
||||||
|
|
||||||
|
# themes
|
||||||
|
include GruvBox_DarkHard.conf
|
||||||
|
#include Wryan.conf
|
||||||
|
#include VSCode_Dark.conf
|
||||||
|
|
||||||
|
|
||||||
|
# terminal opacity and blur
|
||||||
|
background_opacity 1.0
|
||||||
|
background_blur 1
|
||||||
|
|
||||||
|
# advance
|
||||||
|
term xterm-kitty
|
||||||
|
|
||||||
|
# terminal bell
|
||||||
|
enable_audio_bell no
|
||||||
|
|
||||||
|
# os specific tweaks (Gnome window decoration for wayland)
|
||||||
|
linux_display_server x11
|
||||||
|
|
||||||
|
# font
|
||||||
|
font_family JetBrainsMono Nerd Font
|
||||||
|
bold_font auto
|
||||||
|
italic_font auto
|
||||||
|
bold_italic_font auto
|
||||||
|
font_size 10.0
|
||||||
|
|
||||||
|
# font size management
|
||||||
|
map ctrl+shift+backspace change_font_size all 0
|
||||||
|
|
||||||
|
# cursor customization
|
||||||
|
# block / beam / underline
|
||||||
|
cursor_shape block
|
||||||
|
cursor_blink_interval 0
|
||||||
|
cursor_stop_blinking_after 0
|
||||||
|
shell_integration no-cursor
|
||||||
|
|
||||||
|
# scrollback
|
||||||
|
scrollback_lines 5000
|
||||||
|
wheel_scroll_multiplier 3.0
|
||||||
|
|
||||||
|
# mouse
|
||||||
|
mouse_hide_wait -1
|
||||||
|
|
||||||
|
# window layout
|
||||||
|
remember_window_size yes
|
||||||
|
window_border_width 1.5pt
|
||||||
|
enabled_layouts tall
|
||||||
|
hide_window_decorations no
|
||||||
|
#window_scale 3.0
|
||||||
|
|
||||||
|
# window management
|
||||||
|
map ctrl+shift+enter new_window
|
||||||
|
map ctrl+shift+] next_window
|
||||||
|
map ctrl+shift+[ previous_window
|
||||||
|
|
||||||
|
# layout management
|
||||||
|
map ctrl+shift+l next_layout
|
||||||
|
map ctrl+alt+r goto_layout tall
|
||||||
|
map ctrl+alt+s goto_layout stack
|
||||||
|
|
||||||
|
# tab bar customization
|
||||||
|
tab_bar_style powerline
|
||||||
|
tab_powerline_style slanted
|
||||||
|
tab_bar_edge bottom
|
||||||
|
tab_bar_align left
|
||||||
|
active_tab_font_style bold
|
||||||
|
inactive_tab_font_style normal
|
||||||
|
|
||||||
|
# tab management
|
||||||
|
map ctrl+shift+t new_tab
|
||||||
|
map ctrl+shift+right next_tab
|
||||||
|
map ctrl+shift+left previous_tab
|
||||||
|
map ctrl+shift+q close_tab
|
||||||
|
|
||||||
|
|
||||||
|
# BEGIN_KITTY_THEME
|
||||||
|
# Gruvbox Light Soft
|
||||||
|
include current-theme.conf
|
||||||
|
# END_KITTY_THEME
|
||||||
@@ -1,305 +0,0 @@
|
|||||||
// vim:ft=jsonc
|
|
||||||
{
|
|
||||||
"layer": "top",
|
|
||||||
"position": "top",
|
|
||||||
"height": 52,
|
|
||||||
"margin-left": 20,
|
|
||||||
"margin-right": 20,
|
|
||||||
"margin-top": 10,
|
|
||||||
"margin-bottom": 0,
|
|
||||||
"spacing": 2,
|
|
||||||
"reload_style_on_change": true,
|
|
||||||
|
|
||||||
// Choose the order of the modules
|
|
||||||
|
|
||||||
"modules-left": ["hyprland/workspaces", "river/tags", "tray"],
|
|
||||||
|
|
||||||
//"modules-center": ["clock"],
|
|
||||||
|
|
||||||
"modules-right": [
|
|
||||||
"network",
|
|
||||||
"cpu",
|
|
||||||
"memory",
|
|
||||||
"battery",
|
|
||||||
"temperature",
|
|
||||||
"backlight",
|
|
||||||
"wireplumber",
|
|
||||||
"clock",
|
|
||||||
"custom/separator",
|
|
||||||
"group/custom-group",
|
|
||||||
"custom/separator",
|
|
||||||
"custom/power"
|
|
||||||
|
|
||||||
],
|
|
||||||
|
|
||||||
"group/custom-group": {
|
|
||||||
"orientation": "horizontal",
|
|
||||||
"modules": [
|
|
||||||
"idle_inhibitor"
|
|
||||||
//"custom/bluetooth",
|
|
||||||
//"custom/wifi",
|
|
||||||
//"custom/pacman"
|
|
||||||
],
|
|
||||||
},
|
|
||||||
|
|
||||||
"hyprland/workspaces": {
|
|
||||||
"on-click": "activate",
|
|
||||||
//"active-only": false,
|
|
||||||
"all-outputs": true,
|
|
||||||
"format": "{icon}",
|
|
||||||
"format-icons": {
|
|
||||||
"1": "", //
|
|
||||||
"2": "",
|
|
||||||
"3": "",
|
|
||||||
"4": "",
|
|
||||||
"5": "",
|
|
||||||
"6": "",
|
|
||||||
"7": "",
|
|
||||||
"8": "",
|
|
||||||
"9": "",
|
|
||||||
"10": "",
|
|
||||||
// "","",
|
|
||||||
// "urgent": "",
|
|
||||||
// "active": "",
|
|
||||||
// "default": ""
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
"hyprland/window": {
|
|
||||||
"format": "{}",
|
|
||||||
"separate-outputs": true,
|
|
||||||
},
|
|
||||||
|
|
||||||
"river/tags": {
|
|
||||||
"num-tags": 7,
|
|
||||||
"tag-labels": ["", "", "", "", "", "", "", "", "", ""],
|
|
||||||
},
|
|
||||||
|
|
||||||
"tray": {
|
|
||||||
"icon-size": 24,
|
|
||||||
"spacing": 10,
|
|
||||||
"show-passive-items": true,
|
|
||||||
},
|
|
||||||
|
|
||||||
"clock": {
|
|
||||||
"interval": 60,
|
|
||||||
"format": " {:%a %d %b %I:%M %p}", // %b %d %Y --Date formatting
|
|
||||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
||||||
"format-alt": "{:%d-%m-%Y %H:%M:%S }",
|
|
||||||
},
|
|
||||||
|
|
||||||
"temperature": {
|
|
||||||
// "thermal-zone": 2,
|
|
||||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
|
||||||
// "format-critical": "{temperatureC}°C {icon}",
|
|
||||||
"critical-threshold": 80,
|
|
||||||
"interval": 2,
|
|
||||||
"format": " {temperatureC:>2}°C",
|
|
||||||
"format-icons": ["", "", ""],
|
|
||||||
"on-click": "hyprctl dispatcher togglespecialworkspace monitor",
|
|
||||||
},
|
|
||||||
|
|
||||||
"cpu": {
|
|
||||||
"interval": 2,
|
|
||||||
"format": " {usage:>2}%",
|
|
||||||
"on-click": "hyprctl dispatcher togglespecialworkspace monitor",
|
|
||||||
},
|
|
||||||
|
|
||||||
"memory": {
|
|
||||||
"interval": 2,
|
|
||||||
"format": " {:>2}%",
|
|
||||||
},
|
|
||||||
|
|
||||||
"disk": {
|
|
||||||
"interval": 15,
|
|
||||||
"format": " {percentage_used:>2}%",
|
|
||||||
},
|
|
||||||
|
|
||||||
"backlight": {
|
|
||||||
// "device": "acpi_video1",
|
|
||||||
"format": "{icon} {percent:>2}%",
|
|
||||||
"format-icons": ["", "", "", "", "", "", "", "", ""],
|
|
||||||
},
|
|
||||||
|
|
||||||
"network": {
|
|
||||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
||||||
"interval": 1,
|
|
||||||
"format-wifi": " {bandwidthTotalBytes:>2}", //({essid} {signalStrength}%)
|
|
||||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
|
||||||
"tooltip-format-wifi": " {ipaddr} ({signalStrength}%)",
|
|
||||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
|
||||||
"format-linked": "{ifname} (No IP) ",
|
|
||||||
"format-disconnected": " Disconnected", //Disconnected ⚠
|
|
||||||
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
|
||||||
},
|
|
||||||
|
|
||||||
"pulseaudio": {
|
|
||||||
// "scroll-step": 1, // %, can be a float
|
|
||||||
"format": "{icon} {volume}%", //{format_source}",
|
|
||||||
"format-bluetooth": "{icon} {volume}% ", //{format_source}",
|
|
||||||
"format-bluetooth-muted": " {icon} ", //{format_source}",
|
|
||||||
"format-muted": " {volume}%",
|
|
||||||
// "format-source": " {volume}%",
|
|
||||||
// "format-source-muted": "",
|
|
||||||
"format-icons": {
|
|
||||||
"headphone": "",
|
|
||||||
"hands-free": "",
|
|
||||||
"headset": "",
|
|
||||||
"phone": "",
|
|
||||||
"portable": "",
|
|
||||||
"car": "",
|
|
||||||
"default": ["", "", ""],
|
|
||||||
},
|
|
||||||
"on-click": "pavucontrol",
|
|
||||||
},
|
|
||||||
|
|
||||||
"wireplumber": {
|
|
||||||
"format": "{icon} {volume:>3}%",
|
|
||||||
"format-muted": " {volume:>3}%",
|
|
||||||
// "format-bluetooth": "{icon} {volume:>2}% ", //{format_source}",
|
|
||||||
// "format-bluetooth-muted": " {icon} ", //{format_source}",
|
|
||||||
"format-icons": ["", "", ""],
|
|
||||||
},
|
|
||||||
|
|
||||||
// This waybar build doesn't have support for cava.
|
|
||||||
// Need to edit the PKGBUILD and rebuild with -Dcava=enabled flag
|
|
||||||
"cava": {
|
|
||||||
"cava_config": "$XDG_CONFIG_HOME/cava/config",
|
|
||||||
"framerate": 30,
|
|
||||||
"autosens": 1,
|
|
||||||
"sensitivity": 100,
|
|
||||||
"bars": 14,
|
|
||||||
"lower_cutoff_freq": 50,
|
|
||||||
"higher_cutoff_freq": 10000,
|
|
||||||
"method": "pulse",
|
|
||||||
"source": "auto",
|
|
||||||
"stereo": true,
|
|
||||||
"reverse": false,
|
|
||||||
"bar_delimiter": 0,
|
|
||||||
"monstercat": false,
|
|
||||||
"waves": false,
|
|
||||||
"noise_reduction": 0.77,
|
|
||||||
"input_delay": 2,
|
|
||||||
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
|
|
||||||
"actions": {
|
|
||||||
"on-click-right": "mode",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
"idle_inhibitor": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"format-icons": {
|
|
||||||
"activated": "",
|
|
||||||
"deactivated": "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/power": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"format-icons": " ", //
|
|
||||||
"exec-on-event": "true",
|
|
||||||
"on-click": "$HOME/scripts/rofi-power",
|
|
||||||
"tooltip-format": "Power Menu",
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/kdeconnect": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"format-icons": "",
|
|
||||||
"exec-on-event": "true",
|
|
||||||
"on-click": "kdeconnect-app",
|
|
||||||
"tooltip-format": "KDE Connect",
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/bluetooth": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"format-icons": "",
|
|
||||||
"exec-on-event": "true",
|
|
||||||
"on-click": "$HOME/scripts/rofi-bluetooth",
|
|
||||||
"tooltip-format": "Bluetooth Menu",
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/wifi": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"format-icons": "",
|
|
||||||
"exec-on-event": "true",
|
|
||||||
"on-click": "$HOME/scripts/rofi-wifi",
|
|
||||||
"tooltip-format": "Wifi Menu",
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/separator": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"format-icons": "|",
|
|
||||||
"tooltip": false,
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/pacman": {
|
|
||||||
"format": " {}",
|
|
||||||
"interval": 3600, // every hour
|
|
||||||
"exec": "checkupdates | wc -l", // # of updates
|
|
||||||
"exec-if": "exit 0", // always run; consider advanced run conditions
|
|
||||||
"on-click": "kitty -e 'sudo pacman -Syu'; pkill -SIGRTMIN+8 waybar", // update system
|
|
||||||
"signal": 8,
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/notification": {
|
|
||||||
"tooltip": false,
|
|
||||||
"format": "{icon} {}",
|
|
||||||
"format-icons": {
|
|
||||||
"notification": "<span foreground='red'><sup></sup></span>",
|
|
||||||
"none": "",
|
|
||||||
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
|
||||||
"dnd-none": "",
|
|
||||||
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
||||||
"inhibited-none": "",
|
|
||||||
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
|
|
||||||
"dnd-inhibited-none": "",
|
|
||||||
},
|
|
||||||
"return-type": "json",
|
|
||||||
"exec-if": "which swaync-client",
|
|
||||||
"exec": "swaync-client -swb",
|
|
||||||
"on-click": "swaync-client -t -sw",
|
|
||||||
"on-click-right": "swaync-client -d -sw",
|
|
||||||
"escape": true,
|
|
||||||
},
|
|
||||||
|
|
||||||
"keyboard-state": {
|
|
||||||
"numlock": true,
|
|
||||||
"capslock": true,
|
|
||||||
"format": "{name} {icon}",
|
|
||||||
"format-icons": {
|
|
||||||
"locked": "",
|
|
||||||
"unlocked": "",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
"wlr/taskbar": {
|
|
||||||
"format": "{icon}",
|
|
||||||
"icon-size": 32,
|
|
||||||
"tooltip-format": "{title}",
|
|
||||||
"on-click": "activate",
|
|
||||||
"on-click-middle": "close",
|
|
||||||
"ignore-list": ["kitty", "wezterm", "foot", "footclient"],
|
|
||||||
},
|
|
||||||
|
|
||||||
"battery": {
|
|
||||||
"states": {
|
|
||||||
"good": 95,
|
|
||||||
"warning": 30,
|
|
||||||
"critical": 15,
|
|
||||||
},
|
|
||||||
"format": "{capacity}% {icon}",
|
|
||||||
"format-charging": " {capacity}%",
|
|
||||||
"format-plugged": " {capacity}%",
|
|
||||||
"format-alt": "{icon} {time}",
|
|
||||||
// "format-good": "", // An empty format will hide the module
|
|
||||||
// "format-full": "",
|
|
||||||
"format-icons": ["", "", "", "", ""],
|
|
||||||
},
|
|
||||||
|
|
||||||
"backlight/slider": {
|
|
||||||
"min": 0,
|
|
||||||
"max": 100,
|
|
||||||
"orientation": "horizontal",
|
|
||||||
"device": "intel_backlight",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Terminate already running bar instances
|
|
||||||
# If all your bars have ipc enabled, you can use
|
|
||||||
# polybar-msg cmd quit
|
|
||||||
# Otherwise you can use the nuclear option:
|
|
||||||
killall -q waybar
|
|
||||||
|
|
||||||
# Launch bar1 and bar2
|
|
||||||
waybar 2>&1 | tee -a /tmp/waybar.log &
|
|
||||||
disown
|
|
||||||
|
|
||||||
echo "Bars launched..."
|
|
||||||
@@ -1,226 +0,0 @@
|
|||||||
@define-color fg #F5F5F5;
|
|
||||||
@define-color bg #1F1F28;
|
|
||||||
@define-color bordercolor #C8C093;
|
|
||||||
@define-color highlight #D59C5C;
|
|
||||||
@define-color disabled #A5A5A5;
|
|
||||||
@define-color alert #E67E80;
|
|
||||||
@define-color activegreen #26A65B;
|
|
||||||
|
|
||||||
* {
|
|
||||||
min-height: 0;
|
|
||||||
font-family: "JetBrainsMono Nerd Font", Roboto, Helvetica, Arial, sans-serif;
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar {
|
|
||||||
color: @fg;
|
|
||||||
background: @bg;
|
|
||||||
border-radius: 10px;
|
|
||||||
transition-property: background-color;
|
|
||||||
transition-duration: 0.5s;
|
|
||||||
border: 2px solid @bordercolor;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
/* Use box-shadow instead of border so the text isn't offset */
|
|
||||||
box-shadow: inset 0 -3px transparent;
|
|
||||||
/* Avoid rounded borders under each button name */
|
|
||||||
border: none;;
|
|
||||||
border-radius: 0px;
|
|
||||||
padding: 0px 5px;
|
|
||||||
margin: 15px 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
|
||||||
button:hover {
|
|
||||||
background: inherit;
|
|
||||||
box-shadow: inset 0 -3px transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button {
|
|
||||||
color: @fg;
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.urgent {
|
|
||||||
color: @alert;
|
|
||||||
}
|
|
||||||
#workspaces button.empty {
|
|
||||||
color: @bordercolor;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active {
|
|
||||||
color: @highlight;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*River Tags/Workspaces*/
|
|
||||||
#tags {
|
|
||||||
border-radius: 0px;
|
|
||||||
padding: 0px 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tags button {
|
|
||||||
color: @bordercolor;
|
|
||||||
background: @bg;
|
|
||||||
|
|
||||||
/*If you need round border icons*/
|
|
||||||
border-radius: 0px;
|
|
||||||
padding: 0px 0px;
|
|
||||||
margin: 5px 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tags button.occupied {
|
|
||||||
color: @fg;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tags button.focused {
|
|
||||||
color: @highlight;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tags button.urgent {
|
|
||||||
color: @alert;
|
|
||||||
}
|
|
||||||
|
|
||||||
#clock,
|
|
||||||
#cava,
|
|
||||||
#battery,
|
|
||||||
#cpu,
|
|
||||||
#memory,
|
|
||||||
#disk,
|
|
||||||
#temperature,
|
|
||||||
#language,
|
|
||||||
#backlight,
|
|
||||||
#backlight-slider,
|
|
||||||
#network,
|
|
||||||
#pulseaudio,
|
|
||||||
#wireplumber,
|
|
||||||
#custom-media,
|
|
||||||
#taskbar,
|
|
||||||
#tray,
|
|
||||||
#tray menu,
|
|
||||||
#tray > .needs-attention,
|
|
||||||
#tray > .passive,
|
|
||||||
#tray > .active,
|
|
||||||
#mode,
|
|
||||||
#scratchpad,
|
|
||||||
#custom-notification,
|
|
||||||
#custom-wifi,
|
|
||||||
#custom-kdeconnect,
|
|
||||||
#custom-bluetooth,
|
|
||||||
#custom-power,
|
|
||||||
#custom-separator,
|
|
||||||
#idle_inhibitor,
|
|
||||||
#window,
|
|
||||||
#mpd {
|
|
||||||
padding: 0px 10px;
|
|
||||||
margin: 0px 5px;
|
|
||||||
color: @bordercolor;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-notification,
|
|
||||||
#custom-wifi,
|
|
||||||
#custom-kdeconnect,
|
|
||||||
#custom-bluetooth,
|
|
||||||
#custom-power,
|
|
||||||
#idle_inhibitor {
|
|
||||||
color: @bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
#clock,
|
|
||||||
#custom-group {
|
|
||||||
color: @bg;
|
|
||||||
background-color: @bordercolor;
|
|
||||||
margin: 10px;
|
|
||||||
padding: 0px 15px;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-separator {
|
|
||||||
padding: 0px;
|
|
||||||
margin: 0px;
|
|
||||||
color: @disabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-power {
|
|
||||||
color: @alert;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#tray {
|
|
||||||
/*background-color: @bordercolor;*/
|
|
||||||
border: 1px solid @bordercolor;
|
|
||||||
margin: 10px;
|
|
||||||
padding: 0px 15px;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.disconnected,
|
|
||||||
#pulseaudio.muted,
|
|
||||||
#wireplumber.muted {
|
|
||||||
color: @alert;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.charging,
|
|
||||||
#battery.plugged {
|
|
||||||
color: @activegreen;
|
|
||||||
}
|
|
||||||
|
|
||||||
label:focus {
|
|
||||||
background-color: @bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.critical:not(.charging) {
|
|
||||||
background-color: @alert;
|
|
||||||
color: @fg;
|
|
||||||
animation-name: blink;
|
|
||||||
animation-duration: 0.5s;
|
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-direction: alternate;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray > .passive {
|
|
||||||
background-color: red;
|
|
||||||
color: @bg;
|
|
||||||
}
|
|
||||||
#tray menu {
|
|
||||||
background-color: @bg;
|
|
||||||
border: 1px solid @bordercolor;
|
|
||||||
color: @bordercolor;
|
|
||||||
border-radius: 10px;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
#tray menuitem {
|
|
||||||
background-color: @bg;
|
|
||||||
color: @bordercolor;
|
|
||||||
border-radius: 3px;
|
|
||||||
border: 1px solid transparent;
|
|
||||||
}
|
|
||||||
#tray menuitem:hover {
|
|
||||||
background-color: #000000;
|
|
||||||
border: 1px solid @bordercolor;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
#tray menu {
|
|
||||||
background-color: @bg;
|
|
||||||
border: 1px solid @bordercolor;
|
|
||||||
color: @bordercolor;
|
|
||||||
border-radius: 10px;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray menuitem {
|
|
||||||
background-color: @bg;
|
|
||||||
color: @bordercolor;
|
|
||||||
border-radius: 3px;
|
|
||||||
padding: 5px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray menuitem:hover {
|
|
||||||
background-color: #000000;
|
|
||||||
border: 1px solid @bordercolor;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
kitty="/home/ssfunerals/.config/kitty/kitty.conf"
|
|
||||||
hyprland="/home/ssfunerals/.config/hypr/hyprland.conf"
|
|
||||||
hyprlocl="/home/ssfunerals/.config/hypr/hyprlock.conf"
|
|
||||||
waybar="/home/ssfunerals/.config/waybar/config"
|
|
||||||
|
|
||||||
if [ -z "$1" ]; then
|
|
||||||
echo "Usage: $0 [kitty|hyprland|hyprlock|waybar]"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
kitty)
|
|
||||||
nano "$kitty"
|
|
||||||
;;
|
|
||||||
hyprland)
|
|
||||||
nano "$hyprland"
|
|
||||||
;;
|
|
||||||
hyprlock)
|
|
||||||
nano "$hyprlocl"
|
|
||||||
;;
|
|
||||||
waybar)
|
|
||||||
nano "$waybar"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Erreur : option invalide. Choisissez parmi [kitty|hyprland|hyprlock|waybar]."
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
swaybg -i /home/ssfunerals/wp.png &
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
yay -Syu
|
|
||||||
clear
|
|
||||||
|
|
||||||
term_width=$(tput cols)
|
|
||||||
|
|
||||||
ascii_message="
|
|
||||||
▗▖ ▗▖ ▗▄▖ ▗▖ ▗▄▖ ▗▖ ▗▖
|
|
||||||
▐▛▚▞▜▌▐▌ ▐▌ ▐▌ ▐▌ ▐▌▐▌▗▞▘
|
|
||||||
▐▌ ▐▌▐▛▀▜▌ ▐▌ ▐▌ ▐▌▐▛▚▖
|
|
||||||
▐▌ ▐▌▐▌ ▐▌▗▄▄▞▘ ▝▚▄▞▘▐▌ ▐▌
|
|
||||||
|
|
||||||
|
|
||||||
"
|
|
||||||
|
|
||||||
# Ajouter une bordure dynamique
|
|
||||||
border=$(printf '%*s' "$term_width" | tr ' ' '=')
|
|
||||||
|
|
||||||
# Centrer et afficher le message
|
|
||||||
echo "$border"
|
|
||||||
echo "$ascii_message" | while IFS= read -r line; do
|
|
||||||
padding=$(( (term_width - ${#line}) / 2 ))
|
|
||||||
printf "%*s%s\n" "$padding" "" "$line"
|
|
||||||
done
|
|
||||||
echo "$border"
|
|
||||||
|
|
||||||
# Attendre 5 secondes
|
|
||||||
sleep 5
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
read -p "Activer le VPN ? " choice
|
|
||||||
possible_answers=("y" "Y" "yes" "Yes" "YES" "o" "O" "oui" "Oui" "OUI")
|
|
||||||
echo "Choix: $choice"
|
|
||||||
|
|
||||||
activate() {
|
|
||||||
if ip a | grep -q LAN; then
|
|
||||||
if sudo /usr/bin/wg-quick down /etc/wireguard/LAN.conf; then
|
|
||||||
echo "VPN down" >> /home/ssfunerals/log-vpn
|
|
||||||
notify-send --app-name VPN -u normal -i /usr/share/icons/Papirus-Dark/symbolic/status/network-vpn-disconnected-symbolic.svg "VPN déconnecté avec succès."
|
|
||||||
else
|
|
||||||
error_message=$(sudo /usr/bin/wg-quick down /etc/wireguard/LAN.conf 2>&1)
|
|
||||||
echo "Échec de la déconnexion du VPN: $error_message" >> /home/ssfunerals/log-vpn
|
|
||||||
notify-send --app-name VPN -u critical -i /usr/share/icons/Papirus-Dark/symbolic/status/network-error-symbolic.svg "Échec de la déconnexion du VPN: $error_message"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if sudo /usr/bin/wg-quick up /etc/wireguard/LAN.conf; then
|
|
||||||
echo "VPN up" >> /home/ssfunerals/log-vpn
|
|
||||||
notify-send --app-name VPN -u normal -i /usr/share/icons/Papirus-Dark/symbolic/status/network-vpn-symbolic.svg "VPN connecté avec succès."
|
|
||||||
else
|
|
||||||
error_message=$(sudo /usr/bin/wg-quick up /etc/wireguard/LAN.conf 2>&1)
|
|
||||||
echo "Échec de la connexion du VPN: $error_message" >> /home/ssfunerals/log-vpn
|
|
||||||
notify-send --app-name VPN -u critical -i /usr/share/icons/Papirus-Dark/symbolic/status/network-error-symbolic.svg "Échec de la connexion du VPN: $error_message"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
if [[ ! " ${possible_answers[@]} " =~ " ${choice} " ]]; then
|
|
||||||
echo "Le VPN ne sera pas activé."
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
echo "Activation du VPN..."
|
|
||||||
activate
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user