Added Hypridle, Networkmanager, waybar

This commit is contained in:
2024-11-26 15:16:29 +01:00
parent fd5e9640bb
commit a3c6e2e8e5
6 changed files with 384 additions and 37 deletions

16
config/hypr/hypridle.conf Normal file
View File

@@ -0,0 +1,16 @@
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 = 300 # 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 = 1800 # 30min
on-timeout = systemctl suspend # suspend pc
}

View File

@@ -36,7 +36,7 @@ monitor=,preferred,auto,auto
$terminal = kitty
$fileManager = dolphin
$browser = brave
$menu = wofi --show drun
$menu = rofi -show drun
#################
@@ -49,14 +49,15 @@ exec = gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" # fo
exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # for GTK4 apps
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
# exec-once = waybar
exec-once = $browser
exec-once = flatpak run com.moonlight_stream.Moonlight
exec-once = $terminal
exec-once = waybar
exec-once = hypridle
# exec-once = nm-applet &
# exec-once = waybar & hyprpaper & firefox
exec-once = [workspace 1 silent] $terminal
exec-once = [workspace 2 silent] $browser
# exec-once = [workspace 3 silent] flatpak run com.moonlight_stream.Moonlight
exec-once = [workspace special:magic silent] kitty
#############################
@@ -94,7 +95,7 @@ general {
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
layout = master
layout = dwindle
}
# https://wiki.hyprland.org/Configuring/Variables/#decoration
@@ -190,9 +191,9 @@ input {
kb_layout = se
kb_variant =
kb_model =
kb_options =
kb_rules =
kb_options = ctrl:nocaps, fkeys:basic_13-24
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
@@ -223,12 +224,15 @@ device {
$mainMod = SHIFT ALT # Sets "Windows" key as main modifier
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, wlogout
bind = $mainMod, T, exec, $terminal
bind = $mainMod, C, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, F, togglefloating,
bind = $mainMod, D, exec, $menu
bind = ALT, Tab, workspace, m+1
bind = ALT SHIFT, Tab, workspace, m-1
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
@@ -262,7 +266,7 @@ bind = $mainMod SUPER, 0, movetoworkspace, 10
# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
bind = $mainMod SUPER, S, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
@@ -298,6 +302,8 @@ bindl = , XF86AudioPrev, exec, playerctl previous
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
windowrulev2 = float,title:^(Volume Control)$
windowrulev2 = float,title:^(Helvum - Pipewire Patchbay)$
# windowrulev2 = float,class:(com.moonlight_stream.moonlight),title:(moonlight)
# windowrulev2 = tile,class:(com.moonlight_stream.moonlight),title:(moonlight)