alejandra and dwm xf86 keys

This commit is contained in:
2024-04-22 08:26:49 +02:00
parent 038bc3b7e5
commit 5d6abd228e
34 changed files with 360 additions and 302 deletions

View File

@@ -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";
};

View File

@@ -1,5 +1,6 @@
let cli = import ./aliases.nix; in
{
let
cli = import ./aliases.nix;
in {
programs.bash = {
enable = true;
shellAliases = cli.myAliases;

View File

@@ -12,9 +12,9 @@
bc
bottom
ncdu
ltex-ls
ltex-ls
nil
alejandra
alejandra
timer
jq
diffsitter

View File

@@ -1,6 +1,6 @@
{
programs.git = {
enable = true;
enable = true;
userName = "Michał Czyż";
userEmail = "mike@c2yz.com";
signing = {

View File

@@ -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;
};

View File

@@ -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;
}

View File

@@ -2,6 +2,5 @@
services.betterlockscreen = {
enable = true;
package = pkgs.unstable.betterlockscreen;
};
}

View File

@@ -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;

View File

@@ -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'"
];
};
};
};
}

View File

@@ -1,5 +1,5 @@
{
lib,
lib,
config,
pkgs,
...

View File

@@ -1,4 +1,9 @@
{lib, config, pkgs, ...}: {
{
lib,
config,
pkgs,
...
}: {
# enable gtk
gtk = {
enable = true;

View File

@@ -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
# };
}

View File

@@ -7,7 +7,7 @@
};
theme = "Gruvbox Dark";
settings = {
confirm_os_window_close = 0;
detect_urls = true;

View File

@@ -1,6 +1,9 @@
{inputs, pkgs, ...}: {
nixpkgs.overlays = [
{
inputs,
pkgs,
...
}: {
nixpkgs.overlays = [
inputs.neovim-nightly-overlay.overlay
];

View File

@@ -7,7 +7,7 @@
terminal = "screen-256color";
baseIndex = 1;
plugins = with pkgs.tmuxPlugins; [
sensible
sensible
vim-tmux-navigator
gruvbox
yank

View File

@@ -1,10 +1,10 @@
# This is your home-manager configuration file
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
{
{
inputs,
outputs,
lib,
config,
config,
pkgs,
...
}: {
@@ -18,7 +18,7 @@
# You can also split up your configuration and import pieces of it here:
# ./nvim.nix
./features/cli
./features/cli
./features/desktop/dwm
./features/kitty.nix
./features/neovim.nix
@@ -26,7 +26,7 @@
./features/neovide.nix
./features/emacs.nix
];
colorScheme = inputs.nix-colors.colorSchemes.gruvbox-dark-medium;
nixpkgs = {
@@ -76,10 +76,10 @@
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = (with pkgs; [
home.packages = with pkgs; [
# > graphics <
tuxpaint
krita
krita
# > terminal <
kitty
@@ -122,11 +122,11 @@
lunarvim
evolution
rstudio
# > gaming <
prismlauncher
classicube
steam
steam
# > development <
clang
@@ -140,10 +140,10 @@
boost
gcc-unwrapped
gcc.cc.lib
docker
docker-compose
]);
];
services.gnome-keyring = {
enable = true;
@@ -153,9 +153,9 @@
"pkcs11"
];
};
home.sessionVariables = {
EDITOR = "nvim";
EDITOR = "nvim";
};
# Let Home Manager install and manage itself.