This commit is contained in:
Tristan 2023-05-03 16:11:50 +01:00
parent 3c20b72515
commit 5140dec6bc
6 changed files with 64 additions and 26 deletions

View file

@ -51,23 +51,29 @@ let
'');
brightness-down = (pkgs.writeShellScriptBin "brightness-down" ''
light -U 10
light -U $1
${my-deps.notify-send} "Brightness" -h int:value:$(light) -a brightness-down -t 1000
'');
brightness-up = (pkgs.writeShellScriptBin "brightness-up" ''
light -A 10
light -A $1
${my-deps.notify-send} "Brightness" -h int:value:$(light) -a brightness-up -t 1000
'');
open-code = (pkgs.writeShellScriptBin "open-code" ''
code_dir=~/Documents/code
ls $code_dir/ | ${my-deps.menu} | ${my-deps.xargs} -I_ my-editor $code_dir/_
cd $code_dir
repo=$({ ls && echo clone-repo; } | ${my-deps.menu})
case $repo in
clone-repo)
url=$(wl-paste)
${my-deps.terminal} -e -- git clone "$url" ;;
*) [ -e "$repo" ] && my-editor $repo ;;
esac
'');
};
lf-sixel = pkgs.callPackage ../../custom/lf-sixel/. { };
brave-nightly = pkgs.callPackage ../../custom/brave-nightly/. { };
in
{
programs.home-manager.enable = true;
@ -90,6 +96,8 @@ in
playerctl
pavucontrol
dbeaver
qpwgraph
element-desktop
brave
quickemu
@ -115,6 +123,7 @@ in
screenshots = true;
effect-scale = 0.5;
effect-blur = "10x10";
grace = 5;
};
};
@ -163,12 +172,17 @@ in
bind = SUPER_SHIFT, Q, killactive,
bind = SUPER_SHIFT, E, exit,
bind = SUPER, d, exec, wofi --show drun
bind = SUPER, Z, exec, "${pkgs.swaylock-effects}/bin/swaylock" -f
bind = SUPER, Z, exec, ${pkgs.wlogout}/bin/wlogout
bind = SUPER, M, exec, ${ my-deps.terminal } -e ncmpcpp
bind = SUPER, E, exec, ${ my-deps.terminal } -e aerc
bind = SUPER, O, exec, pcmanfm
bind = SUPER, C, exec, ${ my-scripts.open-code }/bin/open-code
bind = SUPER, G, exec, ${ pkgs.hyprpicker }/bin/hyprpicker | wl-copy && notify-send "Copied Colour" "$(wl-paste)"
bind = SUPER, EQUAL, exec, hyprctl keyword misc:cursor_zoom_factor 2
bind = SUPER, MINUS, exec, hyprctl keyword misc:cursor_zoom_factor 1
bind = SUPER, SLASH, focuswindow, brave-browser
bind = SUPER, n, focuswindow, Logseq
windowrule = float, title:wlogout
bind = SUPER, h, movefocus,l
bind = SUPER, l, movefocus,r
@ -179,6 +193,8 @@ in
bind = SUPER, j, layoutmsg,cyclenext
bind = SUPER, k, layoutmsg,cycleprev
bind = SUPER, space, layoutmsg,swapwithmaster master
bind = SUPER_SHIFT, k, layoutmsg, orientationtop
bind = SUPER_SHIFT, h, layoutmsg, orientationleft
bind = SUPER, F, fullscreen,
bind = SUPER, V, togglefloating,
bind = SUPER_SHIFT, V, togglegroup,
@ -193,8 +209,10 @@ in
bind =,XF86AudioPlay, exec,${ my-scripts.play-pause }/bin/play-pause
bind =,XF86AudioNext, exec,${ my-deps.playerctl } next
bind =,XF86AudioPrev, exec,${ my-deps.playerctl } previous
bind =,XF86MonBrightnessUp, exec,${ my-scripts.brightness-up }/bin/brightness-up
bind =,XF86MonBrightnessDown, exec,${ my-scripts.brightness-down }/bin/brightness-down
bind =,XF86MonBrightnessUp, exec,${ my-scripts.brightness-up }/bin/brightness-up 10
bind =,XF86MonBrightnessDown, exec,${ my-scripts.brightness-down }/bin/brightness-down 10
bind =SHIFT,XF86MonBrightnessUp, exec,${ my-scripts.brightness-up }/bin/brightness-up 1
bind =SHIFT,XF86MonBrightnessDown, exec,${ my-scripts.brightness-down }/bin/brightness-down 1
bind = SUPER,1,workspace,1
bind = SUPER,2,workspace,2
@ -224,7 +242,7 @@ in
decoration {
rounding = 5
blur = 0
drop_shadow = no
}
bezier=overshot, 0.05, 0.9, 0.1, 1.1
@ -242,7 +260,7 @@ in
general {
resize_on_border = yes
layout = master
col.active_border = rgb(FFF00F) rgb(0FFFF0) rgb(F00FFF) 120deg
col.active_border = rgb(FFFF00) rgb(00FFFF) rgb(FF00FF)
border_size = 5
}
@ -252,7 +270,16 @@ in
}
'';
};
programs.wlogout = {
enable = true;
style = ''
window {
background-color: rgba(12, 12, 12, 0.2);
}
'';
};
programs.waybar = {
enable = true;
settings = {
@ -394,6 +421,7 @@ in
bright5 = "8f88be";
bright6 = "6caabf";
bright7 = "ffffff";
alpha = 0.8;
};
};