wowo
This commit is contained in:
parent
3c20b72515
commit
5140dec6bc
6 changed files with 64 additions and 26 deletions
8
lib/mkapp.nix
Normal file
8
lib/mkapp.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
name: { pkgs, app-id, browser, desktopName, ... }:
|
||||||
|
|
||||||
|
pkgs.makeDesktopItem {
|
||||||
|
name = "${name}";
|
||||||
|
desktopName = "${desktopName}";
|
||||||
|
exec = "${browser} --app-id=${app-id} --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer";
|
||||||
|
icon = "brave-${app-id}-Profile_2";
|
||||||
|
}
|
||||||
|
|
@ -19,8 +19,8 @@ nixpkgs.lib.nixosSystem rec {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.${user}.imports = [
|
home-manager.users.${user}.imports = [
|
||||||
../system/global/home.nix
|
|
||||||
../system/${name}/home.nix
|
../system/${name}/home.nix
|
||||||
|
../system/global/home.nix
|
||||||
hyprland.homeManagerModules.default
|
hyprland.homeManagerModules.default
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,23 +51,29 @@ let
|
||||||
'');
|
'');
|
||||||
|
|
||||||
brightness-down = (pkgs.writeShellScriptBin "brightness-down" ''
|
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
|
${my-deps.notify-send} "Brightness" -h int:value:$(light) -a brightness-down -t 1000
|
||||||
'');
|
'');
|
||||||
|
|
||||||
brightness-up = (pkgs.writeShellScriptBin "brightness-up" ''
|
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
|
${my-deps.notify-send} "Brightness" -h int:value:$(light) -a brightness-up -t 1000
|
||||||
'');
|
'');
|
||||||
|
|
||||||
open-code = (pkgs.writeShellScriptBin "open-code" ''
|
open-code = (pkgs.writeShellScriptBin "open-code" ''
|
||||||
code_dir=~/Documents/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/. { };
|
lf-sixel = pkgs.callPackage ../../custom/lf-sixel/. { };
|
||||||
brave-nightly = pkgs.callPackage ../../custom/brave-nightly/. { };
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
@ -90,6 +96,8 @@ in
|
||||||
playerctl
|
playerctl
|
||||||
pavucontrol
|
pavucontrol
|
||||||
dbeaver
|
dbeaver
|
||||||
|
qpwgraph
|
||||||
|
element-desktop
|
||||||
|
|
||||||
brave
|
brave
|
||||||
quickemu
|
quickemu
|
||||||
|
|
@ -115,6 +123,7 @@ in
|
||||||
screenshots = true;
|
screenshots = true;
|
||||||
effect-scale = 0.5;
|
effect-scale = 0.5;
|
||||||
effect-blur = "10x10";
|
effect-blur = "10x10";
|
||||||
|
grace = 5;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -163,12 +172,17 @@ in
|
||||||
bind = SUPER_SHIFT, Q, killactive,
|
bind = SUPER_SHIFT, Q, killactive,
|
||||||
bind = SUPER_SHIFT, E, exit,
|
bind = SUPER_SHIFT, E, exit,
|
||||||
bind = SUPER, d, exec, wofi --show drun
|
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, M, exec, ${ my-deps.terminal } -e ncmpcpp
|
||||||
bind = SUPER, E, exec, ${ my-deps.terminal } -e aerc
|
|
||||||
bind = SUPER, O, exec, pcmanfm
|
bind = SUPER, O, exec, pcmanfm
|
||||||
bind = SUPER, C, exec, ${ my-scripts.open-code }/bin/open-code
|
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, 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, h, movefocus,l
|
||||||
bind = SUPER, l, movefocus,r
|
bind = SUPER, l, movefocus,r
|
||||||
|
|
@ -179,6 +193,8 @@ in
|
||||||
bind = SUPER, j, layoutmsg,cyclenext
|
bind = SUPER, j, layoutmsg,cyclenext
|
||||||
bind = SUPER, k, layoutmsg,cycleprev
|
bind = SUPER, k, layoutmsg,cycleprev
|
||||||
bind = SUPER, space, layoutmsg,swapwithmaster master
|
bind = SUPER, space, layoutmsg,swapwithmaster master
|
||||||
|
bind = SUPER_SHIFT, k, layoutmsg, orientationtop
|
||||||
|
bind = SUPER_SHIFT, h, layoutmsg, orientationleft
|
||||||
bind = SUPER, F, fullscreen,
|
bind = SUPER, F, fullscreen,
|
||||||
bind = SUPER, V, togglefloating,
|
bind = SUPER, V, togglefloating,
|
||||||
bind = SUPER_SHIFT, V, togglegroup,
|
bind = SUPER_SHIFT, V, togglegroup,
|
||||||
|
|
@ -193,8 +209,10 @@ in
|
||||||
bind =,XF86AudioPlay, exec,${ my-scripts.play-pause }/bin/play-pause
|
bind =,XF86AudioPlay, exec,${ my-scripts.play-pause }/bin/play-pause
|
||||||
bind =,XF86AudioNext, exec,${ my-deps.playerctl } next
|
bind =,XF86AudioNext, exec,${ my-deps.playerctl } next
|
||||||
bind =,XF86AudioPrev, exec,${ my-deps.playerctl } previous
|
bind =,XF86AudioPrev, exec,${ my-deps.playerctl } previous
|
||||||
bind =,XF86MonBrightnessUp, exec,${ my-scripts.brightness-up }/bin/brightness-up
|
bind =,XF86MonBrightnessUp, exec,${ my-scripts.brightness-up }/bin/brightness-up 10
|
||||||
bind =,XF86MonBrightnessDown, exec,${ my-scripts.brightness-down }/bin/brightness-down
|
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,1,workspace,1
|
||||||
bind = SUPER,2,workspace,2
|
bind = SUPER,2,workspace,2
|
||||||
|
|
@ -224,7 +242,7 @@ in
|
||||||
|
|
||||||
decoration {
|
decoration {
|
||||||
rounding = 5
|
rounding = 5
|
||||||
blur = 0
|
drop_shadow = no
|
||||||
}
|
}
|
||||||
|
|
||||||
bezier=overshot, 0.05, 0.9, 0.1, 1.1
|
bezier=overshot, 0.05, 0.9, 0.1, 1.1
|
||||||
|
|
@ -242,7 +260,7 @@ in
|
||||||
general {
|
general {
|
||||||
resize_on_border = yes
|
resize_on_border = yes
|
||||||
layout = master
|
layout = master
|
||||||
col.active_border = rgb(FFF00F) rgb(0FFFF0) rgb(F00FFF) 120deg
|
col.active_border = rgb(FFFF00) rgb(00FFFF) rgb(FF00FF)
|
||||||
border_size = 5
|
border_size = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -253,6 +271,15 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.wlogout = {
|
||||||
|
enable = true;
|
||||||
|
style = ''
|
||||||
|
window {
|
||||||
|
background-color: rgba(12, 12, 12, 0.2);
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -394,6 +421,7 @@ in
|
||||||
bright5 = "8f88be";
|
bright5 = "8f88be";
|
||||||
bright6 = "6caabf";
|
bright6 = "6caabf";
|
||||||
bright7 = "ffffff";
|
bright7 = "ffffff";
|
||||||
|
alpha = 0.8;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,22 +19,22 @@
|
||||||
(pkgs.writeShellScriptBin "my-editor" ''
|
(pkgs.writeShellScriptBin "my-editor" ''
|
||||||
${pkgs.vscode}/bin/code --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@
|
${pkgs.vscode}/bin/code --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations $@
|
||||||
'')
|
'')
|
||||||
(pkgs.makeDesktopItem {
|
(import ../../lib/mkapp.nix "slack" {
|
||||||
name = "teams";
|
inherit pkgs;
|
||||||
desktopName = "Microsoft Teams";
|
|
||||||
exec = "${brave}/opt/brave.com/brave/brave-browser --app-id=cifhbcnohmdccbgoicgdjpfamggdegmo --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations,WebRTCPipeWireCapturer";
|
|
||||||
icon = "brave-cifhbcnohmdccbgoicgdjpfamggdegmo-Default";
|
|
||||||
})
|
|
||||||
(pkgs.makeDesktopItem {
|
|
||||||
name = "slack";
|
|
||||||
desktopName = "Slack";
|
desktopName = "Slack";
|
||||||
exec = "${brave}/opt/brave.com/brave/brave-browser --app-id=dgboickhmnkjicgoildlenjnlaokbiib --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations";
|
app-id = "mpagibdhafmlkgpemeicgogjnhclenoc";
|
||||||
icon = "brave-dgboickhmnkjicgoildlenjnlaokbiib-Default";
|
browser = "${brave}/opt/brave.com/brave/brave-browser";
|
||||||
})
|
})
|
||||||
(pkgs.makeDesktopItem {
|
(pkgs.makeDesktopItem {
|
||||||
name = "logseq";
|
name = "logseq";
|
||||||
desktopName = "Logseq";
|
desktopName = "Logseq";
|
||||||
exec = "${pkgs.logseq}/bin/logseq --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --disable-gpu";
|
exec = "${logseq}/bin/logseq --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --disable-gpu";
|
||||||
|
})
|
||||||
|
(import ../../lib/mkapp.nix "teams" {
|
||||||
|
inherit pkgs;
|
||||||
|
browser = "${brave}/opt/brave.com/brave/brave-browser";
|
||||||
|
app-id = "cifhbcnohmdccbgoicgdjpfamggdegmo";
|
||||||
|
desktopName = "Microsoft Teams";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
exec-once = ${pkgs.swaybg}/bin/swaybg -o eDP-1 -i ~/Pictures/backgrounds/nix-wallpaper-simple-red.png &
|
exec-once = ${pkgs.swaybg}/bin/swaybg -o eDP-1 -i ~/Pictures/backgrounds/nix-wallpaper-simple-red.png &
|
||||||
|
|
||||||
monitor = eDP-1, preferred, 0x0, 1.2
|
monitor = eDP-1, preferred, 0x0, 1.2
|
||||||
workspace = eDP-1, 5
|
monitor = HDMI-A-1, 1920x1080@144, auto, 1
|
||||||
|
|
||||||
input {
|
input {
|
||||||
kb_variant = dvorak
|
kb_variant = dvorak
|
||||||
|
|
@ -57,7 +57,10 @@
|
||||||
|
|
||||||
general {
|
general {
|
||||||
gaps_out = 10
|
gaps_out = 10
|
||||||
|
border_size = 3
|
||||||
}
|
}
|
||||||
|
bind = SUPER, E, focuswindow, thunderbird
|
||||||
|
bind = SUPER, t, focuswindow, brave-cifhbcnohmdccbgoicgdjpfamggdegmo-Profile_2
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,6 @@
|
||||||
"vscode"
|
"vscode"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager = {
|
networkmanager = {
|
||||||
plugins = [ pkgs.networkmanager-openvpn ];
|
plugins = [ pkgs.networkmanager-openvpn ];
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,7 @@
|
||||||
wsbind = 9, HDMI-A-1
|
wsbind = 9, HDMI-A-1
|
||||||
wsbind = 10,HDMI-A-1
|
wsbind = 10,HDMI-A-1
|
||||||
bind = SUPER_SHIFT, X, killactive,
|
bind = SUPER_SHIFT, X, killactive,
|
||||||
|
bind = SUPER, E, exec, ${ my-deps.terminal } -e aerc
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue