mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 15:36:12 +01:00
alejandra and dwm xf86 keys
This commit is contained in:
@@ -2,38 +2,38 @@
|
||||
myAliases = {
|
||||
".." = "cd ..";
|
||||
"cd.." = "cd ..";
|
||||
|
||||
|
||||
ls = "command eza";
|
||||
grep = "grep --color=auto";
|
||||
fgrep = "fgrep --color=auto";
|
||||
egrep = "egrep --color=auto";
|
||||
|
||||
l="eza -G --icons";
|
||||
ll="eza -l --icons";
|
||||
lg="eza -lG";
|
||||
lall="eza -lahF --icons --git";
|
||||
lalg="eza -laGhF --icons --git";
|
||||
latree="eza -laGghHT --git --icons";
|
||||
l = "eza -G --icons";
|
||||
ll = "eza -l --icons";
|
||||
lg = "eza -lG";
|
||||
lall = "eza -lahF --icons --git";
|
||||
lalg = "eza -laGhF --icons --git";
|
||||
latree = "eza -laGghHT --git --icons";
|
||||
la = "eza -la --git --icons";
|
||||
lsd = "eza -laD";
|
||||
|
||||
cls="clear";
|
||||
cls = "clear";
|
||||
# df="df -ahiT --total";
|
||||
userlist="cut -d: -f1 /etc/passwd";
|
||||
free="free -mt";
|
||||
du="du -ach | sort -h";
|
||||
ps="ps auxf";
|
||||
userlist = "cut -d: -f1 /etc/passwd";
|
||||
free = "free -mt";
|
||||
du = "du -ach | sort -h";
|
||||
ps = "ps auxf";
|
||||
|
||||
sudo="sudo ";
|
||||
reload="exec $SHELL -l";
|
||||
sudo = "sudo ";
|
||||
reload = "exec $SHELL -l";
|
||||
|
||||
xclip = "xclip -selection c";
|
||||
|
||||
mkdir="mkdir -pv";
|
||||
psmem="ps -e -orss=,args= | sort -b -k1 -nr";
|
||||
psmem10="ps -e -orss=,args= | sort -b -k1 -nr | head -10";
|
||||
pscpu="ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr";
|
||||
pscpu10="ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr | head -10";
|
||||
mkdir = "mkdir -pv";
|
||||
psmem = "ps -e -orss=,args= | sort -b -k1 -nr";
|
||||
psmem10 = "ps -e -orss=,args= | sort -b -k1 -nr | head -10";
|
||||
pscpu = "ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr";
|
||||
pscpu10 = "ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr | head -10";
|
||||
|
||||
gua = "git remote | xargs -L1 git push --all";
|
||||
};
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
let cli = import ./aliases.nix; in
|
||||
{
|
||||
let
|
||||
cli = import ./aliases.nix;
|
||||
in {
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = cli.myAliases;
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
bc
|
||||
bottom
|
||||
ncdu
|
||||
ltex-ls
|
||||
ltex-ls
|
||||
nil
|
||||
alejandra
|
||||
alejandra
|
||||
timer
|
||||
jq
|
||||
diffsitter
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
enable = true;
|
||||
userName = "Michał Czyż";
|
||||
userEmail = "mike@c2yz.com";
|
||||
signing = {
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
{config, pkgs, ...}: let
|
||||
cli = import ../aliases.nix;
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cli = import ../aliases.nix;
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
];
|
||||
@@ -12,7 +16,7 @@ in {
|
||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
||||
|
||||
shellAliases = cli.myAliases;
|
||||
|
||||
|
||||
plugins = [
|
||||
{
|
||||
name = "powerlevel10k";
|
||||
@@ -20,13 +24,13 @@ in {
|
||||
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
enableAutosuggestions = true;
|
||||
|
||||
syntaxHighlighting = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
|
||||
historySubstringSearch = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
{lib, pkgs, config, ...}: {
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
|
||||
];
|
||||
|
||||
# dconf.settings."org/gnome/desktop/interface".color-scheme =
|
||||
|
||||
# dconf.settings."org/gnome/desktop/interface".color-scheme =
|
||||
# if config.colorscheme.variant == "dark"
|
||||
# then "prefer-dark"
|
||||
# else if config.colorscheme.variant == "light"
|
||||
@@ -11,5 +15,4 @@
|
||||
# else "default";
|
||||
|
||||
# xdg.portal.enable = true;
|
||||
|
||||
}
|
||||
|
||||
@@ -2,6 +2,5 @@
|
||||
services.betterlockscreen = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.betterlockscreen;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
@@ -12,7 +12,7 @@
|
||||
./easyeffects.nix
|
||||
./theming.nix
|
||||
];
|
||||
|
||||
|
||||
home.packages = with pkgs; [
|
||||
dmenu
|
||||
st
|
||||
@@ -30,7 +30,7 @@
|
||||
xorg.libxcb
|
||||
xorg.libXft
|
||||
xorg.libXinerama
|
||||
xorg.xinit
|
||||
xorg.xinit
|
||||
xorg.xinput
|
||||
brightnessctl
|
||||
xclip
|
||||
@@ -47,7 +47,7 @@
|
||||
lf
|
||||
pamixer
|
||||
w3m
|
||||
bat
|
||||
bat
|
||||
efibootmgr
|
||||
eww
|
||||
fontconfig
|
||||
@@ -78,7 +78,7 @@
|
||||
source = ./.xinitrc;
|
||||
};
|
||||
".zprofile" = {
|
||||
source = ./.zprofile;
|
||||
source = ./.zprofile;
|
||||
};
|
||||
".config/picom/black_to_transparent.frag" = {
|
||||
source = ./black_to_transparent.frag;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
@@ -7,7 +7,7 @@
|
||||
services.picom = {
|
||||
enable = true;
|
||||
package = pkgs.unstable.picom;
|
||||
backend = "glx";
|
||||
backend = "glx";
|
||||
|
||||
shadow = true;
|
||||
shadowOpacity = 0.2;
|
||||
@@ -56,16 +56,16 @@
|
||||
|
||||
# xprop | grep -i 'class'
|
||||
opacity-rule = [
|
||||
"90:class_g = 'neovide'"
|
||||
"90:class_g = 'code-oss'"
|
||||
"90:class_g = 'discord'"
|
||||
"90:class_g = 'Emacs'"
|
||||
"90:class_g = 'TelegramDesktop'"
|
||||
"90:class_g = 'Spotify'"
|
||||
"90:class_g = 'easyeffects'"
|
||||
"90:class_g = 'kitty'"
|
||||
"90:class_g = 'Nemo'"
|
||||
"97:class_g = 'firefox'"
|
||||
"90:class_g = 'neovide'"
|
||||
"90:class_g = 'code-oss'"
|
||||
"90:class_g = 'discord'"
|
||||
"90:class_g = 'Emacs'"
|
||||
"90:class_g = 'TelegramDesktop'"
|
||||
"90:class_g = 'Spotify'"
|
||||
"90:class_g = 'easyeffects'"
|
||||
"90:class_g = 'kitty'"
|
||||
"90:class_g = 'Nemo'"
|
||||
"97:class_g = 'firefox'"
|
||||
];
|
||||
|
||||
# Exclude conditions for background blur.
|
||||
@@ -95,5 +95,5 @@
|
||||
#"nordify.glsl:class_g = 'miru'"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
lib,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
|
||||
@@ -1,4 +1,9 @@
|
||||
{lib, config, pkgs, ...}: {
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# enable gtk
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# xdhp = pkgs.inputs.hyprland.xdg-desktop-portal-hyprland.override {inherit hyprland;};
|
||||
in {
|
||||
imports = [
|
||||
../common
|
||||
../common
|
||||
../common/wayland-wm
|
||||
];
|
||||
|
||||
@@ -26,18 +26,18 @@ in {
|
||||
xdg-desktop-portal-hyprland
|
||||
];
|
||||
|
||||
# wayland.windowManger.hyprland = {
|
||||
# enable = true;
|
||||
# # package = hyprland;
|
||||
# systemd = {
|
||||
# enable = true;
|
||||
# # Same as default but stop graphical-session too
|
||||
# extraCommands = lib.mkBefore [
|
||||
# "systemctl --user stop graphical-session.target"
|
||||
# "systemctl --user start hyprland-session.target"
|
||||
# ];
|
||||
# };
|
||||
#
|
||||
# #TODO: Add hyprland config
|
||||
# };
|
||||
# wayland.windowManger.hyprland = {
|
||||
# enable = true;
|
||||
# # package = hyprland;
|
||||
# systemd = {
|
||||
# enable = true;
|
||||
# # Same as default but stop graphical-session too
|
||||
# extraCommands = lib.mkBefore [
|
||||
# "systemctl --user stop graphical-session.target"
|
||||
# "systemctl --user start hyprland-session.target"
|
||||
# ];
|
||||
# };
|
||||
#
|
||||
# #TODO: Add hyprland config
|
||||
# };
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
};
|
||||
|
||||
theme = "Gruvbox Dark";
|
||||
|
||||
|
||||
settings = {
|
||||
confirm_os_window_close = 0;
|
||||
detect_urls = true;
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
{inputs, pkgs, ...}: {
|
||||
|
||||
nixpkgs.overlays = [
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
nixpkgs.overlays = [
|
||||
inputs.neovim-nightly-overlay.overlay
|
||||
];
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
terminal = "screen-256color";
|
||||
baseIndex = 1;
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
sensible
|
||||
sensible
|
||||
vim-tmux-navigator
|
||||
gruvbox
|
||||
yank
|
||||
|
||||
Reference in New Issue
Block a user