## Copyright (C) 2020-2022 Aditya Shakya ## Everyone is permitted to copy and distribute copies of this file under GNU-GPL3 ## ## Hyprland configuration file for Archcraft #-- Output ---------------------------------------------------- # Configure your Display resolution, offset, scale and Monitors here, use `hyprctl monitors` to get the info. monitor=eDP-1,1920x1080@60,0x0,1 monitor=HDMI-A-2,1920x1080@60,1920x0,1 # Example : #monitor=eDP-1,1920x1080@60,0x0,1 #monitor=eDP-1,transform,0 #monitor=eDP-1,addreserved,10,10,10,10 workspace=eDP-1,1 workspace=HDMI-A-2,2 #-- Input ---------------------------------------------------- # Configure mouse and touchpad here. input { kb_layout=cn kb_variant= kb_model= kb_options= kb_rules= follow_mouse=1 natural_scroll=1 force_no_accel=0 # repeat_rate= # repeat_delay= # numlock_by_default= } #-- General ---------------------------------------------------- # General settings like MOD key, Gaps, Colors, etc. general { main_mod=SUPER sensitivity=1.5 apply_sens_to_raw=0 gaps_in=5 gaps_out=10 border_size=4 col.active_border=0xFF96CDFB col.inactive_border=0xFF313244 damage_tracking=full # leave it on full unless you hate your GPU and want to make it suffer } #-- Decoration ---------------------------------------------------- # Decoration settings like Rounded Corners, Opacity, Blur, etc. decoration { rounding=10 multisample_edges=1 active_opacity=0.9 inactive_opacity=0.8 fullscreen_opacity=1.0 blur=1 blur_size=5 # minimum 1 blur_passes=1 # minimum 1, more passes = more resource intensive. blur_ignore_opacity=0 # Your blur "amount" is blur_size * blur_passes, but high blur_size (over around 5-ish) will produce artifacts. # if you want heavy blur, you need to up the blur_passes. # the more passes, the more you can up the blur_size without noticing artifacts. } #-- Animations ---------------------------------------------------- animations { enabled=1 animation=windows,1,5,default animation=borders,1,10,default animation=fadein,1,8,default animation=workspaces,1,5,default } #-- Dwindle ---------------------------------------------------- dwindle { pseudotile=0 # enable pseudotiling on dwindle } #-- Window Rules ---------------------------------------------------- windowrule=float,foot-float windowrule=float,yad|nm-connection-editor|pavucontrolk windowrule=float,xfce-polkit|kvantummanager|qt5ct windowrule=float,feh|Viewnior|Gpicview|Gimp|MPlayer windowrule=float,VirtualBox Manager|qemu|Qemu-system-x86_64 windowrule=float,foot-full windowrule=move 0 0,foot-full windowrule=size 100% 100%,foot-full windowrule=float,wlogout windowrule=move 0 0,wlogout windowrule=size 100% 100%,wlogout windowrule=animation slide,wlogout #windowrule=move 69 420,abc #windowrule=size 420 69,abc #windowrule=tile,xyz #windowrule=pseudo,abc #windowrule=monitor 0,xyz #windowrule=workspace 12,abc windowrule=opacity 1.11111111111111111111111111111111111111111111111 ,firefox #windowrule=animation slide left,abc windowrule=rounding -1,wlogout windowrule=workspace 1 silent,alacritty windowrule=workspace 2 silent,firefox #windowrule=workspace 2 silent,fcitx5 windowrule=workspace 2 silent,nutstore #-- Keybindings ---------------------------------------------------- $term = alacritty $menu = ~/.config/hypr/scripts/menu $powermenu = ~/.config/hypr/scripts/powermenu $volume = ~/.config/hypr/scripts/volume $backlight = ~/.config/hypr/scripts/brightness $screenshot = ~/.config/hypr/scripts/screenshot $lockscreen = ~/.config/hypr/scripts/lockscreen $wlogout = ~/.config/hypr/scripts/wlogout $colorpicker = ~/.config/hypr/scripts/colorpicker $files = thunar $editor = gnome-text-editor $browser = firefox # -- Terminal -- bind=SUPER,Return,exec,$term bind=SUPERSHIFT,Return,exec,$term -f bind=SUPERALT,Return,exec,$term -s bind=SUPER,T,exec,$term -F # -- Apps -- bind=SUPER,F,exec,$files bind=SUPER,E,exec,$editor bind=SUPER,W,exec,$browser # -- Wofi -- bind=ALT,F1,exec,$menu bind=SUPER,D,exec,$menu #bind=SUPER,X,exec,$powermenu # -- Misc -- bind=SUPER,N,exec,nm-connection-editor bind=SUPER,P,exec,$colorpicker bind=SUPER,X,exec,$wlogout bind=CTRLALT,L,exec,$lockscreen # -- Function keys -- bind=,XF86MonBrightnessUp,exec,$backlight --inc bind=,XF86MonBrightnessDown,exec,$backlight --dec bind=,XF86AudioRaiseVolume,exec,$volume --inc bind=,XF86AudioLowerVolume,exec,$volume --dec bind=,XF86AudioMute,exec,$volume --toggle bind=,XF86AudioNext,exec,mpc next bind=,XF86AudioPrev,exec,mpc prev bind=,XF86AudioPlay,exec,mpc toggle bind=,XF86AudioStop,exec,mpc stop # -- Screenshots -- bind=,Print,exec,$screenshot --now bind=SUPER,Print,exec,$screenshot --in5 bind=SHIFT,Print,exec,$screenshot --in10 bind=CTRL,Print,exec,$screenshot --win bind=SUPERCTRL,Print,exec,$screenshot --area # -- Hyprland -- bind=SUPER,Q,killactive, bind=SUPER,C,killactive, bind=CTRLALT,Delete,exit, bind=SUPER,A,fullscreen, bind=SUPERALT,Space,togglefloating, bind=SUPER,S,pseudo, # Focus bind=SUPER,left,movefocus,l bind=SUPER,right,movefocus,r bind=SUPER,up,movefocus,u bind=SUPER,down,movefocus,d # Move bind=SUPERSHIFT,left,movewindow,l bind=SUPERSHIFT,right,movewindow,r bind=SUPERSHIFT,up,movewindow,u bind=SUPERSHIFT,down,movewindow,d # Resize bind=SUPERCTRL,left,resizeactive,-60 0 bind=SUPERCTRL,right,resizeactive,60 0 bind=SUPERCTRL,up,resizeactive,0 -60 bind=SUPERCTRL,down,resizeactive,0 60 # Workspaces 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 # Send to Workspaces bind=SUPERSHIFT,exclam,movetoworkspace,1 bind=SUPERSHIFT,at,movetoworkspace,2 bind=SUPERSHIFT,numbersign,movetoworkspace,3 bind=SUPERSHIFT,dollar,movetoworkspace,4 bind=SUPERSHIFT,percent,movetoworkspace,5 bind=SUPERSHIFT,asciicircum,movetoworkspace,6 bind=SUPERSHIFT,ampersand,movetoworkspace,7 bind=SUPERSHIFT,asterisk,movetoworkspace,8 bind=SUPERSHIFT,parenleft,movetoworkspace,9 bind=SUPERSHIFT,parenright,movetoworkspace,10 #-- Startup ---------------------------------------------------- exec-once=~/.config/hypr/scripts/startup exec-once=alacritty exec-once=firefox exec-once=ibus-daemon -d -x exec-once=nutstore exec-once=cleanup_after_start.sh #exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP