port hyprland config from main machine (preparations for moving to nixos)

This commit is contained in:
jacekpoz 2023-07-16 16:12:53 +02:00
parent b00861e0ae
commit 3445ce4ff6

View file

@ -13,12 +13,10 @@
extraConfig = ''
#laptop
#monitor=eDP-1,2560@1440@165,0x0,1
#workspace=eDP-1,1
#second monitor
#monitor=HDMI-A-1,2560x1440@144,2560x0,1
#workspace=HDMI-A-1,11
workspace = 1, monitor: eDP-1
workspace = 1, monitor: eDP-1, default:true
workspace = 2, monitor: eDP-1
workspace = 3, monitor: eDP-1
workspace = 4, monitor: eDP-1
@ -29,16 +27,16 @@
workspace = 9, monitor: eDP-1
workspace = 10, monitor: eDP-1
#wsbind = 11, HDMI-a-1
#wsbind = 12, HDMI-a-1
#wsbind = 13, HDMI-a-1
#wsbind = 14, HDMI-a-1
#wsbind = 15, HDMI-a-1
#wsbind = 16, HDMI-a-1
#wsbind = 17, HDMI-a-1
#wsbind = 18, HDMI-a-1
#wsbind = 19, HDMI-a-1
#wsbind = 20, HDMI-a-1
#workspace = 11, monitor: HDMI-A-1, default:true
#workspace = 12, monitor: HDMI-A-1
#workspace = 13, monitor: HDMI-A-1
#workspace = 14, monitor: HDMI-A-1
#workspace = 15, monitor: HDMI-A-1
#workspace = 16, monitor: HDMI-A-1
#workspace = 17, monitor: HDMI-A-1
#workspace = 18, monitor: HDMI-A-1
#workspace = 19, monitor: HDMI-A-1
#workspace = 20, monitor: HDMI-A-1
input {
kb_layout=pl
@ -52,6 +50,8 @@
disable_while_typing=true
}
repeat_rate = 50
repeat_delay = 250
}
general {
@ -63,10 +63,6 @@
#gaps_out=0
border_size=2
#border_size=1
col.active_border=0xFFCC241D
col.inactive_border=0xFF928374
col.group_border_active=0xFF98971A
col.group_border=0xFF928374
apply_sens_to_raw=0 # whether to apply the sensitivity to raw input (e.g. used by games where you aim using your mouse)
@ -87,7 +83,6 @@
shadow_ignore_window=1
shadow_offset= 2 4
shadow_scale=1
col.shadow=0xAF282828
}
gestures {
@ -123,6 +118,7 @@
}
windowrulev2 = float, class:^(Tor Browser)$
windowrulev2 = float, class:^(mullvadbrowser)$
windowrulev2 = float, class:^(foot)$
windowrulev2 = float, class:^(mpv)$
windowrulev2 = float, class:^(imv)$
@ -135,7 +131,7 @@
windowrulev2 = float, class:^(org.keepassxc.KeePassXC)$
windowrulev2 = size 960 670, title:^(ROG Control Center)$
bind = SUPER, RETURN, exec, footclient
bind = SUPER, RETURN, exec, foot
bind = SUPER, W, exec, librewolf
bind = SUPERSHIFT, W, exec, firefox
bind = SUPER, Q, killactive
@ -146,31 +142,32 @@
bind = SUPER, C, exec, rofi -show calc -modi calc -no-show-match -no-sort
bind = SUPERSHIFT, C, centerwindow
bind = SUPER, R, bringactivetotop
binde = SUPER, H, exec, hyprsome focus l
binde = SUPER, J, exec, hyprsome focus d
binde = SUPER, K, exec, hyprsome focus u
binde = SUPER, L, exec, hyprsome focus r
binde = SUPER, H, movefocus, l
binde = SUPER, J, movefocus, d
binde = SUPER, K, movefocus, u
binde = SUPER, L, movefocus, r
binde = SUPERCTRL, J, focusmonitor, l
binde = SUPERCTRL, K, focusmonitor, r
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
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 = SUPER, 1, split-workspace, 1
bind = SUPER, 2, split-workspace, 2
bind = SUPER, 3, split-workspace, 3
bind = SUPER, 4, split-workspace, 4
bind = SUPER, 5, split-workspace, 5
bind = SUPER, 6, split-workspace, 6
bind = SUPER, 7, split-workspace, 7
bind = SUPER, 8, split-workspace, 8
bind = SUPER, 9, split-workspace, 9
bind = SUPER, 0, split-workspace, 10
bind = SUPERSHIFT, 1, split-movetoworkspacesilent, 1
bind = SUPERSHIFT, 2, split-movetoworkspacesilent, 2
bind = SUPERSHIFT, 3, split-movetoworkspacesilent, 3
bind = SUPERSHIFT, 4, split-movetoworkspacesilent, 4
bind = SUPERSHIFT, 5, split-movetoworkspacesilent, 5
bind = SUPERSHIFT, 6, split-movetoworkspacesilent, 6
bind = SUPERSHIFT, 7, split-movetoworkspacesilent, 7
bind = SUPERSHIFT, 8, split-movetoworkspacesilent, 8
bind = SUPERSHIFT, 9, split-movetoworkspacesilent, 9
bind = SUPERSHIFT, 0, split-movetoworkspacesilent, 10
bindle = , XF86MonBrightnessUp, exec, ~/Scripts/notif_brightness.sh set +5%
bindle = , XF86MonBrightnessDown, exec, ~/Scripts/notif_brightness.sh set 5%-
bindl = , XF86AudioMedia, exec, playerctl play-pause
@ -182,8 +179,8 @@
bindle = , XF86AudioLowerVolume, exec, ~/Scripts/notif_volume.sh -ud 5
bindl = , XF86AudioMute, exec, ~/Scripts/notif_volume.sh --toggle-mute
# https://github.com/n3oney/shadower
bind = SUPER, S, exec, grimblast save area - | shadower | tee "$(xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')" | wl-copy
bind = SUPERSHIFT, S, exec, grimblast save area - | swappy -f - -o - | shadower | tee "$(xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')" | wl-copy
bind = SUPER, S, exec, grimblast save area - | shadower | tee "$(xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')" | wl-copy && notify-send "Screenshot taken"
bind = SUPERSHIFT, S, exec, grimblast save area - | swappy -f - -o - | shadower | tee "$(xdg-user-dir PICTURES)/Screenshots/$(date +'screenshot-%Y%m%d%H%M%S.png')" | wl-copy && notify-send "Screenshot taken"
bind = SUPERSHIFT, R, exec, hyprctl reload
bind = SUPER, P, pin
bind = , XF86Launch1, exec, rog-control-center
@ -210,19 +207,25 @@
pass_mouse_when_bound=0
}
#exec=pkill -9 waybar; waybar
exec=systemctl restart --user waybar.service
exec=pkill btop
exec=pkill amdgpu_top
exec=pkill helvum
exec=[workspace special:btop silent;tile] foot btop
exec=[workspace special:amdgpu_top silent] amdgpu_top --gui -i 0
exec=[workspace special:amdgpu_top silent] amdgpu_top --gui -i 1
exec=[workspace special:helvum silent] helvum
exec-once=foot --server
exec-once=hyprctl setcursor Bibata-Modern-Classic 24
exec-once=wl-paste --watch cliphist store
exec-once=hyprctl dispatch exec "swww init" && sleep 0.5
exec-once=swww img -o eDP-1 ~/wall0.jpg
exec-once=swww img -o HDMI-A-1 ~/wall1.jpg
exec-once=swww img -o eDP-1 ~/catppuccin-wall0.png
exec-once=swww img -o HDMI-A-1 ~/catppuccin-wall1.png
exec-once=rog-control-center
exec-once=mullvad-vpn
@ -240,6 +243,11 @@
exec-once=$HOME/.local/share/hyprload/hyprload.sh
exec-once=fcitx5 -d
exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=$XDG_CURRENT_DESKTOP
# no black border on grimblast screenshots
layerrule = noanim, ^(selection)$
@ -248,6 +256,54 @@
# temporary fix to swaylock screenshoting rofi before locking
layerrule = noanim, ^(rofi)$
env=PATH,$PATH:/home/jacek/.cargo/bin:/home/jacek/.local/bin:/home/jacek/.local/share/gem/ruby/3.0.0/bin
env=EDITOR,/usr/bin/nvim
env=LIBSEAT_BACKEND,logind
env=TERM,foot
env=QT_QPA_PLATFORMTHEME,qt5ct
env=CHROME_EXECUTABLE,/usr/bin/chromium
env=GTK_IM_MODULE,fcitx
env=QT_IM_MODULE,fcitx
env=XMODIFIERS,@im=fcitx
env=SYSTEMD_TIMEDATED_NTP_SERVICES,chronyd.service:systemd-timesyncd.service
env=GOPATH,~/.local/share/go
env=XDG_CURRENT_DESKTOP,Hyprland
env=XDG_SESSION_TYPE,wayland
env=XDG_SESSION_DESKTOP,Hyprland
env=QT_QPA_PLATFORM,wayland
env=MOZ_ENABLE_WAYLAND,1
env=MOZ_DRM_DEVICE,/dev/dri/card0
env=SDL_VIDEODRIVER,wayland
env=_JAVA_AWT_WM_NONEREPARENTING,1
env=CLUTTER_BACKEND,wayland
env=GDK_BACKEND,wayland
env=XCURSOR_THEME,Bibata-Modern-Classic
env=XCURSOR_SIZE,24
general {
col.active_border=0xFFF5C2E7
col.inactive_border=0xFF45475A
col.group_border_active=0xFFA6E3A1
col.group_border=0xFF45475A
}
decoration {
col.shadow=0xAF1E1E2E
}
plugin {
csgo-vulkan-fix {
res_w = 2560