Updated scripts

This commit is contained in:
Christoffer Martinsson 2024-12-01 18:51:23 +01:00
parent 685fb02b78
commit 82895847fb
4 changed files with 70 additions and 108 deletions

View File

@ -1,111 +1,59 @@
# #######################################################################################
# AUTOGENERATED HYPR CONFIG.
# PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
# OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
# #######################################################################################
# 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 ### ### MONITORS ###
################ ################
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,auto monitor=,preferred,auto,auto
################### ###################
### MY PROGRAMS ### ### MY PROGRAMS ###
################### ###################
# See https://wiki.hyprland.org/Configuring/Keywords/
# Set programs that you use
$terminal = kitty $terminal = kitty
$fileManager = dolphin $fileManager = dolphin
$browser = brave $browser = brave
$menu = rofi -show drun $menu = rofi -show drun
################# #################
### AUTOSTART ### ### AUTOSTART ###
################# #################
# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:
exec = gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" # for GTK3 apps exec = gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" # for GTK3 apps
exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # for GTK4 apps 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 = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = waybar exec-once = waybar
exec-once = hypridle exec-once = hypridle
# exec-once = nm-applet & exec-once = /usr/local/bin/pypr --debug /tmp/pypr.log
exec-once = [workspace 1 silent] $terminal exec-once = [workspace 1 silent] $terminal
exec-once = [workspace 2 silent] $browser exec-once = [workspace 2 silent] $browser
# exec-once = [workspace 3 silent] flatpak run com.moonlight_stream.Moonlight
exec-once = [workspace special:magic silent] kitty
############################# #############################
### ENVIRONMENT VARIABLES ### ### ENVIRONMENT VARIABLES ###
############################# #############################
# See https://wiki.hyprland.org/Configuring/Environment-variables/
env = XCURSOR_SIZE,24 env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24 env = HYPRCURSOR_SIZE,24
env = QT_QPA_PLATFORM,wayland env = QT_QPA_PLATFORM,wayland
env = QT_QPA_PLATFORMTHEME,qt5ct # for Qt apps env = QT_QPA_PLATFORMTHEME,qt5ct # for Qt apps
##################### #####################
### LOOK AND FEEL ### ### LOOK AND FEEL ###
##################### #####################
# Refer to https://wiki.hyprland.org/Configuring/Variables/
# https://wiki.hyprland.org/Configuring/Variables/#general
general { general {
gaps_in = 2 gaps_in = 5
gaps_out = 0 gaps_out = 5
border_size = 2 border_size = 2
col.inactive_border = rgba(333333ff)
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors col.active_border = rgba(555555ff)
col.active_border = rgba(333333ff)
col.inactive_border = rgba(555555ff)
# Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = false resize_on_border = false
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false allow_tearing = false
layout = dwindle layout = dwindle
} }
# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration { decoration {
rounding = 0 rounding = 5
# Change transparency of focused and unfocused windows
active_opacity = 1.0 active_opacity = 1.0
inactive_opacity = 1.0 inactive_opacity = 1.0
dim_special = 0.7
dim_around = 0.7
shadow { shadow {
enabled = true enabled = true
range = 4 range = 4
@ -113,22 +61,19 @@ decoration {
color = rgba(1a1a1aee) color = rgba(1a1a1aee)
} }
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur { blur {
enabled = false enabled = false
size = 3 size = 3
passes = 1 passes = 1
special = true
vibrancy = 0.1696 vibrancy = 0.1696
popups = false
} }
} }
# https://wiki.hyprland.org/Configuring/Variables/#animations
animations { animations {
enabled = yes, please :) enabled = yes, please :)
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = easeOutQuint,0.23,1,0.32,1 bezier = easeOutQuint,0.23,1,0.32,1
bezier = easeInOutCubic,0.65,0.05,0.36,1 bezier = easeInOutCubic,0.65,0.05,0.36,1
bezier = linear,0,0,1,1 bezier = linear,0,0,1,1
@ -153,40 +98,32 @@ animations {
animation = workspacesOut, 1, 1.94, 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 { dwindle {
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # You probably want this preserve_split = true # You probably want this
} }
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master { master {
new_status = slave new_status = slave
mfact = 0.5 mfact = 0.5
} }
# https://wiki.hyprland.org/Configuring/Variables/#misc
misc { misc {
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :( disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
disable_splash_rendering = true
mouse_move_enables_dpms = true
vfr = true
vrr = 0
animate_manual_resizes = true
mouse_move_focuses_monitor = true
enable_swallow = true
swallow_regex = ^(wezterm)$
} }
############# #############
### INPUT ### ### INPUT ###
############# #############
# https://wiki.hyprland.org/Configuring/Variables/#input
input { input {
kb_layout = se kb_layout = se
kb_variant = kb_variant =
@ -203,34 +140,29 @@ input {
} }
} }
# https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures { gestures {
workspace_swipe = false workspace_swipe = false
} }
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
device { device {
name = epic-mouse-v1 name = epic-mouse-v1
sensitivity = -0.5 sensitivity = -0.5
} }
################### ###################
### KEYBINDINGS ### ### KEYBINDINGS ###
################### ###################
$mainMod = SHIFT ALT
# See https://wiki.hyprland.org/Configuring/Keywords/
$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, Q, exec, wlogout
bind = $mainMod, T, exec, $terminal bind = $mainMod, T, exec, [float] $terminal
bind = $mainMod, X, fullscreen
bind = $mainMod, C, killactive, bind = $mainMod, C, killactive,
bind = $mainMod, M, exit, bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager bind = $mainMod, G, exec, flatpak run com.moonlight_stream.Moonlight
bind = $mainMod, F, togglefloating, bind = $mainMod, F, togglefloating,
bind = $mainMod, D, exec, $menu bind = $mainMod, D, exec, $menu
bind = $mainMod, Z, exec, [float] kitty -e fzfmenu
bind = ALT, Tab, workspace, m+1 bind = ALT, Tab, workspace, m+1
bind = ALT SHIFT, Tab, workspace, m-1 bind = ALT SHIFT, Tab, workspace, m-1
@ -265,8 +197,7 @@ bind = $mainMod SUPER, 9, movetoworkspace, 9
bind = $mainMod SUPER, 0, movetoworkspace, 10 bind = $mainMod SUPER, 0, movetoworkspace, 10
# Example special workspace (scratchpad) # Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic bind = $mainMod, S, togglespecialworkspace, scratchpad
bind = $mainMod SUPER, S, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll # Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_down, workspace, e+1
@ -293,22 +224,47 @@ bindl = , XF86AudioPrev, exec, playerctl previous
############################## ##############################
### WINDOWS AND WORKSPACES ### ### WINDOWS AND WORKSPACES ###
############################## ##############################
# "Smart gaps" / "No gaps when only"
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/Window-Rules/ for more # Scratchpad
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules windowrulev2 = float, onworkspace:special:scratchpad
windowrulev2 = size 80% 80%, onworkspace:special:scratchpad
workspace = special:scratchpad, on-created-empty:kitty
# Example windowrule v1 # Floating windows
# windowrule = float, ^(kitty)$ windowrulev2 = float, title:^(volume control)$
windowrulev2 = dimaround, title:^(Volume Control)$
windowrulev2 = float, title:^(Helvum - Pipewire Patchbay)$
windowrulev2 = dimaround, title:^(Helvum - Pipewire Patchbay)$
# Example windowrule v2 # Discord/Moonlight PiP
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ windowrulev2 = opacity 1.0 0.7, class:^(.*Brave.*)$, floating:1
windowrulev2 = float,title:^(Volume Control)$ windowrulev2 = size 450 253, class:^(.*Brave.*)$, floating:1
windowrulev2 = float,title:^(Helvum - Pipewire Patchbay)$ windowrulev2 = move 100%-w-20 50+w+20, class:^(.*Brave.*)$, floating:1
# windowrulev2 = float,class:(com.moonlight_stream.moonlight),title:(moonlight) windowrulev2 = workspace 3, class:^(.*Brave.*)$, floating:1
# windowrulev2 = tile,class:(com.moonlight_stream.moonlight),title:(moonlight) windowrulev2 = opacity 1.0 0.7, initialTitle:^(Discord Popout)$
windowrulev2 = float, initialTitle:^(Discord Popout)$
windowrulev2 = size 450 253, initialTitle:^(Discord Popout)$
windowrulev2 = move 100%-w-20 50, initialTitle:^(Discord Popout)$
windowrulev2 = workspace 3, initialTitle:^(Discord Popout)$
#Misc
layerrule = dimaround, rofi
# Workspace definitions
windowrulev2 = workspace 3, class:^(.*moonlight.*)$
windowrulev2 = workspace 2, initialTitle:^(vesktop)$
windowrulev2 = size 1064 712, initialTitle:^(vesktop)$
# Ignore maximize requests from apps. You'll probably like this. # Ignore maximize requests from apps. You'll probably like this.
windowrulev2 = suppressevent maximize, class:.* windowrulev2 = suppressevent maximize, class:.*
# Fix some dragging issues with XWayland # Fix some dragging issues with XWayland
windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0

View File

@ -771,7 +771,7 @@ copy_on_select no
#: Terminal bell {{{ #: Terminal bell {{{
# enable_audio_bell yes enable_audio_bell no
#: The audio bell. Useful to disable it in environments that require #: The audio bell. Useful to disable it in environments that require
#: silence. #: silence.
@ -1026,7 +1026,7 @@ enabled_layouts Tall
#: insensitive, from the set 0-9A-Z\-=[];',./\\`. Specify your #: insensitive, from the set 0-9A-Z\-=[];',./\\`. Specify your
#: preference as a string of characters. #: preference as a string of characters.
# confirm_os_window_close -1 confirm_os_window_close -1
#: Ask for confirmation when closing an OS window or a tab with at #: Ask for confirmation when closing an OS window or a tab with at
#: least this number of kitty windows in it by window manager (e.g. #: least this number of kitty windows in it by window manager (e.g.

View File

@ -20,6 +20,7 @@
"modules-left": [ "modules-left": [
"hyprland/workspaces", "hyprland/workspaces",
"hyprland/window",
], ],
"modules-center": [ "modules-center": [
"clock", "clock",
@ -63,7 +64,7 @@
"cpu": { "cpu": {
"interval": 5, "interval": 5,
"format": "CPU:{usage:02}%", "format": "CPU:{usage:02}% {avg_frequency}Ghz",
"states": { "states": {
"warning": 70, "warning": 70,
"critical": 90 "critical": 90

View File

@ -68,7 +68,8 @@ ln -sf ~/code_server/gitconfig ~/.gitconfig
# Install hyprland # Install hyprland
printf -- '\033[33m Installing hyprland\n\033[37m' printf -- '\033[33m Installing hyprland\n\033[37m'
sudo pacman --noconfirm --needed -S plymouth dracut dunst hypridle hyprland hyprlock polkit-gnome xorg-xhost gnome-keyring qt5ct qt6ct gnome-themes-extra qt5-wayland qt6-wayland lxappearance sudo pacman --noconfirm --needed -S plymouth dracut dunst hypridle hyprland hyprlock xdg-desktop-portal-hyprland polkit-gnome xorg-xhost gnome-keyring qt5ct qt6ct gnome-themes-extra qt5-wayland qt6-wayland lxappearance
yay --noconfirm -S --needed --aur adwaita-qt5-git yay --noconfirm -S --needed --aur adwaita-qt5-git
yay --noconfirm -S --needed --aur adwaita-qt6-git yay --noconfirm -S --needed --aur adwaita-qt6-git
yay --noconfirm -S --needed --aur wlogout yay --noconfirm -S --needed --aur wlogout
@ -281,6 +282,10 @@ printf -- '\033[33m Installing starship\n\033[37m'
cargo install starship --locked cargo install starship --locked
ln -sf ~/code_server/config/starship.toml ~/.config/starship.toml ln -sf ~/code_server/config/starship.toml ~/.config/starship.toml
# Install Discord (Vesktop)
printf -- '\033[33m Installing Discord (Vesktop)\n\033[37m'
flatpak install -y flathub dev.vencord.Vesktop
# Install Krita # Install Krita
printf -- '\033[33m Installing Krita\n\033[37m' printf -- '\033[33m Installing Krita\n\033[37m'
flatpak install -y flathub org.kde.krita flatpak install -y flathub org.kde.krita