Skip to content

Instantly share code, notes, and snippets.

@luxus
Created August 4, 2022 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luxus/d633be3a837fe65297d7e01a4351f192 to your computer and use it in GitHub Desktop.
Save luxus/d633be3a837fe65297d7e01a4351f192 to your computer and use it in GitHub Desktop.
exec-once=/nix/store/js3215xajs1m05iq2bgpbjp2phvd9b33-dbus-1.14.0/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP; systemctl --user start hyprland-session.target
monitor=DP-1,2560x1440@60,0x0,1
workspace=DP-1,1
monitor=DP-2,2560x1440@60,2560x0,1
workspace=DP-2,2
general {
main_mod=SUPER
gaps_in=15
gaps_out=20
border_size=2.7
col.active_border=0xff89DDFF
col.inactive_border=0xff32374D
cursor_inactive_timeout=4
}
decoration {
active_opacity=0.93
inactive_opacity=0.80
fullscreen_opacity=1.0
rounding=5
blur=true
blur_size=2
blur_passes=5
drop_shadow=true
shadow_range=12
shadow_offset=3 3
col.shadow=0x44000000
col.shadow_inactive=0x66000000
}
animations {
enabled=true
animation=windows,1,4,default,slide
animation=border,1,5,default
animation=fade,1,7,default
animation=workspaces,1,2,default
}
dwindle {
force_split=2
preserve_split=true
col.group_border_active=0xffC3E88D
col.group_border=0xff8796B0
}
input {
kb_layout=us
}
input:touchpad {
disable_while_typing=false
}
windowrule=noblur,\b(?!wezterm\b)\w+
# Startup
exec-once=/nix/store/y32v4pgf5zhz1j542ipbw153pr2jlry4-swaylock-effects-unstable-2021-10-21/bin/swaylock -i /nix/store/d8yi5sm0nr2z1if3kzkgmk6hhgj9n6aa-wallpaper-aenami-all-i-need.jpeg
exec-once=waybar
exec=/nix/store/fx8bkmfs8sjx687hfkpvxlbycm9vzffj-swaybg-1.1.1/bin/swaybg -i /nix/store/d8yi5sm0nr2z1if3kzkgmk6hhgj9n6aa-wallpaper-aenami-all-i-need.jpeg --mode fill
exec-once=/nix/store/m4l6dniyiwqn2aa30vpnl58l3abfpfar-mako-1.7.1/bin/mako
exec-once=/nix/store/vw3mkv56x9c2dvcbs5kwaq45l7d6rnf8-swayidle-1.7.1/bin/swayidle -w
# Program bindings
bind=SUPER,Return,exec,wezterm
bind=SUPER,w,exec,makoctl dismiss
bind=SUPER,v,exec,wezterm $SHELL -i -c nvim
#TODO: reenable mail
# bind=SUPER,m,exec,
bind=SUPER,b,exec,firefox
bind=SUPER,x,exec,wofi -S drun -x 10 -y 10 -W 25% -H 60%
bind=SUPER,d,exec,wofi -S run
bind=,Scroll_Lock,exec,pass-wofi # fn+k
bind=,XF86Calculator,exec,pass-wofi # fn+f12
# Toggle waybar
bind=,XF86Tools,exec,/nix/store/x0blqya1ing34aj5ngcmikr143sjbv3a-procps-3.3.16/bin/pkill -USR1 waybar # profile button
# Lock screen
bind=,XF86Launch5,exec,/nix/store/y32v4pgf5zhz1j542ipbw153pr2jlry4-swaylock-effects-unstable-2021-10-21/bin/swaylock -S
bind=,XF86Launch4,exec,/nix/store/y32v4pgf5zhz1j542ipbw153pr2jlry4-swaylock-effects-unstable-2021-10-21/bin/swaylock -S
# Screenshots
bind=,Print,exec,/nix/store/25kl4jqb4xdw0mr3jyj9ci1qn548sjd5-grimblast-0.1/bin/grimblast --notify copy output
bind=SHIFT,Print,exec,/nix/store/25kl4jqb4xdw0mr3jyj9ci1qn548sjd5-grimblast-0.1/bin/grimblast --notify copy active
bind=CONTROL,Print,exec,/nix/store/25kl4jqb4xdw0mr3jyj9ci1qn548sjd5-grimblast-0.1/bin/grimblast --notify copy screen
bind=SUPER,Print,exec,/nix/store/25kl4jqb4xdw0mr3jyj9ci1qn548sjd5-grimblast-0.1/bin/grimblast --notify copy window
# Keyboard controls (brightness, media, sound, etc)
bind=,XF86MonBrightnessUp,exec,/nix/store/hi1dfq1n8kvl5c0mpbif61ndbi6xx3q1-light-1.2.2/bin/light -A 10
bind=,XF86MonBrightnessDown,exec,/nix/store/hi1dfq1n8kvl5c0mpbif61ndbi6xx3q1-light-1.2.2/bin/light -U 10
bind=,XF86AudioNext,exec,/nix/store/hdgx8f59r8xdalcbdsdsvmlh0hd6i8h8-playerctl-2.4.1/bin/playerctl next
bind=,XF86AudioPrev,exec,/nix/store/hdgx8f59r8xdalcbdsdsvmlh0hd6i8h8-playerctl-2.4.1/bin/playerctl previous
bind=,XF86AudioPlay,exec,/nix/store/hdgx8f59r8xdalcbdsdsvmlh0hd6i8h8-playerctl-2.4.1/bin/playerctl play-pause
bind=,XF86AudioStop,exec,/nix/store/hdgx8f59r8xdalcbdsdsvmlh0hd6i8h8-playerctl-2.4.1/bin/playerctl stop
bind=ALT,XF86AudioNext,exec,/nix/store/hdgx8f59r8xdalcbdsdsvmlh0hd6i8h8-playerctl-2.4.1/bin/playerctld shift
bind=ALT,XF86AudioPrev,exec,/nix/store/hdgx8f59r8xdalcbdsdsvmlh0hd6i8h8-playerctl-2.4.1/bin/playerctld unshift
bind=SUPER,XF86AudioPlay,exec,wezterm $SHELL -i -c /nix/store/mz4m1cwj40x85q6a4zaq0hnm55yhavg5-lyrics/bin/lyrics
bind=,XF86AudioRaiseVolume,exec,/nix/store/yzzwx0qswp1dm9r0zr2vy49fivirlq2k-pulseaudio-15.0/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%
bind=,XF86AudioLowerVolume,exec,/nix/store/yzzwx0qswp1dm9r0zr2vy49fivirlq2k-pulseaudio-15.0/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%
bind=,XF86AudioMute,exec,/nix/store/yzzwx0qswp1dm9r0zr2vy49fivirlq2k-pulseaudio-15.0/bin/pactl set-sink-mute @DEFAULT_SINK@ toggle
bind=SHIFT,XF86AudioMute,exec,/nix/store/yzzwx0qswp1dm9r0zr2vy49fivirlq2k-pulseaudio-15.0/bin/pactl set-source-mute @DEFAULT_SOURCE@ toggle
bind=,XF86AudioMicMute,exec,/nix/store/yzzwx0qswp1dm9r0zr2vy49fivirlq2k-pulseaudio-15.0/bin/pactl set-source-mute @DEFAULT_SOURCE@ toggle
# Window manager controls
bind=SUPERSHIFT,Q,killactive
bind=SUPERSHIFT,E,exit
bind=SUPER,s,togglesplit
bind=SUPER,f,fullscreen,1
bind=SUPERSHIFT,f,fullscreen,0
bind=SUPERSHIFT,space,togglefloating
bind=SUPER,minus,splitratio,-0.25
bind=SUPERSHIFT,underscore,splitratio,-0.3333333
bind=SUPER,equal,splitratio,0.25
bind=SUPERSHIFT,plus,splitratio,0.3333333
bind=SUPER,g,togglegroup
bind=SUPER,apostrophe,changegroupactive,f
bind=SUPERSHIFT,quotedbl,changegroupactive,b
bind=SUPER,left,movefocus,l
bind=SUPER,right,movefocus,r
bind=SUPER,up,movefocus,u
bind=SUPER,down,movefocus,d
bind=SUPER,h,movefocus,l
bind=SUPER,l,movefocus,r
bind=SUPER,k,movefocus,u
bind=SUPER,j,movefocus,d
bind=SUPERSHIFT,left,movewindow,l
bind=SUPERSHIFT,right,movewindow,r
bind=SUPERSHIFT,up,movewindow,u
bind=SUPERSHIFT,down,movewindow,d
bind=SUPERSHIFT,h,movewindow,l
bind=SUPERSHIFT,l,movewindow,r
bind=SUPERSHIFT,k,movewindow,u
bind=SUPERSHIFT,j,movewindow,d
bind=SUPERCONTROL,left,focusmonitor,l
bind=SUPERCONTROL,right,focusmonitor,r
bind=SUPERCONTROL,up,focusmonitor,u
bind=SUPERCONTROL,down,focusmonitor,d
bind=SUPERCONTROL,h,focusmonitor,l
bind=SUPERCONTROL,l,focusmonitor,r
bind=SUPERCONTROL,k,focusmonitor,u
bind=SUPERCONTROL,j,focusmonitor,d
bind=SUPERCONTROL,1,focusmonitor,DP-1
bind=SUPERCONTROL,2,focusmonitor,DP-2
bind=SUPERCONTROLSHIFT,left,movewindow,mon:l
bind=SUPERCONTROLSHIFT,right,movewindow,mon:r
bind=SUPERCONTROLSHIFT,up,movewindow,mon:u
bind=SUPERCONTROLSHIFT,down,movewindow,mon:d
bind=SUPERCONTROLSHIFT,h,movewindow,mon:l
bind=SUPERCONTROLSHIFT,l,movewindow,mon:r
bind=SUPERCONTROLSHIFT,k,movewindow,mon:u
bind=SUPERCONTROLSHIFT,j,movewindow,mon:d
bind=SUPERCONTROLSHIFT,1,movewindow,mon:DP-1
bind=SUPERCONTROLSHIFT,2,movewindow,mon:DP-2
bind=SUPERALT,left,movecurrentworkspacetomonitor,l
bind=SUPERALT,right,movecurrentworkspacetomonitor,r
bind=SUPERALT,up,movecurrentworkspacetomonitor,u
bind=SUPERALT,down,movecurrentworkspacetomonitor,d
bind=SUPERALT,h,movecurrentworkspacetomonitor,l
bind=SUPERALT,l,movecurrentworkspacetomonitor,r
bind=SUPERALT,k,movecurrentworkspacetomonitor,u
bind=SUPERALT,j,movecurrentworkspacetomonitor,d
bind=SUPER,u,togglespecialworkspace
bind=SUPERSHIFT,u,movetoworkspace,special
bind=SUPER,1,workspace,1
bind=SUPER,2,workspace,2
bind=SUPER,3,workspace,3
bind=SUPER,4,workspace,4
bind=SUPER,5,workspace,5
bind=SUPER,6,workspace,6
bind=SUPER,7,workspace,7
bind=SUPER,8,workspace,8
bind=SUPER,9,workspace,9
bind=SUPER,0,workspace,10
bind=SUPERSHIFT,exclam,movetoworkspacesilent,1
bind=SUPERSHIFT,at,movetoworkspacesilent,2
bind=SUPERSHIFT,numbersign,movetoworkspacesilent,3
bind=SUPERSHIFT,dollar,movetoworkspacesilent,4
bind=SUPERSHIFT,percent,movetoworkspacesilent,5
bind=SUPERSHIFT,asciicircum,movetoworkspacesilent,6
bind=SUPERSHIFT,ampersand,movetoworkspacesilent,7
bind=SUPERSHIFT,asterisk,movetoworkspacesilent,8
bind=SUPERSHIFT,parenleft,movetoworkspacesilent,9
bind=SUPERSHIFT,parenright,movetoworkspacesilent,10
blurls=waybar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment