1
0

Hyprland stuff and some new scripts

This commit is contained in:
2025-04-03 18:42:13 +02:00
parent 7d010f25de
commit 73bb89330a
15 changed files with 463 additions and 11 deletions

View File

@ -1,13 +1,16 @@
# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:
exec-once = hyprpaper
exec-once = waybar
exec-once = swaync
exec-once = ulauncher
exec-once = swaync -s ~/.config/swaync/themes/rose-pine-moon.css
exec-once = systemctl --user start hyprpolkitagent
exec-once = /home/luna/myHome/BitfocusCompanion/companion/companion-launcher
exec-once = vorta
exec-once = vesktop
exec-once = steam
exec-once = spotify
# exec-once = $terminal
# exec-once = nm-applet &

View File

@ -4,3 +4,4 @@ env = XCURSOR_THEME,RosePine
env = XCURSOR_SIZE,24
env = HYPRCURSOR_THEME,RosePine
env = HYPRCURSOR_SIZE,24
env = GKT_USE_PORTAL,1

View File

@ -0,0 +1,2 @@
preload = /home/luna/myHome/Pictures/Wallpapers/Aesthetic/something-beautiful-in-nature.jpg
wallpaper = , /home/luna/myHome/Pictures/Wallpapers/Aesthetic/something-beautiful-in-nature.jpg

View File

@ -12,6 +12,7 @@ bind = $mod, space, togglefloating,
bind = $mod, D, exec, $menu
bind = $mod, P, pseudo, # dwindle
bind = $mod, J, togglesplit, # dwindle
bind = $mod, F, fullscreen
bind = $mod SHIFT, R, exec, killall waybar && waybar &
# Move focus with mod + arrow keys

View File

@ -99,6 +99,6 @@ 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. :(
force_default_wallpaper = 0 # 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. :(
}

View File

@ -2,10 +2,16 @@
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
windowrule = workspace 8, class:vesktop
windowrule = float, class:vesktop
windowrule = size 43% 1380, class:vesktop
windowrule = move 100%-w-10, class:vesktop
windowrule = noinitialfocus, class:vesktop
# windowrule = float, class:vesktop
windowrule = size 1098 1376, class:vesktop
windowrule = move 1450 1132, class:vesktop
windowrule = workspace 8, class:Spotify
windowrule = noinitialfocus, class:Spotify
# windowrule = float, class:Spotify
windowrule = size 1426 1376, class:Spotify
windowrule = move 12 1132, class:Spotify
windowrule = workspace 4, class:steam
windowrule = noinitialfocus, class:steam

View File

@ -0,0 +1,74 @@
{
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "right",
"positionY": "top",
"layer": "overlay",
"control-center-layer": "top",
"layer-shell": true,
"cssPriority": "application",
"control-center-margin-top": 0,
"control-center-margin-bottom": 0,
"control-center-margin-right": 0,
"control-center-margin-left": 0,
"notification-2fa-action": true,
"notification-inline-replies": false,
"notification-icon-size": 64,
"notification-body-image-height": 100,
"notification-body-image-width": 200,
"timeout": 2,
"timeout-low": 2,
"timeout-critical": 5,
"fit-to-screen": true,
"relative-timestamps": true,
"control-center-width": 500,
"control-center-height": 600,
"notification-window-width": 500,
"keyboard-shortcuts": true,
"image-visibility": "when-available",
"transition-time": 200,
"hide-on-clear": true,
"hide-on-action": true,
"script-fail-notify": true,
"scripts": {
"example-script": {
"exec": "echo 'Do something...'",
"urgency": "Normal"
},
"example-action-script": {
"exec": "echo 'Do something actionable!'",
"urgency": "Normal",
"run-on": "action"
}
},
"notification-visibility": {
"example-name": {
"state": "muted",
"urgency": "Low",
"app-name": "Spotify"
}
},
"widgets": ["inhibitors", "title", "dnd", "notifications"],
"widget-config": {
"title": {
"text": "Notifications",
"clear-all-button": true,
"button-text": "Clear All"
},
"dnd": {
"text": "Do Not Disturb"
},
"label": {
"max-lines": 5,
"text": "Label Text"
},
"buttons-grid": {
"actions": [
{
"label": "FFFFF",
"type": "toggle",
"active": true
}
]
}
}
}

