mirror of
https://github.com/morten-olsen/nixos-config.git
synced 2026-02-08 00:36:27 +01:00
update
This commit is contained in:
62
user/programs/hyprland/files/hypr/binds.conf
Normal file
62
user/programs/hyprland/files/hypr/binds.conf
Normal file
@@ -0,0 +1,62 @@
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
||||
$mainMod = SUPER
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod SHIFT, escape, exec, systemctl suspend
|
||||
bind = $mainMod, return, exec, kitty
|
||||
bind = $mainMod, d, exec, wofi --show drun
|
||||
bind = $mainMod, v, exec, pavucontrol
|
||||
bind=SUPER,Q,killactive,
|
||||
bind=SUPERCONTROL,Q,exec,hyprctl kill
|
||||
bind=SUPER,F,fullscreen
|
||||
bind = $mainMod, M, exit,
|
||||
bind = $mainMod SHIFT, return, exec, flatpak run org.mozilla.firefox
|
||||
bind = $mainMod, t, togglefloating,
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, h, movefocus, l
|
||||
bind = $mainMod, l, movefocus, r
|
||||
bind = $mainMod, k, movefocus, u
|
||||
bind = $mainMod, j, movefocus, 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
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
# Audio controls
|
||||
bind=,XF86AudioMute,exec,~/.config/hypr/scripts/volume.sh mute
|
||||
bind=,XF86AudioLowerVolume,exec,~/.config/hypr/scripts/volume.sh down
|
||||
bind=,XF86AudioRaiseVolume,exec,~/.config/hypr/scripts/volume.sh up
|
||||
bind=,XF86AudioMicMute,exec,pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
|
||||
# Display brightness
|
||||
bindle=,XF86MonBrightnessUp,exec,~/.config/hypr/scripts/brightness.sh up # increase screen brightness
|
||||
bindle=,XF86MonBrightnessDown,exec,~/.config/hypr/scripts/brightness.sh down # decrease screen brightnes
|
||||
11
user/programs/hyprland/files/hypr/exec.conf
Normal file
11
user/programs/hyprland/files/hypr/exec.conf
Normal file
@@ -0,0 +1,11 @@
|
||||
exec=mako
|
||||
exec-once=avizo-service
|
||||
exec-once=redshift -c ~/.config/redshift/config
|
||||
exec-once=kanshi
|
||||
exec-once=libinput-gestures
|
||||
exec-once=hyprpaper
|
||||
exec-once=~/.config/hypr/scripts/screensharing.sh
|
||||
exec-once=~/.config/hypr/scripts/idle.sh
|
||||
exec-once=~/.config/hypr/scripts/eww.sh
|
||||
exec-once /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
|
||||
74
user/programs/hyprland/files/hypr/general.conf
Normal file
74
user/programs/hyprland/files/hypr/general.conf
Normal file
@@ -0,0 +1,74 @@
|
||||
general {
|
||||
sensitivity=1.00
|
||||
apply_sens_to_raw=1
|
||||
cursor_inactive_timeout=5
|
||||
layout=dwindle
|
||||
border_size=0
|
||||
col.active_border=0xffc0392b
|
||||
col.inactive_border=0x00292a37
|
||||
}
|
||||
|
||||
decoration {
|
||||
rounding=4
|
||||
#blur=1
|
||||
inactive_opacity = 0.8
|
||||
drop_shadow=0
|
||||
shadow_range=20
|
||||
col.shadow=0xffb072d1
|
||||
dim_inactive=1
|
||||
dim_strength=0.6
|
||||
}
|
||||
|
||||
gestures {
|
||||
workspace_swipe=1
|
||||
workspace_swipe_distance=400
|
||||
workspace_swipe_invert=1
|
||||
workspace_swipe_min_speed_to_force=30
|
||||
workspace_swipe_cancel_ratio=0.5
|
||||
workspace_swipe_create_new=0
|
||||
workspace_swipe_forever=1
|
||||
}
|
||||
|
||||
#Decoration section in theme file
|
||||
blurls=lockscreen
|
||||
|
||||
bezier=slow,0,0.85,0.3,1
|
||||
bezier=overshot,0.7,0.6,0.1,1.1
|
||||
bezier=bounce,1,1.6,0.1,0.85
|
||||
bezier=slingshot,1,-1,0.15,1.25
|
||||
bezier=nice,0,6.9,0.5,-4.20
|
||||
|
||||
animations {
|
||||
enabled=1
|
||||
animation=windows,1,4,overshot,slide
|
||||
animation=border,1,20,default
|
||||
animation=fade,1,5,overshot
|
||||
animation=workspaces,1,3,overshot,slidevert
|
||||
}
|
||||
|
||||
dwindle {
|
||||
pseudotile=0 # enable pseudotiling on dwindle
|
||||
}
|
||||
|
||||
master {
|
||||
new_is_master=0
|
||||
new_on_top=0
|
||||
}
|
||||
|
||||
binds {
|
||||
workspace_back_and_forth=1
|
||||
allow_workspace_cycles=1
|
||||
pass_mouse_when_bound=0
|
||||
}
|
||||
|
||||
misc {
|
||||
#no_vfr=0
|
||||
enable_swallow=1
|
||||
swallow_regex=^(foot:kitty:Alacritty)$
|
||||
no_direct_scanout=1
|
||||
}
|
||||
|
||||
windowrule=float,pavucontrol
|
||||
windowrule=float,title:^(Firefox — Sharing Indicator)$
|
||||
windowrule=move 95% 95%,title:^(Firefox — Sharing Indicator)$
|
||||
windowrule=nofullscreenrequest,title:^(Firefox — Sharing Indicator)$
|
||||
18
user/programs/hyprland/files/hypr/hyprland.conf
Normal file
18
user/programs/hyprland/files/hypr/hyprland.conf
Normal file
@@ -0,0 +1,18 @@
|
||||
monitor=,preferred,auto,auto
|
||||
monitor=DP-2,addreserved,0,0,50,0
|
||||
monitor=eDP-1,addreserved,0,0,50,0
|
||||
monitor=DP-2,preferred,auto,1
|
||||
monitor=DP-2,preferred,auto,1
|
||||
|
||||
#55a75e044c80
|
||||
|
||||
bindl=,switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable"
|
||||
bindl=,switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1, prefered, auto, 1"
|
||||
|
||||
workspace=eDP-1,1
|
||||
workspace=DP-2,9
|
||||
|
||||
source=~/.config/hypr/general.conf
|
||||
source=~/.config/hypr/input.conf
|
||||
source=~/.config/hypr/exec.conf
|
||||
source=~/.config/hypr/binds.conf
|
||||
3
user/programs/hyprland/files/hypr/hyprpaper.conf
Normal file
3
user/programs/hyprland/files/hypr/hyprpaper.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
preload = ~/wallpaper.jpg
|
||||
|
||||
wallpaper = ,~/wallpaper.jpg
|
||||
24
user/programs/hyprland/files/hypr/input.conf
Normal file
24
user/programs/hyprland/files/hypr/input.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
input {
|
||||
kb_layout = us
|
||||
kb_variant =
|
||||
kb_model =
|
||||
kb_options = caps:swapescape
|
||||
kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
touchpad {
|
||||
disable_while_typing=1
|
||||
natural_scroll=1
|
||||
clickfinger_behavior=1
|
||||
middle_button_emulation=0
|
||||
tap-to-click=1
|
||||
}
|
||||
|
||||
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||
}
|
||||
|
||||
device:at-translated-set-2-keyboard {
|
||||
kb_layout = dk
|
||||
kb_variant = nodeadkeys
|
||||
}
|
||||
14
user/programs/hyprland/files/hypr/scripts/brightness.sh
Executable file
14
user/programs/hyprland/files/hypr/scripts/brightness.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
down() {
|
||||
brightnessctl s '10%-'
|
||||
}
|
||||
|
||||
up() {
|
||||
brightnessctl s +10%
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
up) up;;
|
||||
down) down;;
|
||||
esac
|
||||
4
user/programs/hyprland/files/hypr/scripts/eww.sh
Executable file
4
user/programs/hyprland/files/hypr/scripts/eww.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
eww daemon
|
||||
eww open bar
|
||||
5
user/programs/hyprland/files/hypr/scripts/idle.sh
Executable file
5
user/programs/hyprland/files/hypr/scripts/idle.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
swayidle -w \
|
||||
before-sleep 'loginctl lock-session $XDG_SESSION_ID' \
|
||||
lock '~/.config/hypr/scripts/lock.sh'
|
||||
16
user/programs/hyprland/files/hypr/scripts/lock.sh
Executable file
16
user/programs/hyprland/files/hypr/scripts/lock.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
swaylock \
|
||||
--screenshots \
|
||||
--clock \
|
||||
--indicator-radius 200 \
|
||||
--indicator-thickness 8 \
|
||||
--datestr "%a %e.%m.%Y" --timestr "%k:%M" \
|
||||
--effect-scale 1 \
|
||||
--effect-blur 7x7 \
|
||||
--ring-color 000000 \
|
||||
--key-hl-color 880033 \
|
||||
--line-color 00000000 \
|
||||
--inside-color 00000066 \
|
||||
--separator-color 00000000 \
|
||||
--fade-in 0.6
|
||||
#--effect-vignette 0.5:0.5 \
|
||||
8
user/programs/hyprland/files/hypr/scripts/screensharing.sh
Executable file
8
user/programs/hyprland/files/hypr/scripts/screensharing.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
sleep 1
|
||||
killall xdg-desktop-portal-hyprland
|
||||
killall xdg-desktop-portal-wlr
|
||||
killall xdg-desktop-portal
|
||||
/usr/libexec/xdg-desktop-portal-hyprland &
|
||||
sleep 2
|
||||
/usr/lib/xdg-desktop-portal &
|
||||
36
user/programs/hyprland/files/hypr/scripts/volume.sh
Executable file
36
user/programs/hyprland/files/hypr/scripts/volume.sh
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
down() {
|
||||
pamixer -u
|
||||
pamixer -d 5
|
||||
volume=$(pamixer --get-volume)
|
||||
[ $volume -gt 0 ] && volume=`expr $volume`
|
||||
prec=`echo "scale=2; $volume / 100" | bc`
|
||||
avizo-client --progress=$prec --time=0.5 --background="#222" --foreground="#f39c12"
|
||||
}
|
||||
|
||||
up() {
|
||||
pamixer -u
|
||||
pamixer -i 5
|
||||
volume=$(pamixer --get-volume)
|
||||
[ $volume -lt 100 ] && volume=`expr $volume`
|
||||
prec=`echo "scale=2; $volume / 100" | bc`
|
||||
avizo-client --progress=$prec --time=1
|
||||
}
|
||||
|
||||
mute() {
|
||||
muted="$(pamixer --get-mute)"
|
||||
if $muted; then
|
||||
pamixer -u
|
||||
notify-send "Unmuted"
|
||||
else
|
||||
pamixer -m
|
||||
notify-send "Muted"
|
||||
fi
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
up) up;;
|
||||
down) down;;
|
||||
mute) mute;;
|
||||
esac
|
||||
Reference in New Issue
Block a user