background, keybinds for moving and resizing windows, added color palett

This commit is contained in:
2025-05-13 20:22:20 +02:00
parent 1531844053
commit 6bca50db27
16 changed files with 97 additions and 13 deletions

View File

@ -0,0 +1,79 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"source": "arch_small",
"padding": {
"top": 2,
"right": 4
}
},
"display": {
"separator": " ",
"bar": {
"width": 10, // Width of percentage bars
"charElapsed": "■", // Character for elapsed portion
"charTotal": "-" // Character for total portion
},
"percent": {
"type": 3, // 1=number, 2=bar, 3=both, 9=colored number
"color": {
"green": "green",
"yellow": "light_yellow",
"red": "light_red"
}
},
"color": {
"keys": "cyan", // Key color
"title": "light_blue" // Title color
},
},
"modules": [
"break",
{
"type": "os",
"key": "{icon} "
},
{
"type": "wm",
"key": "{icon} "
},
{
"type": "uptime",
"key": "{icon} "
},
{
"type": "cpu",
"key": "{icon} ",
"format": "{name} ({cores-physical}C/{cores-logical}T) @ {freq-max}"
},
{
"type": "memory",
"key": "{icon} "
},
{
"type": "disk",
"key": "{icon} "
},
{
"type": "battery",
"key": "{icon} ",
"format": "{capacity-bar} {capacity} {time-hours}H {time-minutes}M"
},
{
"key": "{icon} ",
"type": "publicip",
"timeout": 1000
},
"break",
{
"type": "colors",
"symbol": "circle"
},
{
"type": "terminalfont",
"key": "{icon}"
},
"break",
"break"
]
}

View File

@ -0,0 +1,26 @@
#############
### INPUT ###
#############
# https://wiki.hyprland.org/Configuring/Variables/#input
input {
kb_layout = de
kb_variant = nodeadkeys
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = true
scroll_factor = 0.5
}
}
# https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures {
workspace_swipe = true
}

View File

@ -0,0 +1,86 @@
###################
### KEYBINDINGS ###
###################
# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier
# Binds apps https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod, B, exec, $browser
bind = $mainMod, Y, exec, $filemanager
bind = $mainMod, M, exec, $email
bind = $mainMod, XF86AudioMedia, exec, $powerMenu
# General binds
bind = $mainMod, Q, killactive,
#bind = $mainMod, M, exit,
bind = $mainMod, X, togglefloating,
bind = $mainMod, F, fullscreen,
bind = $mainMod, D, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, I, 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
bind = $mainMod, h, movefocus, l
bind = $mainMod, l, movefocus, r
bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d
# Resize windows
bind = $mainMod CTRL, left, resizeactive, -35 0
bind = $mainMod CTRL, right, resizeactive, 35 0
bind = $mainMod CTRL, up, resizeactive, 0 -35
bind = $mainMod CTRL, down, resizeactive, 0 35
bind = $mainMod CTRL, h, resizeactive, -35 0
bind = $mainMod CTRL, l, resizeactive, 35 0
bind = $mainMod CTRL, k, resizeactive, 0 -35
bind = $mainMod CTRL, j, resizeactive, 0 35
# Move windows
bind = $mainMod SHIFT, left, moveWindow, l
bind = $mainMod SHIFT, right, moveWindow, r
bind = $mainMod SHIFT, up, moveWindow, u
bind = $mainMod SHIFT, down, moveWindow, 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
# Laptop multimedia keys for volume and LCD brightness
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @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

View File

@ -0,0 +1,96 @@
#####################
### LOOK AND FEEL ###
#####################
# Refer to https://wiki.hyprland.org/Configuring/Variables/
# https://wiki.hyprland.org/Configuring/Variables/#general
general {
gaps_in = 5
gaps_out = 13
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 = true
# 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
rounding_power = 10
# Change transparency of focused and unfocused windows
active_opacity = 0.85
inactive_opacity = 0.85
shadow {
enabled = true
range = 4
render_power = 3
color = rgba(1a1a1aee)
}
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {
enabled = true
size = 15
passes = 3
vibrancy = 0
}
}
# 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
}
windowrules {
# Make browser not blur and have no gap
#windowrule = noblur, class:$browser
#windowrule = opaque, class:$browser
# Make app tooltip and small windows opaque
#windowrule = opaque, class=GtkMenu
#windowrule = opaque, instance=gtk-tooltip
# Smart gaps
workspace = w[tv1], gapsout:7, gapsin:0
workspace = f[1], gapsout:7, gapsin:0
windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
windowrule = bordersize 0, floating:0, onworkspace:f[1]
}

View File

@ -0,0 +1,78 @@
# https://wiki.hyprland.org/Configuring/
################
### MONITORS ###
################
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,1.566667
#monitor=,preferred,auto,2
###################
### MY PROGRAMS ###
###################
# See https://wiki.hyprland.org/Configuring/Keywords/
# Set programs that you use
$terminal = kitty
$filemanager = kitty -e yazi
$menu = wofi --show drun
$powerMenu = bash ~/.config/wofi/wofi-powermenu.sh
$browser = firefox
$email = thunderbird
#################
### AUTOSTART ###
#################
# Autostart necessary processes (like notifications daemons, status bars, etc.)
exec-once = waybar
exec-once = hyprpaper
exec-once = dunst
exec-once = [workspace 2 silent] $browser
exec-once = [workspace 1 silent] $terminal
#############################
### ENVIRONMENT VARIABLES ###
#############################
# See https://wiki.hyprland.org/Configuring/Environment-variables/
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
##############################
### WINDOWS AND WORKSPACES ###
##############################
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
# Ignore maximize requests from apps. You'll probably like this.
windowrule = suppressevent maximize, class:.*
# Fix some dragging issues with XWayland
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
###################
### OTHER STUFF ###
###################
# 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 = 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. :(
}
source = ~/.config/hypr/conf.d/*

View File

@ -0,0 +1,3 @@
preload = /home/alex/wallpapers/dune.jpg
wallpaper = eDP-1,/home/alex/wallpapers/dune.jpg

6
.config/wofi/config Normal file
View File

@ -0,0 +1,6 @@
allow_images=true
gtk-dark=true
image_size=20
width=25%
hide-scroll=true
lines=7

39
.config/wofi/style.css Normal file
View File

@ -0,0 +1,39 @@
window {
margin: 25px;
#border: 1px solid #bd93f9;
background-color: #282a36;
}
#input {
margin: 15px;
border: none;
color: #f8f8f2;
background-color: #44475a;
}
#inner-box {
margin: 15px;
border: none;
background-color: #282a36;
}
#outer-box {
margin: 5px;
border: none;
background-color: #282a36;
}
#scroll {
margin: 5px;
border: none;
}
#text {
margin: 5px;
border: none;
color: #f8f8f2;
}
#entry:selected {
background-color: #44475a;
}

17
.config/wofi/wofi-powermenu.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
entries="⇠ Logout\n⏾ Suspend\n⭮ Reboot\n⏻ Shutdown"
selected=$(echo -e $entries|wofi --width 250 --height 240 --dmenu --cache-file /dev/null | awk '{print tolower($2)}')
case $selected in
logout)
pkill -u kia;;
suspend)
exec systemctl suspend;;
reboot)
exec systemctl reboot;;
shutdown)
exec systemctl poweroff;;
# it used to be poweroff -i
esac