View File

@ -0,0 +1,313 @@
* {
all: unset;
font-family: FiraCode Nerd Font;
transition: 0.3s;
font-size: 1.2rem;
}
.floating-notifications.background .notification-row {
padding: 1rem;
}
.floating-notifications.background .notification-row .notification-background {
border-radius: 0.5rem;
background-color: #232136;
color: #e0def4;
border: 1px solid #6e6a86;
}
.floating-notifications.background
.notification-row
.notification-background
.notification {
padding: 0.5rem;
border-radius: 0.5rem;
}
.floating-notifications.background
.notification-row
.notification-background
.notification.critical {
border: 1px solid #eb6f92;
}
.floating-notifications.background
.notification-row
.notification-background
.notification
.notification-content
.summary {
margin: 0.5rem;
color: #e0def4;
font-weight: bold;
}
.floating-notifications.background
.notification-row
.notification-background
.notification
.notification-content
.body {
margin: 0.5rem;
color: #908caa;
}
.floating-notifications.background
.notification-row
.notification-background
.notification
> *:last-child
> * {
min-height: 3rem;
}
.floating-notifications.background
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action {
border-radius: 0.5rem;
color: #e0def4;
background-color: #2a273f;
border: 1px solid #6e6a86;
}
.floating-notifications.background
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action:hover {
background-color: #393552;
}
.floating-notifications.background
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action:active {
background-color: #6e6a86;
}
.floating-notifications.background
.notification-row
.notification-background
.close-button {
margin: 0.5rem;
padding: 0.25rem;
border-radius: 0.5rem;
color: #e0def4;
background-color: #eb6f92;
}
.floating-notifications.background
.notification-row
.notification-background
.close-button:hover {
color: #232136;
}
.floating-notifications.background
.notification-row
.notification-background
.close-button:active {
background-color: #ea9a97;
}
.control-center {
border-radius: 0.5rem;
margin: 1rem;
background-color: #232136;
color: #e0def4;
padding: 1rem;
border: 1px solid #6e6a86;
}
.control-center .widget-title {
color: #ea9a97;
font-weight: bold;
}
.control-center .widget-title button {
border-radius: 0.5rem;
color: #e0def4;
background-color: #2a273f;
border: 1px solid #6e6a86;
padding: 0.5rem;
}
.control-center .widget-title button:hover {
background-color: #393552;
}
.control-center .widget-title button:active {
background-color: #6e6a86;
}
.control-center .notification-row .notification-background {
border-radius: 0.5rem;
margin: 0.5rem 0;
background-color: #2a273f;
color: #e0def4;
border: 1px solid #6e6a86;
}
.control-center .notification-row .notification-background .notification {
padding: 0.5rem;
border-radius: 0.5rem;
}
.control-center
.notification-row
.notification-background
.notification.critical {
border: 1px solid #eb6f92;
}
.control-center
.notification-row
.notification-background
.notification
.notification-content {
color: #e0def4;
}
.control-center
.notification-row
.notification-background
.notification
.notification-content
.summary {
margin: 0.5rem;
color: #e0def4;
font-weight: bold;
}
.control-center
.notification-row
.notification-background
.notification
.notification-content
.body {
margin: 0.5rem;
color: #908caa;
}
.control-center
.notification-row
.notification-background
.notification
> *:last-child
> * {
min-height: 3rem;
}
.control-center
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action {
border-radius: 0.5rem;
color: #e0def4;
background-color: #2a273f;
border: 1px solid #6e6a86;
}
.control-center
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action:hover {
background-color: #393552;
}
.control-center
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action:active {
background-color: #6e6a86;
}
.control-center .notification-row .notification-background .close-button {
margin: 0.5rem;
padding: 0.25rem;
border-radius: 0.5rem;
color: #e0def4;
background-color: #eb6f92;
}
.control-center .notification-row .notification-background .close-button:hover {
color: #232136;
}
.control-center
.notification-row
.notification-background
.close-button:active {
background-color: #ea9a97;
}
progressbar,
progress,
trough {
border-radius: 0.5rem;
}
.notification.critical progress {
background-color: #eb6f92;
}
.notification.low progress,
.notification.normal progress {
background-color: #9ccfd8;
}
trough {
background-color: #2a273f;
}
.control-center trough {
background-color: #6e6a86;
}
.control-center-dnd {
margin: 1rem 0;
border-radius: 0.5rem;
}
.control-center-dnd slider {
background: #393552;
border-radius: 0.5rem;
}
.widget-dnd {
color: #908caa;
}
.widget-dnd > switch {
border-radius: 0.5rem;
background: #393552;
border: 1px solid #6e6a86;
}
.widget-dnd > switch:checked slider {
background: #3e8fb0;
}
.widget-dnd > switch slider {
background: #6e6a86;
border-radius: 0.5rem;
margin: 0.25rem;
}

View File

@ -6,12 +6,13 @@
"modules-center": ["hyprland/window"],
"modules-right": [
"tray",
"cpu",
"memory",
"clock",
"pulseaudio",
"hyprland/language",
"custom/notification",
"tray",
"custom/power"
],
@ -101,5 +102,22 @@
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}
},
"custom/notification": {
"tooltip": false,
"format": "{icon}",
"format-icons": {
"notification": "<span foreground='red'><small><sup>⬤</sup></small></span>",
"none": " ",
"dnd-notification": "<span foreground='red'><small><sup>⬤</sup></small></span>",
"dnd-none": " "
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "sleep 0.1 && swaync-client -t -sw",
"on-click-right": "sleep 0.1 && swaync-client -d -sw",
"escape": true
}
}

View File

@ -132,6 +132,15 @@ window#waybar {
color: @gold;
}
#language {
margin: 5px 5px 2px 5px;
padding-left: 10px;
padding-right: 10px;
border-radius: 3px;
background-color: @base;
color: @foam;
}
#custom-power {
margin: 5px 5px 2px 5px;
padding-left: 10px;
@ -141,11 +150,11 @@ window#waybar {
color: @text;
}
#language {
#custom-notification {
margin: 5px 5px 2px 5px;
padding-left: 10px;
padding-right: 10px;
border-radius: 3px;
background-color: @base;
color: @foam;
color: @iris;
}

View File

@ -0,0 +1,3 @@
[preferred]
default = hyprland;gtk
org.freedesktop.impl.portal.FileChooser = lxqt

5
.zshrc
View File

@ -88,11 +88,16 @@ alias zed='zeditor'
alias chall='~/Scripts/challenges.sh'
alias backup='~/Scripts/backup.sh'
alias newpost='~/Scripts/newPost.sh'
alias editpost='~/Scripts/editPost.sh'
alias pushpost='~/Scripts/pushBlog.sh'
alias brew='echo "Remeber what happened last time. You do not want to do that."'
alias ustow='export CURRENT_PATH=$(pwd) && cd ~/myHome/Dotfiles && stow -t /home/luna . && cd $CURRENT_PATH'
alias cdBlog='export CURRENT_PATH=$(pwd) && cd ~/myHome/Projects/Blog'
# Paths
PATH="$HOME/.npm-packages/bin:$PATH"
PATH="$HOME/.bun/bin:$PATH"

1
Scripts/editPost.sh Executable file
View File

@ -0,0 +1 @@
nvim "$HOME/myHome/Projects/Blog/src/content/posts/$1.md"

7
Scripts/newPost.sh Executable file
View File

@ -0,0 +1,7 @@
CURRENT_PATH=$(pwd)
cd $HOME/myHome/Projects/Blog
pnpm new-post "$1"
cd $CURRENT_PATH

9
Scripts/pushBlog.sh Executable file
View File

@ -0,0 +1,9 @@
CURRENT_PATH=$(pwd)
cd $HOME/myHome/Projects/Blog
git add .
git commit -m "$1"
git push
cd $CURRENT_PATH