mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Add utility programs to path
This commit is contained in:
parent
905d55db30
commit
4f1ae0ec76
3 changed files with 19 additions and 15 deletions
|
|
@ -20,6 +20,10 @@
|
||||||
pkgs.cliphist
|
pkgs.cliphist
|
||||||
pkgs.wl-clipboard
|
pkgs.wl-clipboard
|
||||||
(pkgs.writeScriptBin "clipboard" "cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy")
|
(pkgs.writeScriptBin "clipboard" "cliphist list | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy")
|
||||||
|
|
||||||
|
pkgs.playerctl
|
||||||
|
pkgs.brightnessctl
|
||||||
|
pkgs.grimblast
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,4 @@
|
||||||
{
|
{ config, lib, ... }:
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.myConfig.de.hyprland.enable {
|
config = lib.mkIf config.myConfig.de.hyprland.enable {
|
||||||
wayland.windowManager.hyprland.extraConfig = ''
|
wayland.windowManager.hyprland.extraConfig = ''
|
||||||
|
|
@ -78,9 +73,9 @@
|
||||||
# Control media
|
# Control media
|
||||||
${
|
${
|
||||||
let
|
let
|
||||||
play-pause = "${lib.getExe pkgs.playerctl} --ignore-player=brave play-pause";
|
play-pause = "playerctl --ignore-player=brave play-pause";
|
||||||
play-next = "${lib.getExe pkgs.playerctl} --ignore-player=brave next";
|
play-next = "playerctl --ignore-player=brave next";
|
||||||
play-previous = "${lib.getExe pkgs.playerctl} --ignore-player=brave previous";
|
play-previous = "playerctl --ignore-player=brave previous";
|
||||||
mute = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
mute = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||||
volume-up = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+";
|
volume-up = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+";
|
||||||
volume-down = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-";
|
volume-down = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-";
|
||||||
|
|
@ -103,12 +98,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
# Adjust brightness
|
# Adjust brightness
|
||||||
bindel = , XF86MonBrightnessUp, exec, ${lib.getExe pkgs.brightnessctl} -e set +2%
|
bindel = , XF86MonBrightnessUp, exec, brightnessctl -e set +2%
|
||||||
bindel = , XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} -e set 2%-
|
bindel = , XF86MonBrightnessDown, exec, brightnessctl -e set 2%-
|
||||||
|
|
||||||
# Screenshot
|
# Screenshot
|
||||||
bind = , Print, exec, ${lib.getExe pkgs.grimblast} --notify --freeze copysave output
|
bind = , Print, exec, grimblast --notify --freeze copysave output
|
||||||
bind = SHIFT, Print, exec, ${lib.getExe pkgs.grimblast} --notify --freeze copysave area
|
bind = SHIFT, Print, exec, grimblast --notify --freeze copysave area
|
||||||
|
|
||||||
# Escape special workspace
|
# Escape special workspace
|
||||||
${lib.concatMapStringsSep "\n" (n: "bind = SUPER, ${toString n}, togglespecialworkspace, blank") (
|
${lib.concatMapStringsSep "\n" (n: "bind = SUPER, ${toString n}, togglespecialworkspace, blank") (
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,11 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.myConfig.shell.enable {
|
config = lib.mkIf config.myConfig.shell.enable {
|
||||||
|
home.packages = [
|
||||||
|
pkgs.eza
|
||||||
|
pkgs.bat
|
||||||
|
];
|
||||||
|
|
||||||
home.shellAliases =
|
home.shellAliases =
|
||||||
let
|
let
|
||||||
nixAliases =
|
nixAliases =
|
||||||
|
|
@ -49,7 +54,7 @@
|
||||||
};
|
};
|
||||||
convertAliasToCmd =
|
convertAliasToCmd =
|
||||||
str:
|
str:
|
||||||
"${lib.getExe pkgs.eza} --header --group --time-style=long-iso --group-directories-first --sort=name --icons=auto --git --git-repos-no-status --binary "
|
"eza --header --group --time-style=long-iso --group-directories-first --sort=name --icons=auto --git --git-repos-no-status --binary "
|
||||||
+ (builtins.replaceStrings
|
+ (builtins.replaceStrings
|
||||||
[
|
[
|
||||||
"ll"
|
"ll"
|
||||||
|
|
@ -82,7 +87,7 @@
|
||||||
.${config.myConfig.de.theme};
|
.${config.myConfig.de.theme};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
cat = "${lib.getExe pkgs.bat} --plain --theme=${theme}";
|
cat = "bat --plain --theme=${theme}";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
lib.mkMerge [
|
lib.mkMerge [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue