hyprland config upload

This commit is contained in:
Sergio Laín 2023-07-04 17:34:58 +02:00
parent 8458b1a86e
commit b54313120b
25 changed files with 411 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -0,0 +1,49 @@
# Monitors Config (Change it to fit yours)
monitor=DP-3,2560x1080@75,0x0,1
monitor=DP-1,2560x1080@75,0x1080,1
monitor=HDMI-A-1,1920x1080@75,2560x240,1
monitor=HDMI-A-1,transform,3
# Mouse and keyboard Config
input {
kb_layout=es
kb_model=
kb_options=compose:rctrl,level3:ralt_switch
kb_rules=
follow_mouse=1
numlock_by_default=true
touchpad {
natural_scroll=yes
disable_while_typing=true
scroll_factor=1
}
}
misc {
always_follow_on_dnd=true
disable_hyprland_logo=true
vrr = 1
animate_manual_resizes=false
animate_mouse_windowdragging=false
enable_swallow=true
}
dwindle {
pseudotile = yes # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # You probably want this
pseudotile = true # Enable pseudotiling on dwindle
force_split = 0
preserve_split = true
}
master {
}
gestures {
workspace_swipe=yes
workspace_swipe_fingers=4
}

10
.config/hypr/hyprland.conf Executable file
View file

@ -0,0 +1,10 @@
# Autostart
exec-once=$HOME/.config/hypr/scripts/autostart
# Keybinds and Configs (change to whichever config you want to use)
source=~/.config/hypr/keybinds/binds.conf
source=~/.config/hypr/configs/luna.conf
# Themes (change to whichever theme you want to use)
source=~/.config/hypr/themes/luna/theme.conf
source=~/.config/hypr/themes/luna/rules.conf

View file

@ -0,0 +1,120 @@
# Mouse binds
bindm=SUPER,mouse:272,movewindow
bindm=SUPER,mouse:273,resizewindow
# Basic keybinds
bind=SUPER,Q,killactive,
bind=SUPERCTRL, R, exec, pkill waybar || waybar
bind=SUPERCTRL,M,exit,
bind=SUPER,A,togglefloating,
bind=SUPER,P,pseudo,
bind=SUPER,F,fullscreen,0
# Applications
bind=SUPER,90,exec,thunar
bind=SUPER,91,exec,librewolf
bind=SUPER,22,exec,/usr/bin/codium --enable-features=UseOzonePlatform --ozone-platform=wayland --no-sandbox --unity-launch
bind=SUPER,RETURN,exec,kitty
# Launchers
bind=SUPER,space,exec, wofi
bind=SUPER, 23, exec, ~/.config/rofi/launchers/type-5/launcher.sh
# Screenshotting
bind=,Print,exec,~/.config/hypr/scripts/screenshot
# Logout menu
bind=SUPER, 148, exec, wleave
# Color picker
bind=SUPER,Print,exec,hyprpicker -a && notify-send -t 4000 "$(wl-paste)"
## Windows
## Focusing on windows
bind=SUPER,left,movefocus,l
bind=SUPER,right,movefocus,r
bind=SUPER,up,movefocus,u
bind=SUPER,down,movefocus,d
# Vim-keybinds
bind=SUPER,h,movefocus,l
bind=SUPER,l,movefocus,r
bind=SUPER,k,movefocus,u
bind=SUPER,j,movefocus,d
## Moving windows
bind=SUPERSHIFT,left,movewindow,l
bind=SUPERSHIFT,right,movewindow,r
bind=SUPERSHIFT,up,movewindow,u
bind=SUPERSHIFT,down,movewindow,d
# Vim-keybinds
bind=SUPERSHIFT,h,movewindow,l
bind=SUPERSHIFT,l,movewindow,r
bind=SUPERSHIFT,k,movewindow,u
bind=SUPERSHIFT,j,movewindow,d
## Workspaces
# Focusing other workspaces
bind=SUPER,1,exec,hyprsome workspace 1
bind=SUPER,2,exec,hyprsome workspace 2
bind=SUPER,3,exec,hyprsome workspace 3
bind=SUPER,4,exec,hyprsome workspace 4
bind=SUPER,5,exec,hyprsome workspace 5
bind=SUPER,6,exec,hyprsome workspace 6
bind=SUPER,7,exec,hyprsome workspace 7
bind=SUPER,8,exec,hyprsome workspace 8
bind=SUPER,9,exec,hyprsome workspace 9
bind=SUPER,0,exec,hyprsome workspace 10
# Moving windows to other workspaces
bind=SUPERSHIFT,1,exec,hyprsome move 1
bind=SUPERSHIFT,2,exec,hyprsome move 2
bind=SUPERSHIFT,3,exec,hyprsome move 3
bind=SUPERSHIFT,4,exec,hyprsome move 4
bind=SUPERSHIFT,5,exec,hyprsome move 5
bind=SUPERSHIFT,6,exec,hyprsome move 6
bind=SUPERSHIFT,7,exec,hyprsome move 7
bind=SUPERSHIFT,8,exec,hyprsome move 8
bind=SUPERSHIFT,9,exec,hyprsome move 9
bind=SUPERSHIFT,0,exec,hyprsome move 10
# Moving windows to other workspaces (silent)
bind=SUPERALT,1,exec,hyprsome movetoworkspacesilent 1
bind=SUPERALT,2,exec,hyprsome movetoworkspacesilent 2
bind=SUPERALT,3,exec,hyprsome movetoworkspacesilent 3
bind=SUPERALT,4,exec,hyprsome movetoworkspacesilent 4
bind=SUPERALT,5,exec,hyprsome movetoworkspacesilent 5
bind=SUPERALT,6,exec,hyprsome movetoworkspacesilent 6
bind=SUPERALT,7,exec,hyprsome movetoworkspacesilent 7
bind=SUPERALT,8,exec,hyprsome movetoworkspacesilent 8
bind=SUPERALT,9,exec,hyprsome movetoworkspacesilent 9
bind=SUPERALT,0,exec,hyprsome movetoworkspacesilent 10
# Moving to other wokspace with mouse control
bind=SUPER,mouse_down,workspace,m-1
bind=SUPER,mouse_up,workspace,m+1
# Moving to other wokspace with keyboard
bind=SUPERCTRL,LEFT,workspace,m-1
bind=SUPERCTRL,RIGHT,workspace,m+1
# Group control
bind =SUPER, W, togglesplit
bind=SUPER,S,togglegroup
bind=ALT,tab,changegroupactive
## Audio
#bind=,XF86AudioPlay,exec,playerctl play-pause
bind=SUPERCTRL,mouse:274,exec,playerctl play-pause
#bind=,XF86AudioPrev,exec,playerctl previous
bind=SUPERCTRL,mouse_up,exec,playerctl previous
#bind=,XF86AudioNext,exec,playerctl next
bind=SUPERCTRL,mouse_down,exec,playerctl next
bindl=,XF86AudioMedia,exec,playerctl play-pause
bindl=,XF86AudioStop,exec,playerctl stop
bindle=,XF86AudioRaiseVolume,exec,swayosd --output-volume raise
bindle=,XF86AudioLowerVolume,exec,swayosd --output-volume lower
bindle=,XF86AudioMute,exec,swayosd --output-volume mute-toggle
bindle=,XF86AudioMicMute,exec,exec swayosd --input-volume mute-toggle

