2022-08-24 18:17:29 +02:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
imports = [
|
|
|
|
./eww
|
|
|
|
];
|
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
wofi # Wayland rofi
|
|
|
|
grim # Screenshot tool
|
|
|
|
wf-recorder # Screenrecorder
|
|
|
|
wl-clipboard # Clipboard manager
|
2022-08-24 23:44:40 +02:00
|
|
|
networkmanager_dmenu
|
2022-08-24 18:17:29 +02:00
|
|
|
];
|
|
|
|
|
2022-08-24 23:44:40 +02:00
|
|
|
home.file.".config/networkmanager-dmenu/config.ini".text = ''
|
|
|
|
[dmenu]
|
|
|
|
dmenu_command = rofi -dmenu -i
|
|
|
|
# # Note that dmenu_command can contain arguments as well like:
|
|
|
|
# # `dmenu_command = rofi -dmenu -i -theme nmdm`
|
|
|
|
# # `dmenu_command = rofi -dmenu -width 30 -i`
|
|
|
|
# # `dmenu_command = dmenu -i -l 25 -b -nb #909090 -nf #303030`
|
|
|
|
# (Default: False) use rofi highlighting instead of '=='
|
|
|
|
rofi_highlight = true
|
|
|
|
# compact = <True or False> # (Default: False). Remove extra spacing from display
|
|
|
|
# pinentry = <Pinentry command> # (Default: None) e.g. `pinentry-gtk`
|
|
|
|
# wifi_chars = <string of 4 unicode characters representing 1-4 bars strength>
|
|
|
|
wifi_chars = ▂▄▆█
|
|
|
|
# list_saved = <True or False> # (Default: False) list saved connections
|
|
|
|
|
|
|
|
[dmenu_passphrase]
|
|
|
|
# # Uses the -password flag for Rofi, -x for bemenu. For dmenu, sets -nb and
|
|
|
|
# # -nf to the same color or uses -P if the dmenu password patch is applied
|
|
|
|
# # https://tools.suckless.org/dmenu/patches/password/
|
|
|
|
# obscure = True
|
|
|
|
# obscure_color = #222222
|
|
|
|
|
|
|
|
[editor]
|
|
|
|
# terminal = <name of terminal program>
|
|
|
|
terminal = alacritty
|
|
|
|
# gui_if_available = <True or False> (Default: True)
|
|
|
|
'';
|
|
|
|
|
2022-08-24 18:17:29 +02:00
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
|
|
exec-once=eww daemon
|
|
|
|
exec-once=eww open bar
|
|
|
|
|
|
|
|
monitor=eDP-1,1920x1080@60,0x0,1
|
|
|
|
monitor=eDP-1,addreserved,0,0,48,0
|
2022-08-24 23:44:40 +02:00
|
|
|
monitor=,preferred,auto,1
|
2022-08-24 18:17:29 +02:00
|
|
|
|
|
|
|
general {
|
|
|
|
layout = dwindle
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
kb_options=caps:escape
|
|
|
|
touchpad {
|
|
|
|
natural_scroll= true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gestures {
|
|
|
|
workspace_swipe = true
|
|
|
|
}
|
|
|
|
|
|
|
|
misc {
|
|
|
|
no_vfr = false
|
|
|
|
}
|
|
|
|
|
|
|
|
dwindle {
|
|
|
|
pseudotile=true
|
|
|
|
}
|
|
|
|
|
|
|
|
bind=SUPER,RETURN,exec,alacritty
|
|
|
|
bind=SUPER,f,exec,firefox-devedition
|
|
|
|
bind=SUPER,d,exec,rofi -show run
|
|
|
|
|
|
|
|
bind=,Print,exec,grim -g "$(slurp)" - | wl-copy -t image/png
|
|
|
|
bind=SUPER,W,killactive,
|
2022-08-24 23:44:40 +02:00
|
|
|
bind=SUPERSHIFT,Q,exit,
|
2022-08-24 18:17:29 +02:00
|
|
|
bind=SUPER,S,togglefloating,
|
|
|
|
bind=SUPER,P,pseudo,
|
|
|
|
|
|
|
|
bind=SUPER,left,movefocus,l
|
|
|
|
bind=SUPER,right,movefocus,r
|
|
|
|
bind=SUPER,up,movefocus,u
|
|
|
|
bind=SUPER,down,movefocus,d
|
|
|
|
|
|
|
|
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=ALT,1,movetoworkspace,1
|
|
|
|
bind=ALT,2,movetoworkspace,2
|
|
|
|
bind=ALT,3,movetoworkspace,3
|
|
|
|
bind=ALT,4,movetoworkspace,4
|
|
|
|
bind=ALT,5,movetoworkspace,5
|
|
|
|
bind=ALT,6,movetoworkspace,6
|
|
|
|
bind=ALT,7,movetoworkspace,7
|
|
|
|
bind=ALT,8,movetoworkspace,8
|
|
|
|
bind=ALT,9,movetoworkspace,9
|
|
|
|
bind=ALT,0,movetoworkspace,10
|
|
|
|
|
|
|
|
bind=SUPER,mouse_down,workspace,e+1
|
|
|
|
bind=SUPER,mouse_up,workspace,e-1
|
|
|
|
|
|
|
|
bind=SUPER,g,togglegroup
|
|
|
|
bind=SUPER,tab,changegroupactive
|
|
|
|
|
|
|
|
# Firefox notifications
|
|
|
|
windowrule=float,title:^(\s*)$
|
|
|
|
windowrule=nofocus,title:^(\s*)$
|
|
|
|
windowrule=move 1569 0,title:^(\s*)$
|
|
|
|
windowrule=opacity 0.8,title:^(\s*)$
|
|
|
|
windowrule=rounding 3,title:^(\s*)$
|
|
|
|
windowrule=animation popin,title:^(\s*)$
|
|
|
|
|
2022-08-24 23:44:40 +02:00
|
|
|
bind=,XF86MonBrightnessUp,exec,light -A 5
|
|
|
|
bind=,XF86MonBrightnessDown,exec,light -U 5
|
2022-08-24 18:17:29 +02:00
|
|
|
bind=,XF86MonRaiseVolume,exec,pamixer -i 5
|
|
|
|
bind=,XF86MonLowerVolume,exec,pamixer -d 5
|
|
|
|
bind=,XF86AudioMute,exec,pamixer -t
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|