xdg term
This commit is contained in:
parent
ecfbf9a557
commit
cf9fd657b6
5 changed files with 27 additions and 9 deletions
|
@ -54,6 +54,9 @@ in
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
glfw
|
glfw
|
||||||
|
glxinfo
|
||||||
|
vulkan-tools
|
||||||
|
mangohud
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ in
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
(writeShellScriptBin "systemd-owner" "systemctl show -pUser,UID $@")
|
(writeShellScriptBin "systemd-owner" "systemctl show -pUser,UID $@")
|
||||||
(writeShellScriptBin "tree" "${lib.getExe pkgs.eza} -T --git -lh --no-permissions --no-user --no-filesize --no-time")
|
(writeShellScriptBin "tree" "${lib.getExe pkgs.eza} -T --git -lh --no-permissions --no-user --no-filesize --no-time")
|
||||||
|
(writeShellScriptBin "spawn" ''exec "$@" &> /dev/null &'')
|
||||||
urlencode
|
urlencode
|
||||||
pstree
|
pstree
|
||||||
dos2unix
|
dos2unix
|
||||||
|
@ -48,10 +49,6 @@ in
|
||||||
wev
|
wev
|
||||||
qdirstat
|
qdirstat
|
||||||
libva-utils
|
libva-utils
|
||||||
glxinfo
|
|
||||||
alacritty
|
|
||||||
vulkan-tools
|
|
||||||
|
|
||||||
gparted
|
gparted
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -84,6 +81,8 @@ in
|
||||||
|
|
||||||
# virtualisation.docker.enable = true;
|
# virtualisation.docker.enable = true;
|
||||||
|
|
||||||
|
services.dbus.implementation = "broker";
|
||||||
|
|
||||||
|
|
||||||
grimmShared.tooling.nvim.plugins = with pkgs.vimPlugins; [
|
grimmShared.tooling.nvim.plugins = with pkgs.vimPlugins; [
|
||||||
vim-scala
|
vim-scala
|
||||||
|
|
|
@ -39,6 +39,7 @@ in
|
||||||
(callPackage ../../custom/deskwhich/package.nix { })
|
(callPackage ../../custom/deskwhich/package.nix { })
|
||||||
|
|
||||||
zathura
|
zathura
|
||||||
|
alacritty
|
||||||
imhex
|
imhex
|
||||||
libreoffice-qt
|
libreoffice-qt
|
||||||
filezilla
|
filezilla
|
||||||
|
@ -55,8 +56,17 @@ in
|
||||||
vlc
|
vlc
|
||||||
blender
|
blender
|
||||||
thunderbird
|
thunderbird
|
||||||
|
xdg-terminal-exec
|
||||||
|
xdg-utils
|
||||||
];
|
];
|
||||||
|
|
||||||
|
xdg.terminal-exec = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
default = [ "Alacritty.desktop" "kitty.desktop" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
xdg.mime.enable = true;
|
xdg.mime.enable = true;
|
||||||
xdg.mime.addedAssociations = {
|
xdg.mime.addedAssociations = {
|
||||||
"application/java-vm" = [
|
"application/java-vm" = [
|
||||||
|
|
|
@ -35,17 +35,25 @@
|
||||||
let
|
let
|
||||||
patches = [
|
patches = [
|
||||||
{
|
{
|
||||||
|
# tlpui
|
||||||
url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/305278.patch";
|
url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/305278.patch";
|
||||||
hash = "sha256-8RvPI8Id+Ttgv07IMBTAxkSc+K00WhiWgdgrCcULd7o=";
|
hash = "sha256-8RvPI8Id+Ttgv07IMBTAxkSc+K00WhiWgdgrCcULd7o=";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
# rmenu 1.2.2
|
||||||
url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/307541.patch";
|
url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/307541.patch";
|
||||||
hash = "sha256-cyxiWCxBOKrET710C8o9Cwksy64HRez6mB1qF+anHMI=";
|
hash = "sha256-cyxiWCxBOKrET710C8o9Cwksy64HRez6mB1qF+anHMI=";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
# cpupower meta.mainProgram
|
||||||
url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/308476.patch";
|
url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/308476.patch";
|
||||||
hash = "sha256-J/Bvz4RUn9lP7H4s/c6bZEX9dfWsxfG/dpXYF99U3Vs=";
|
hash = "sha256-J/Bvz4RUn9lP7H4s/c6bZEX9dfWsxfG/dpXYF99U3Vs=";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
# xdg term
|
||||||
|
url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/303225.patch";
|
||||||
|
hash = "sha256-XEwkHOY6Ye0IwEPXWHMH6kST/x6TOeLONfdDQymgw40=";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
customNixosSystem = system: definitions:
|
customNixosSystem = system: definitions:
|
||||||
|
|
|
@ -8,7 +8,6 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
alacritty
|
|
||||||
rmenu
|
rmenu
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
|
@ -40,7 +39,6 @@ in
|
||||||
down = "j";
|
down = "j";
|
||||||
up = "k";
|
up = "k";
|
||||||
right = "l";
|
right = "l";
|
||||||
term = getExe pkgs.alacritty;
|
|
||||||
menu = "${getExe rmenu} -r drun | xargs swaymsg exec --";
|
menu = "${getExe rmenu} -r drun | xargs swaymsg exec --";
|
||||||
menu_run = "${getExe rmenu} -r run | xargs swaymsg exec --";
|
menu_run = "${getExe rmenu} -r run | xargs swaymsg exec --";
|
||||||
|
|
||||||
|
@ -56,8 +54,8 @@ in
|
||||||
"$mod+d" = "exec $menu";
|
"$mod+d" = "exec $menu";
|
||||||
"$mod+Shift+d" = "exec $menu_run";
|
"$mod+Shift+d" = "exec $menu_run";
|
||||||
"$mod+Shift+s" = ''exec ${getExe grim} -g "$(${getExe slurp} -d)" - | wl-copy'';
|
"$mod+Shift+s" = ''exec ${getExe grim} -g "$(${getExe slurp} -d)" - | wl-copy'';
|
||||||
"$mod+Return" = "exec $term --command xonsh";
|
"$mod+Return" = "exec ${getExe xdg-terminal-exec} xonsh";
|
||||||
"$mod+Shift+Return" = "exec $term";
|
"$mod+Shift+Return" = "exec ${getExe xdg-terminal-exec}";
|
||||||
"$mod+Shift+q" = "kill";
|
"$mod+Shift+q" = "kill";
|
||||||
"$mod+Shift+c" = "reload";
|
"$mod+Shift+c" = "reload";
|
||||||
"$mod+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'";
|
"$mod+Shift+e" = "exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'";
|
||||||
|
@ -152,7 +150,7 @@ in
|
||||||
"$mod+c" = "exec ${getExe swaymux}";
|
"$mod+c" = "exec ${getExe swaymux}";
|
||||||
XF86MonBrightnessUp = "exec ${getExe brightnessctl} s 10+%";
|
XF86MonBrightnessUp = "exec ${getExe brightnessctl} s 10+%";
|
||||||
XF86MonBrightnessDown = "exec ${getExe brightnessctl} s 10-%";
|
XF86MonBrightnessDown = "exec ${getExe brightnessctl} s 10-%";
|
||||||
XF86Explorer = "exec $term --command ${getExe ranger}";
|
XF86Explorer = "exec ${getExe xdg-terminal-exec} ${getExe ranger}";
|
||||||
XF86Search = "exec ${getExe searchclip}";
|
XF86Search = "exec ${getExe searchclip}";
|
||||||
XF86HomePage =
|
XF86HomePage =
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in a new issue