45
.config/hypr/scripts/autostart Executable file
View file

@ -0,0 +1,45 @@
#!/usr/bin/bash
# variables
config=$HOME/.config/hypr
scripts=$config/scripts
# Notification Daemon
swaync &
# Bar
waybar &
# OSD Window
swayosd &
# Automounter for removable media
udiskie &
# Wallpaper
$scripts/wallpaper &
# Idle daemon to screen lock
/home/matt/.config/sway/idle.sh &
# Clipboard
wl-clip-persist --clipboard regular &
wl-paste --watch cliphist store &
# Gnome polkit authentication
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
# umm is this unnecessary?
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
# Launch autostart apps
dex -a -s ~/.config/autostart/ & # Easyeffects and thunderbird
/docs/Documentos/Scripts-Presets/System/openWebServer.sh & # Miniserver for serving a startpage
# Launch tui monitors for cpu and gpu
kitty --class btop-kitty btop &
kitty --class nvtop-kitty nvtop &
# Other
xrdb -merge ~/.Xresources
$scripts/launch_portals &

View file

@ -0,0 +1,7 @@
#!/bin/bash
sleep 4
killall xdg-desktop-portal-wlr
killall xdg-desktop-portal
/usr/lib/xdg-desktop-portal-hyprland &
sleep 4
/usr/lib/xdg-desktop-portal &

View file

@ -0,0 +1,37 @@
#!/usr/bin/python
import subprocess
import time
from colour import Color
gradient = [
"#c6a0f6",
"#b7bdf8",
"#8aadf4",
]
def color_range(*args):
l = []
for i,color in enumerate(args):
if i == len(args)-1:
break
l.extend(color.range_to(args[i+1], 25))
return l
def rgb_to_hex(r,g,b):
return '%02x%02x%02x' % (r,g,b)
def set_color(r,g,b):
print(rgb_to_hex(r,g,b))
subprocess.run(f"hyprctl keyword general:col.active_border 0xff{rgb_to_hex(r,g,b)}".split())
#subprocess.run(f"hyprctl keyword general:col.inactive_border 0x66{rgb_to_hex(r,g,b)}".split())
colors = color_range(*[Color(i) for i in gradient])
while 1:
for col in colors:
set_color(int(col.red*255), int(col.green*255), int(col.blue*255))
time.sleep(0.05)
for col in colors[::-1]:
set_color(int(col.red*255), int(col.green*255), int(col.blue*255))
time.sleep(0.05)

View file

@ -0,0 +1,3 @@
#!/usr/bin/bash
grim -g "$(slurp)" - | swappy -f - -o ~/Imagenes/Capturas/PC/screenshot$(date +%s).png

10
.config/hypr/scripts/wallpaper Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
# Change the path of the image to yours
function load_wp(){
swww img --transition-type wipe --transition-pos top-right --transition-duration 3.8 --transition-step 255 --transition-fps 75 ~/Imagenes/Diseños-FanArt-Wallpapers/Wallpapers/Landscapes/resul222t.png
}
swww init
load_wp

View file

@ -0,0 +1,48 @@
## Workspaces
windowrulev2 = workspace 22 silent,class:^(discord)$
windowrulev2 = workspace 21,class:^(Spotify)$
windowrulev2 = workspace 21,class:^(YouTube Music)$
windowrulev2 = workspace 18,class:^(steam)$
windowrulev2 = workspace 16,class:^(pavucontrol)$
windowrulev2 = workspace 16,class:^(com.github.wwmm.easyeffects)$
windowrulev2 = workspace 12,class:^(GitKraken)$
windowrulev2 = workspace 26,class:^(nm-connection-editor)$
windowrulev2 = workspace 2,class:^(VSCodium)$
windowrulev2 = workspace 2,class:^(codium-url-handler)$
windowrulev2 = workspace 2,class:^(jetbrains-idea)$
windowrulev2 = workspace 2,class:^(jetbrains-studio)$
windowrulev2 = workspace 19,class:^(virt-manager)$
windowrulev2 = workspace 23 silent,class:^(thunderbird)$
windowrulev2 = workspace 18,class:^(com-atlauncher-App)$
windowrulev2 = workspace 18,class:^(heroic)$
windowrulev2 = workspace 14,class:^(Thunar)$
windowrulev2 = workspace 14,class:^(thunar)$
windowrulev2 = workspace 8,class:^(cemu)$
windowrulev2 = workspace 8,class:^(info.cemu.Cemu)$
windowrulev2 = workspace 8,class:^(dolphin-emu)$
windowrulev2 = workspace 24 silent,class:^(btop-kitty)$
windowrulev2 = workspace 24 silent,class:^(nvtop-kitty)$
windowrulev2 = workspace 10,class:^(obsidian)$
windowrulev2 = workspace 10,class:^(libreoffice.*)$
windowrulev2 = workspace 10,class:^(soffice)$
windowrulev2 = workspace 17,class:^(com.obsproject.Studio)$
windowrulev2 = workspace 6,class:^(vital.exe)$
windowrulev2 = workspace 6,class:^(fl64.exe)$
windowrulev2 = workspace 8,class:^(Ryujinx)$
windowrulev2 = workspace 8,class:^(.*steam_app.*)$
windowrulev2 = workspace 5,class:^(photoshop.exe)$
windowrulev2 = workspace 5,class:^(pinta)$
windowrulev2 = workspace 5,class:^(Geeqie)$
## Float
windowrule = float, xfce-polkit
windowrule = float, galculator
windowrule = float, title:Open File
windowrule = float, title:branchdialog
windowrule = float, nwg-look
windowrule = float, nm-connection-editor
## Other
windowrulev2 = center,class:^(kitty)$
windowrulev2 = opacity 0.80, class:^(Rofi)$
windowrule = animation slide, Rofi

View file

@ -0,0 +1,82 @@
# Did this to let the workspaces behave as awesome workspaces
workspace=DP-1,1
workspace=DP-1,2
workspace=DP-1,3
workspace=DP-1,4
workspace=DP-1,5
workspace=DP-1,6
workspace=DP-1,7
workspace=DP-1,8
workspace=DP-1,9
workspace=DP-1,10
workspace=DP-3,11
workspace=DP-3,12
workspace=DP-3,13
workspace=DP-3,14
workspace=DP-3,15
workspace=DP-3,16
workspace=DP-3,17
workspace=DP-3,18
workspace=DP-3,19
workspace=DP-3,20
workspace=HDMI-A-1,21
workspace=HDMI-A-1,22
workspace=HDMI-A-1,23
workspace=HDMI-A-1,24
workspace=HDMI-A-1,25
workspace=HDMI-A-1,26
workspace=HDMI-A-1,27
workspace=HDMI-A-1,28
workspace=HDMI-A-1,29
workspace=HDMI-A-1,30
general {
border_size=2
col.inactive_border=rgba(c6d0f599)
col.active_border = rgba(c6d0f5ee) rgba(b7bdf888) rgba(b7bdf888) rgba(c6d0f5ee) 45deg
gaps_in=10
gaps_out=20
}
decoration {
rounding=15
multisample_edges = true
active_opacity=0.95
inactive_opacity=0.9
blur = yes
blur_size = 5
blur_passes = 4
blur_ignore_opacity = true
blur_new_optimizations = true
blur_xray = true
drop_shadow=true
shadow_range=15
col.shadow=rgba(b7bdf888)
col.shadow_inactive=rgba(000000ff)
dim_inactive = false
dim_strength = 0.05
shadow_render_power=2
shadow_offset= 9 9 1 1
}
animations {
enabled=1
bezier = default, 0.05, 0.9, 0.1, 1.05
bezier=overshot,0.13,0.99,0.29,1.1
animation=windows,1,5,overshot,slide
animation=windowsOut, 1, 5, overshot, slide
animation=windowsMove,1,5,overshot,slide
animation=fadeIn,1,10,default
animation=fadeOut,1,10,default
animation=workspaces,1,6,overshot,slide
}