initial commit
This commit is contained in:
185
configuration.nix
Normal file
185
configuration.nix
Normal file
@@ -0,0 +1,185 @@
|
|||||||
|
# Edit this configuration file to define what should be installed on
|
||||||
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
pkg_with_working_nitrogen = import (builtins.fetchTarball {
|
||||||
|
url = "https://github.com/NixOS/nixpkgs/archive/c0c50dfcb70d48e5b79c4ae9f1aa9d339af860b4.tar.gz";
|
||||||
|
sha256 = "17p3w4mgfr4yj2p0jz6kqgzhyr04h4fap5hnd837664xd1xhwdjb";
|
||||||
|
}) { inherit (pkgs) system; };
|
||||||
|
|
||||||
|
old-nitrogen = pkg_with_working_nitrogen.nitrogen;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ # Include the results of the hardware scan.
|
||||||
|
./hardware-configuration.nix
|
||||||
|
./system/system.nix
|
||||||
|
# inputs.home-manager.nixosModules.default
|
||||||
|
];
|
||||||
|
|
||||||
|
# Bootloader.
|
||||||
|
boot.loader.grub.enable = true;
|
||||||
|
boot.loader.grub.device = "/dev/nvme0n1";
|
||||||
|
boot.loader.grub.useOSProber = true;
|
||||||
|
|
||||||
|
networking.hostName = "thonkpad"; # Define your hostname.
|
||||||
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
nixPath = [
|
||||||
|
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
|
||||||
|
"nixos-config=/home/synchronous/nix-cfg/configuration.nix"
|
||||||
|
"/nix/var/nix/profiles/per-user/root/channels"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Configure network proxy if necessary
|
||||||
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||||
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||||
|
|
||||||
|
# Enable networking
|
||||||
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "America/New_York";
|
||||||
|
|
||||||
|
# Select internationalisation properties.
|
||||||
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
|
i18n.extraLocaleSettings = {
|
||||||
|
LC_ADDRESS = "en_US.UTF-8";
|
||||||
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
||||||
|
LC_MEASUREMENT = "en_US.UTF-8";
|
||||||
|
LC_MONETARY = "en_US.UTF-8";
|
||||||
|
LC_NAME = "en_US.UTF-8";
|
||||||
|
LC_NUMERIC = "en_US.UTF-8";
|
||||||
|
LC_PAPER = "en_US.UTF-8";
|
||||||
|
LC_TELEPHONE = "en_US.UTF-8";
|
||||||
|
LC_TIME = "en_US.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable CUPS to print documents.
|
||||||
|
services.printing.enable = true;
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
|
# Enable sound with pipewire.
|
||||||
|
hardware.pulseaudio.enable = false;
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
alsa.enable = true;
|
||||||
|
alsa.support32Bit = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
# If you want to use JACK applications, uncomment this
|
||||||
|
#jack.enable = true;
|
||||||
|
|
||||||
|
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||||
|
# no need to redefine it in your config for now)
|
||||||
|
#media-session.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
|
# services.xserver.libinput.enable = true;
|
||||||
|
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.users.synchronous = {
|
||||||
|
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "jake";
|
||||||
|
extraGroups = [ "networkmanager" "wheel" ];
|
||||||
|
packages = with pkgs; [
|
||||||
|
kdePackages.kate
|
||||||
|
firefox
|
||||||
|
git
|
||||||
|
arandr
|
||||||
|
procs
|
||||||
|
htop
|
||||||
|
zsh
|
||||||
|
ripgrep
|
||||||
|
rofi
|
||||||
|
alacritty
|
||||||
|
python3
|
||||||
|
tree
|
||||||
|
old-nitrogen
|
||||||
|
polybar
|
||||||
|
sxhkd
|
||||||
|
bspwm
|
||||||
|
librewolf
|
||||||
|
eza
|
||||||
|
flameshot
|
||||||
|
neofetch lolcat
|
||||||
|
nnn xclip
|
||||||
|
brightnessctl
|
||||||
|
xbindkeys
|
||||||
|
pulseaudio
|
||||||
|
xorg.xf86inputsynaptics
|
||||||
|
libnotify # for notify-send
|
||||||
|
alejandra
|
||||||
|
# procps # for pgrep
|
||||||
|
# xorg.xrandr
|
||||||
|
# thunderbird
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
# Install firefox.
|
||||||
|
programs.firefox.enable = true;
|
||||||
|
|
||||||
|
# Allow unfree packages
|
||||||
|
# nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
# List packages installed in system profile. To search, run:
|
||||||
|
# $ nix search wget
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
vim
|
||||||
|
neovim
|
||||||
|
linux-manual
|
||||||
|
man-pages
|
||||||
|
man-pages-posix
|
||||||
|
fontconfig
|
||||||
|
python3
|
||||||
|
rofi
|
||||||
|
flameshot
|
||||||
|
tree
|
||||||
|
# nitrogen
|
||||||
|
polybar
|
||||||
|
sxhkd
|
||||||
|
bspwm
|
||||||
|
librewolf
|
||||||
|
];
|
||||||
|
|
||||||
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
|
# started in user sessions.
|
||||||
|
# programs.mtr.enable = true;
|
||||||
|
# programs.gnupg.agent = {
|
||||||
|
# enable = true;
|
||||||
|
# enableSSHSupport = true;
|
||||||
|
# };
|
||||||
|
|
||||||
|
# List services that you want to enable:
|
||||||
|
|
||||||
|
# Enable the OpenSSH daemon.
|
||||||
|
# services.openssh.enable = true;
|
||||||
|
|
||||||
|
# Open ports in the firewall.
|
||||||
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
|
# Or disable the firewall altogether.
|
||||||
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
# This value determines the NixOS release from which the default
|
||||||
|
# settings for stateful data, like file locations and database versions
|
||||||
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
# this value at the release version of the first install of this system.
|
||||||
|
# Before changing this value read the documentation for this option
|
||||||
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
|
system.stateVersion = "24.11"; # Did you read the comment?
|
||||||
|
|
||||||
|
}
|
||||||
79
flake.lock
generated
Normal file
79
flake.lock
generated
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-parts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1733312601,
|
||||||
|
"narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=",
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "hercules-ci",
|
||||||
|
"repo": "flake-parts",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"home-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1734622215,
|
||||||
|
"narHash": "sha256-OOfI0XhSJGHblfdNDhfnn8QnZxng63rWk9eeJ2tCbiI=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "1395379a7a36e40f2a76e7b9936cc52950baa1be",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1734424634,
|
||||||
|
"narHash": "sha256-cHar1vqHOOyC7f1+tVycPoWTfKIaqkoe1Q6TnKzuti4=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "d3c42f187194c26d9f0309a8ecc469d6c878ce33",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-lib": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1733096140,
|
||||||
|
"narHash": "sha256-1qRH7uAUsyQI7R1Uwl4T+XvdNv778H0Nb5njNrqvylY=",
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs/archive/5487e69da40cbd611ab2cadee0b4637225f7cfae.tar.gz"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"type": "tarball",
|
||||||
|
"url": "https://github.com/NixOS/nixpkgs/archive/5487e69da40cbd611ab2cadee0b4637225f7cfae.tar.gz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-parts": "flake-parts",
|
||||||
|
"home-manager": "home-manager",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
101
flake.nix
Normal file
101
flake.nix
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
{
|
||||||
|
description = "Nixos config flake";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = inputs @ {
|
||||||
|
flake-parts,
|
||||||
|
self,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
flake-parts.lib.mkFlake {inherit inputs;} {
|
||||||
|
imports = [
|
||||||
|
# To import a flake module
|
||||||
|
# 1. Add foo to inputs
|
||||||
|
# 2. Add foo as a parameter to the outputs function
|
||||||
|
# 3. Add here: foo.flakeModule
|
||||||
|
#cajun-xmonad.default
|
||||||
|
];
|
||||||
|
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin"];
|
||||||
|
perSystem = {
|
||||||
|
config,
|
||||||
|
self',
|
||||||
|
inputs',
|
||||||
|
pkgs,
|
||||||
|
system,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
# Per-system attributes can be defined here. The self' and inputs'
|
||||||
|
# module parameters provide easy access to attributes of the same
|
||||||
|
# system.
|
||||||
|
|
||||||
|
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
|
||||||
|
# packages.default = pkgs.hello;
|
||||||
|
# formatter = pkgs.nixfmt-rfc-style;
|
||||||
|
formatter = pkgs.alejandra;
|
||||||
|
};
|
||||||
|
flake = {
|
||||||
|
# The usual flake attributes can be defined here, including system-
|
||||||
|
# agnostic ones like nixosModule and system-enumerating ones, although
|
||||||
|
# those are more easily expressed in perSystem.
|
||||||
|
# nixosConfigurations.myhostname = "thonkpad";
|
||||||
|
nixosConfigurations.thonkpad = inputs.nixpkgs.lib.nixosSystem rec {
|
||||||
|
system = "x86_64-linux";
|
||||||
|
pkgs = import inputs.nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
|
||||||
|
config = {
|
||||||
|
allowUnfree = true;
|
||||||
|
packageOverrides = pkgs: {
|
||||||
|
# "package" = pkgs."package".overrideAttrs (attrs: {...})
|
||||||
|
};
|
||||||
|
};
|
||||||
|
overlays = [
|
||||||
|
# inputs.emacs-overlay.overlay -- breaks doom on 30.??
|
||||||
|
];
|
||||||
|
|
||||||
|
home.packages = with pkgs; [ xrandr procps bspwm sxhkd ];
|
||||||
|
};
|
||||||
|
specialArgs = {inherit inputs;};
|
||||||
|
# extraSpecialArgs = {inherit inputs;};
|
||||||
|
modules = [
|
||||||
|
./configuration.nix
|
||||||
|
# inputs.nixos-hardware.nixosModules.system76-gaze18
|
||||||
|
# agenix
|
||||||
|
# agenix.nixosModules.default
|
||||||
|
# home manager
|
||||||
|
inputs.home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.synchronous = import ./home/home.nix;
|
||||||
|
home-manager.extraSpecialArgs = {inherit inputs;};
|
||||||
|
home-manager.backupFileExtension = "hm-backup";
|
||||||
|
|
||||||
|
# Optionally, use home-manager.extraSpecialArgs to pass
|
||||||
|
# arguments to home.nix
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# outputs = { self, nixpkgs, ... }@inputs: {
|
||||||
|
# nixosConfigurations.default = nixpkgs.lib.nixosSystem {
|
||||||
|
# specialArgs = {inherit inputs;};
|
||||||
|
# modules = [
|
||||||
|
# ./configuration.nix
|
||||||
|
# # inputs.home-manager.nixosModules.default
|
||||||
|
# { home-manager.users.synch = import ./home.nix; }
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
}
|
||||||
33
hardware-configuration.nix
Normal file
33
hardware-configuration.nix
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/05ca9d56-3506-43c5-b9ec-be928b782996";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
85
home/home.nix
Normal file
85
home/home.nix
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
|
# manage.
|
||||||
|
home.username = "synchronous";
|
||||||
|
home.homeDirectory = "/home/synchronous";
|
||||||
|
imports = [
|
||||||
|
./programs/programs.nix
|
||||||
|
./services/services.nix
|
||||||
|
./wallpapers/default.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
# This value determines the Home Manager release that your configuration is
|
||||||
|
# compatible with. This helps avoid breakage when a new Home Manager release
|
||||||
|
# introduces backwards incompatible changes.
|
||||||
|
#
|
||||||
|
# You should not change this value, even if you update Home Manager. If you do
|
||||||
|
# want to update the value, then make sure to first check the Home Manager
|
||||||
|
# release notes.
|
||||||
|
home.stateVersion = "24.11"; # Please read the comment before changing.
|
||||||
|
|
||||||
|
# The home.packages option allows you to install Nix packages into your
|
||||||
|
# environment.
|
||||||
|
home.packages = [
|
||||||
|
# # Adds the 'hello' command to your environment. It prints a friendly
|
||||||
|
# # "Hello, world!" when run.
|
||||||
|
# pkgs.hello
|
||||||
|
|
||||||
|
# # It is sometimes useful to fine-tune packages, for example, by applying
|
||||||
|
# # overrides. You can do that directly here, just don't forget the
|
||||||
|
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
|
||||||
|
# # fonts?
|
||||||
|
# (pkgs.nerdfonts.override { fonts = [ "FantasqueSansMono" ]; })
|
||||||
|
|
||||||
|
# # You can also create simple shell scripts directly inside your
|
||||||
|
# # configuration. For example, this adds a command 'my-hello' to your
|
||||||
|
# # environment:
|
||||||
|
# (pkgs.writeShellScriptBin "my-hello" ''
|
||||||
|
# echo "Hello, ${config.home.username}!"
|
||||||
|
# '')
|
||||||
|
];
|
||||||
|
|
||||||
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
|
# plain files is through 'home.file'.
|
||||||
|
home.file = {
|
||||||
|
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
|
||||||
|
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
|
||||||
|
# # symlink to the Nix store copy.
|
||||||
|
# ".screenrc".source = dotfiles/screenrc;
|
||||||
|
|
||||||
|
# # You can also set the file content immediately.
|
||||||
|
# ".gradle/gradle.properties".text = ''
|
||||||
|
# org.gradle.console=verbose
|
||||||
|
# org.gradle.daemon.idletimeout=3600000
|
||||||
|
# '';
|
||||||
|
};
|
||||||
|
|
||||||
|
# Home Manager can also manage your environment variables through
|
||||||
|
# 'home.sessionVariables'. These will be explicitly sourced when using a
|
||||||
|
# shell provided by Home Manager. If you don't want to manage your shell
|
||||||
|
# through Home Manager then you have to manually source 'hm-session-vars.sh'
|
||||||
|
# located at either
|
||||||
|
#
|
||||||
|
# ~/.nix-profile/etc/profile.d/hm-session-vars.sh
|
||||||
|
#
|
||||||
|
# or
|
||||||
|
#
|
||||||
|
# ~/.local/state/nix/profiles/profile/etc/profile.d/hm-session-vars.sh
|
||||||
|
#
|
||||||
|
# or
|
||||||
|
#
|
||||||
|
# /etc/profiles/per-user/root/etc/profile.d/hm-session-vars.sh
|
||||||
|
#
|
||||||
|
home.sessionVariables = {
|
||||||
|
EDITOR = "nvim";
|
||||||
|
HOME = "/home/synchronous";
|
||||||
|
XDG_CACHE_HOME = "$HOME/.cache";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Let Home Manager install and manage itself.
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
}
|
||||||
39
home/programs/alacritty/alacritty.toml
Normal file
39
home/programs/alacritty/alacritty.toml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
[colors.bright]
|
||||||
|
black = "#5c5855"
|
||||||
|
blue = "#01a0e4"
|
||||||
|
cyan = "#b5e4f4"
|
||||||
|
green = "#01a252"
|
||||||
|
magenta = "#a16a94"
|
||||||
|
red = "#db2d20"
|
||||||
|
white = "#f7f7f7"
|
||||||
|
yellow = "#fded02"
|
||||||
|
|
||||||
|
[colors.cursor]
|
||||||
|
cursor = "#a5a2a2"
|
||||||
|
text = "#090300"
|
||||||
|
|
||||||
|
[colors.normal]
|
||||||
|
black = "#090300"
|
||||||
|
blue = "#01a0e4"
|
||||||
|
cyan = "#b5e4f4"
|
||||||
|
green = "#01a252"
|
||||||
|
magenta = "#a16a94"
|
||||||
|
red = "#db2d20"
|
||||||
|
white = "#a5a2a2"
|
||||||
|
yellow = "#fded02"
|
||||||
|
|
||||||
|
[colors.primary]
|
||||||
|
background = "#0d0d0d"
|
||||||
|
foreground = "#a5a2a2"
|
||||||
|
|
||||||
|
[font]
|
||||||
|
size = 7.0
|
||||||
|
[font.normal]
|
||||||
|
family = "monospace"
|
||||||
|
style = "Regular"
|
||||||
|
|
||||||
|
[terminal]
|
||||||
|
|
||||||
|
[terminal.shell]
|
||||||
|
program = "/etc/profiles/per-user/synchronous/bin/zsh"
|
||||||
|
|
||||||
11
home/programs/alacritty/default.nix
Normal file
11
home/programs/alacritty/default.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
builtins,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
programs.alacritty = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.alacritty.settings = lib.trivial.importTOML ./alacritty.toml;
|
||||||
|
}
|
||||||
33
home/programs/bspwm/bspwmrc
Normal file
33
home/programs/bspwm/bspwmrc
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# ██████╗ ███████╗██████╗ ██╗ ██╗███╗ ███?
|
||||||
|
# ██╔══██╗██╔════╝██╔══██╗██║ ██║████╗ ████║
|
||||||
|
# ██████╔╝███████╗██████╔╝██║ █╗ ██║██╔████╔██║
|
||||||
|
# ██╔══██╗╚════██║██╔═══╝ ██║███╗██║██║╚██╔╝██║
|
||||||
|
# ██████╔╝███████║██║ ╚███╔███╔╝██║ ╚═╝ ██║
|
||||||
|
# ╚═════╝ ╚══════╝╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝
|
||||||
|
|
||||||
|
pgrep -x sxhkd > /dev/null || sxhkd &
|
||||||
|
|
||||||
|
xrandr --output eDP-1 --mode 1920x1080 --primary
|
||||||
|
# xrandr --output HDMI-1 --mode 1920x1080 --same-as eDP-1 --scale 1x1
|
||||||
|
|
||||||
|
bspc monitor eDP-1 -d 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
||||||
|
|
||||||
|
bspc config border_width 2
|
||||||
|
bspc config window_gap 2
|
||||||
|
|
||||||
|
bspc config split_ratio 0.50
|
||||||
|
bspc config borderless_monocle true
|
||||||
|
bspc config gapless_monocle true
|
||||||
|
# bspc config merge_overlapping_monitors true
|
||||||
|
bspc rule -a Zathura state=tiled
|
||||||
|
bspc rule -a "Zotero" -o desktop="19" focus=off
|
||||||
|
|
||||||
|
bspc rule -a Gimp desktop='^8' state=floating follow=on
|
||||||
|
bspc rule -a Chromium desktop='^2'
|
||||||
|
bspc rule -a mplayer2 state=floating
|
||||||
|
bspc rule -a Kupfer.py focus=on
|
||||||
|
bspc rule -a Screenkey manage=off
|
||||||
|
nitrogen --restore &
|
||||||
|
# polybar mybar &
|
||||||
|
# picom --daemon 2> /dev/null &
|
||||||
17
home/programs/bspwm/default.nix
Normal file
17
home/programs/bspwm/default.nix
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
xsession.windowManager.bspwm = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = builtins.readFile ./bspwmrc;
|
||||||
|
};
|
||||||
|
|
||||||
|
# home.file.".config/bspwm/bspwmrc".source = ./bspwmrc;
|
||||||
|
|
||||||
|
# home.activation.sourceMyScript = lib.mkAfter ''
|
||||||
|
# source "${config.xdg.configHome}/bspwm/bspwmrc"
|
||||||
|
# '';
|
||||||
|
}
|
||||||
235
home/programs/cmus/autosave
Normal file
235
home/programs/cmus/autosave
Normal file
@@ -0,0 +1,235 @@
|
|||||||
|
set aaa_mode=all
|
||||||
|
set altformat_current=%y
|
||||||
|
set altformat_playlist=%d
|
||||||
|
set altformat_title=cmus
|
||||||
|
set altformat_trackwin= %f%= %d
|
||||||
|
set auto_expand_albums_follow=false
|
||||||
|
set auto_expand_albums_search=false
|
||||||
|
set auto_expand_albums_selcur=false
|
||||||
|
set auto_hide_playlists_panel=false
|
||||||
|
set auto_reshuffle=true
|
||||||
|
set block_key_paste=true
|
||||||
|
set buffer_seconds=10
|
||||||
|
set color_cmdline_attr=default
|
||||||
|
set color_cmdline_bg=default
|
||||||
|
set color_cmdline_fg=default
|
||||||
|
set color_cur_sel_attr=default
|
||||||
|
set color_error=lightred
|
||||||
|
set color_info=lightyellow
|
||||||
|
set color_separator=black
|
||||||
|
set color_statusline_attr=default
|
||||||
|
set color_statusline_bg=default
|
||||||
|
set color_statusline_fg=blue
|
||||||
|
set color_titleline_attr=default
|
||||||
|
set color_titleline_bg=default
|
||||||
|
set color_titleline_fg=blue
|
||||||
|
set color_trackwin_album_attr=bold
|
||||||
|
set color_trackwin_album_bg=default
|
||||||
|
set color_trackwin_album_fg=default
|
||||||
|
set color_win_attr=default
|
||||||
|
set color_win_bg=default
|
||||||
|
set color_win_cur=blue
|
||||||
|
set color_win_cur_attr=default
|
||||||
|
set color_win_cur_sel_attr=default
|
||||||
|
set color_win_cur_sel_bg=darkgray
|
||||||
|
set color_win_cur_sel_fg=default
|
||||||
|
set color_win_dir=blue
|
||||||
|
set color_win_fg=default
|
||||||
|
set color_win_inactive_cur_sel_attr=default
|
||||||
|
set color_win_inactive_cur_sel_bg=default
|
||||||
|
set color_win_inactive_cur_sel_fg=blue
|
||||||
|
set color_win_inactive_sel_attr=default
|
||||||
|
set color_win_inactive_sel_bg=black
|
||||||
|
set color_win_inactive_sel_fg=default
|
||||||
|
set color_win_sel_attr=default
|
||||||
|
set color_win_sel_bg=darkgray
|
||||||
|
set color_win_sel_fg=default
|
||||||
|
set color_win_title_attr=default
|
||||||
|
set color_win_title_bg=default
|
||||||
|
set color_win_title_fg=magenta
|
||||||
|
set confirm_run=true
|
||||||
|
set continue=true
|
||||||
|
set continue_album=true
|
||||||
|
set device=/dev/cdrom
|
||||||
|
set display_artist_sort_name=false
|
||||||
|
set dsp.alsa.device=default
|
||||||
|
set dsp.ao.buffer_size=16384
|
||||||
|
set dsp.ao.device_interface=
|
||||||
|
set dsp.ao.driver=
|
||||||
|
set dsp.ao.wav_counter=1
|
||||||
|
set dsp.ao.wav_dir=/home/synchronous
|
||||||
|
set dsp.jack.resampling_quality=2
|
||||||
|
set dsp.jack.server_name=
|
||||||
|
set dsp.oss.device=
|
||||||
|
set follow=false
|
||||||
|
set format_clipped_text=…
|
||||||
|
set format_current=
|
||||||
|
set format_playlist= . %a - %t
|
||||||
|
set format_playlist_va= . %a - %t
|
||||||
|
set format_statusline= %{status} %t%= %1{follow} %{?show_playback_position?%{position} %{?duration?/ %{duration} }?%{?duration?%{duration} }}
|
||||||
|
set format_title=cmus
|
||||||
|
set format_trackwin= . %t%=
|
||||||
|
set format_trackwin_album=%l
|
||||||
|
set format_trackwin_va= . %t%= %y
|
||||||
|
set format_treewin= %l
|
||||||
|
set format_treewin_artist= %a
|
||||||
|
set icecast_default_charset=ISO-8859-1
|
||||||
|
set id3_default_charset=ISO-8859-1
|
||||||
|
set ignore_duplicates=false
|
||||||
|
set input.aac.priority=50
|
||||||
|
set input.cdio.priority=50
|
||||||
|
set input.cue.priority=50
|
||||||
|
set input.ffmpeg.priority=30
|
||||||
|
set input.flac.priority=50
|
||||||
|
set input.mad.priority=55
|
||||||
|
set input.modplug.priority=50
|
||||||
|
set input.mp4.priority=50
|
||||||
|
set input.mpc.priority=50
|
||||||
|
set input.vorbis.priority=50
|
||||||
|
set input.wav.priority=50
|
||||||
|
set input.wavpack.priority=50
|
||||||
|
set lib_add_filter=
|
||||||
|
set lib_sort=artist title
|
||||||
|
set mixer.alsa.channel=Master
|
||||||
|
set mixer.alsa.device=default
|
||||||
|
set mixer.oss.channel=PCM
|
||||||
|
set mixer.oss.device=
|
||||||
|
set mixer.pulse.restore_volume=1
|
||||||
|
set mouse=false
|
||||||
|
set mpris=true
|
||||||
|
set output_plugin=alsa
|
||||||
|
set passwd=
|
||||||
|
set pause_on_output_change=false
|
||||||
|
set pl_env_vars=
|
||||||
|
set pl_sort=
|
||||||
|
set play_library=true
|
||||||
|
set play_sorted=false
|
||||||
|
set repeat=true
|
||||||
|
set repeat_current=false
|
||||||
|
set replaygain=disabled
|
||||||
|
set replaygain_limit=true
|
||||||
|
set replaygain_preamp=0.000000
|
||||||
|
set resume=false
|
||||||
|
set rewind_offset=5
|
||||||
|
set scroll_offset=2
|
||||||
|
set set_term_title=false
|
||||||
|
set show_all_tracks=true
|
||||||
|
set show_current_bitrate=false
|
||||||
|
set show_hidden=false
|
||||||
|
set show_playback_position=true
|
||||||
|
set show_remaining_time=true
|
||||||
|
set shuffle=albums
|
||||||
|
set skip_track_info=false
|
||||||
|
set smart_artist_sort=true
|
||||||
|
set softvol=false
|
||||||
|
set softvol_state=0 0
|
||||||
|
set sort_albums_by_name=false
|
||||||
|
set start_view=tree
|
||||||
|
set status_display_program=
|
||||||
|
set stop_after_queue=false
|
||||||
|
set time_show_leading_zero=true
|
||||||
|
set tree_width_max=0
|
||||||
|
set tree_width_percent=33
|
||||||
|
set wrap_search=true
|
||||||
|
bind browser backspace browser-up
|
||||||
|
bind browser i toggle show_hidden
|
||||||
|
bind browser space win-activate
|
||||||
|
bind browser u win-update
|
||||||
|
bind common ! push shell
|
||||||
|
bind common + vol +10%
|
||||||
|
bind common , seek -1m
|
||||||
|
bind common - vol -10%
|
||||||
|
bind common . seek +1m
|
||||||
|
bind common / search-start
|
||||||
|
bind common 1 view tree
|
||||||
|
bind common 2 view sorted
|
||||||
|
bind common 3 view playlist
|
||||||
|
bind common 4 view queue
|
||||||
|
bind common 5 view browser
|
||||||
|
bind common 6 view filters
|
||||||
|
bind common 7 view settings
|
||||||
|
bind common < seek -30
|
||||||
|
bind common = vol +10%
|
||||||
|
bind common > seek +30
|
||||||
|
bind common ? search-b-start
|
||||||
|
bind common B player-next-album
|
||||||
|
bind common C toggle continue
|
||||||
|
bind common D win-remove
|
||||||
|
bind common E win-add-Q
|
||||||
|
bind common F push filter
|
||||||
|
bind common G win-bottom
|
||||||
|
bind common I echo {}
|
||||||
|
bind common L win-sel-cur
|
||||||
|
bind common M toggle play_library
|
||||||
|
bind common N search-prev
|
||||||
|
bind common P win-mv-before
|
||||||
|
bind common U win-update-cache
|
||||||
|
bind common Z player-prev-album
|
||||||
|
bind common [ vol +1% +0
|
||||||
|
bind common ] vol +0 +1%
|
||||||
|
bind common ^B win-page-up
|
||||||
|
bind common ^C echo Type :quit<enter> to exit cmus.
|
||||||
|
bind common ^D win-half-page-down
|
||||||
|
bind common ^E win-scroll-down
|
||||||
|
bind common ^F win-page-down
|
||||||
|
bind common ^L refresh
|
||||||
|
bind common ^R toggle repeat_current
|
||||||
|
bind common ^U win-half-page-up
|
||||||
|
bind common ^Y win-scroll-up
|
||||||
|
bind common a win-add-l
|
||||||
|
bind common b player-next
|
||||||
|
bind common c player-pause
|
||||||
|
bind common d run /home/zman/.config/cmus/cover-viewer
|
||||||
|
bind common delete win-remove
|
||||||
|
bind common down win-down
|
||||||
|
bind common e win-add-q
|
||||||
|
bind common end win-bottom
|
||||||
|
bind common enter win-activate
|
||||||
|
bind common f toggle follow
|
||||||
|
bind common g win-top
|
||||||
|
bind common h seek -5
|
||||||
|
bind common home win-top
|
||||||
|
bind common i invert
|
||||||
|
bind common j win-down
|
||||||
|
bind common k win-up
|
||||||
|
bind common l seek +5
|
||||||
|
bind common left seek -5
|
||||||
|
bind common m toggle aaa_mode
|
||||||
|
bind common mlb_click_bar player-pause
|
||||||
|
bind common mlb_click_selected win-activate
|
||||||
|
bind common mouse_scroll_down win-down
|
||||||
|
bind common mouse_scroll_down_bar seek -5
|
||||||
|
bind common mouse_scroll_down_title right-view
|
||||||
|
bind common mouse_scroll_up win-up
|
||||||
|
bind common mouse_scroll_up_bar seek +5
|
||||||
|
bind common mouse_scroll_up_title left-view
|
||||||
|
bind common n search-next
|
||||||
|
bind common o toggle play_sorted
|
||||||
|
bind common p win-mv-after
|
||||||
|
bind common page_down win-page-down
|
||||||
|
bind common page_up win-page-up
|
||||||
|
bind common q quit -i
|
||||||
|
bind common r toggle repeat
|
||||||
|
bind common right seek +5
|
||||||
|
bind common s toggle shuffle
|
||||||
|
bind common space win-toggle
|
||||||
|
bind common t toggle show_remaining_time
|
||||||
|
bind common tab win-next
|
||||||
|
bind common u update-cache
|
||||||
|
bind common up win-up
|
||||||
|
bind common v player-stop
|
||||||
|
bind common x player-play
|
||||||
|
bind common y win-add-p
|
||||||
|
bind common z player-prev
|
||||||
|
bind common { vol -1% -0
|
||||||
|
bind common } vol -0 -1%
|
||||||
|
bind library A set lib_sort=album discnumber tracknumber title filename
|
||||||
|
bind library a set lib_sort=artist album discnumber tracknumber title filename
|
||||||
|
fset 90s=date>=1990&date<2000
|
||||||
|
fset classical=genre="Classical"
|
||||||
|
fset missing-tag=!stream&(artist=""|album=""|title=""|tracknumber=-1|date=-1)
|
||||||
|
fset mp3=filename="*.mp3"
|
||||||
|
fset ogg=filename="*.ogg"
|
||||||
|
fset ogg-or-mp3=ogg|mp3
|
||||||
|
fset unheard=play_count=0
|
||||||
|
factivate
|
||||||
8
home/programs/cmus/default.nix
Normal file
8
home/programs/cmus/default.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.file.".config/cmus/rc".source = ./rc;
|
||||||
|
home.file.".config/cmus/autosave".source = ./autosave;
|
||||||
|
}
|
||||||
34
home/programs/cmus/rc
Normal file
34
home/programs/cmus/rc
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
set output_plugin=alsa
|
||||||
|
set dsp.alsa.device=default
|
||||||
|
set mixer.alsa.device=default
|
||||||
|
set mixer.alsa.channel=Master
|
||||||
|
|
||||||
|
# set altformat_current= %F%= %y
|
||||||
|
# set altformat_playlist= %y
|
||||||
|
set altformat_title=cmus
|
||||||
|
# set altformat_trackwin= %f%= %y
|
||||||
|
set format_current=
|
||||||
|
# set format_playlist= %a - %l
|
||||||
|
set format_title=cmus
|
||||||
|
# set format_trackwin= . %t%= %y
|
||||||
|
# set format_trackwin_va= . %t%= %y
|
||||||
|
set confirm_run=true
|
||||||
|
set aaa_mode=all
|
||||||
|
set buffer_seconds=10
|
||||||
|
set show_hidden=false
|
||||||
|
set format_statusline= %{status} %t%= %1{follow} %{?show_playback_position?%{position} %{?duration?/ %{duration} }?%{?duration?%{duration} }}
|
||||||
|
set format_title=cmus
|
||||||
|
# set altformat_title=%f
|
||||||
|
# set altformat_trackwin= %f
|
||||||
|
set color_statusline_fg=blue
|
||||||
|
set auto_expand_albums_selcur=false
|
||||||
|
set auto_expand_albums_search=false
|
||||||
|
set altformat_playlist=%d
|
||||||
|
|
||||||
|
set lib_sort=artist title
|
||||||
|
set play_sorted=false
|
||||||
|
set repeat=true
|
||||||
|
|
||||||
|
set format_playlist_va= . %a - %t
|
||||||
|
set color_win_title_fg=magenta
|
||||||
|
|
||||||
7
home/programs/nitrogen/default.nix
Normal file
7
home/programs/nitrogen/default.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.file.".config/nitrogen/nitrogen.cfg".source = ./nitrogen.cfg;
|
||||||
|
}
|
||||||
12
home/programs/nitrogen/nitrogen.cfg
Normal file
12
home/programs/nitrogen/nitrogen.cfg
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
[geometry]
|
||||||
|
posx=2
|
||||||
|
posy=25
|
||||||
|
sizex=1912
|
||||||
|
sizey=1049
|
||||||
|
|
||||||
|
[nitrogen]
|
||||||
|
view=icon
|
||||||
|
recurse=true
|
||||||
|
sort=alpha
|
||||||
|
icon_caps=false
|
||||||
|
dirs=/home/synchronous/.wallpapers;
|
||||||
21
home/programs/programs.nix
Normal file
21
home/programs/programs.nix
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./alacritty/default.nix
|
||||||
|
./zsh/default.nix
|
||||||
|
./bspwm/default.nix
|
||||||
|
./cmus/default.nix
|
||||||
|
# ./nitrogen/defualt.nix
|
||||||
|
./rofi/default.nix
|
||||||
|
|
||||||
|
./sxhkd/default.nix
|
||||||
|
./bspwm/default.nix
|
||||||
|
|
||||||
|
./xbindkeys/default.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
25
home/programs/rofi/config.rasi
Normal file
25
home/programs/rofi/config.rasi
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
configuration {
|
||||||
|
show-icons: true;
|
||||||
|
display-drun: "";
|
||||||
|
display-run: "";
|
||||||
|
display-window: " ";
|
||||||
|
display-combi: " ";
|
||||||
|
kb-remove-char-back: "BackSpace";
|
||||||
|
kb-remove-to-eol: "Control+Shift+e";
|
||||||
|
kb-accept-entry: "Control+m,Return,KP_Enter";
|
||||||
|
kb-mode-next: "Shift+Right,Control+Tab,Control+l";
|
||||||
|
kb-mode-previous: "Shift+Left,Control+Shift+Tab,Control+h";
|
||||||
|
kb-mode-complete: "Control+p";
|
||||||
|
kb-row-up: "Up,Control+k,Shift+Tab,Shift+ISO_Left_Tab";
|
||||||
|
kb-row-down: "Down,Control+j";
|
||||||
|
timeout {
|
||||||
|
action: "kb-cancel";
|
||||||
|
delay: 0;
|
||||||
|
}
|
||||||
|
filebrowser {
|
||||||
|
directories-first: true;
|
||||||
|
sorting-method: "name";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@theme "./styles/main.rasi"
|
||||||
18
home/programs/rofi/default.nix
Normal file
18
home/programs/rofi/default.nix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
# programs.rofi = {
|
||||||
|
# enable = true;
|
||||||
|
# configPath = "./config.rasi";
|
||||||
|
# };
|
||||||
|
|
||||||
|
home.file.".config/rofi/config.rasi".source = ./config.rasi;
|
||||||
|
|
||||||
|
home.activation.copyRofiDir = lib.mkAfter ''
|
||||||
|
mkdir -p ~/.config/rofi/styles
|
||||||
|
cp -r ${./styles}/* ~/.config/rofi/styles/
|
||||||
|
chmod -R u+w ~/.config/rofi/styles/
|
||||||
|
'';
|
||||||
|
}
|
||||||
27
home/programs/rofi/styles/colors.rasi
Normal file
27
home/programs/rofi/styles/colors.rasi
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
configuration {
|
||||||
|
font: "Liga SFMono Nerd Font 13";
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
base00: #161616;
|
||||||
|
base01: #262626;
|
||||||
|
base02: #393939;
|
||||||
|
base03: #525252;
|
||||||
|
base04: #dde1e6;
|
||||||
|
base05: #f2f4f8;
|
||||||
|
base06: #ffffff;
|
||||||
|
base07: #08bdba;
|
||||||
|
base08: #3ddbd9;
|
||||||
|
base09: #78a9ff;
|
||||||
|
base0A: #ee5396;
|
||||||
|
base0B: #33b1ff;
|
||||||
|
base0C: #ff7eb6;
|
||||||
|
base0D: #42be65;
|
||||||
|
base0E: #be95ff;
|
||||||
|
base0F: #82cfff;
|
||||||
|
|
||||||
|
background: @base01;
|
||||||
|
prompt: @base00;
|
||||||
|
text: @base04;
|
||||||
|
select: @base00;
|
||||||
|
}
|
||||||
91
home/programs/rofi/styles/main.rasi
Normal file
91
home/programs/rofi/styles/main.rasi
Normal file
@@ -0,0 +1,91 @@
|
|||||||
|
@import "./colors.rasi"
|
||||||
|
|
||||||
|
configuration {
|
||||||
|
show-icons: false;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
pink: @base0C;
|
||||||
|
cyan: @base0F;
|
||||||
|
green: #9ece6a;
|
||||||
|
|
||||||
|
accent-color: @base06;
|
||||||
|
urgent-color: @base0A;
|
||||||
|
|
||||||
|
background-color: transparent;
|
||||||
|
text-color: @text;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
window {
|
||||||
|
location: center;
|
||||||
|
anchor: center;
|
||||||
|
fullscreen: false;
|
||||||
|
y-offset: 0px;
|
||||||
|
|
||||||
|
enabled: true;
|
||||||
|
background-color: @background;
|
||||||
|
cursor: "default";
|
||||||
|
border: 1px;
|
||||||
|
border-color: #565657;
|
||||||
|
width: 700px;
|
||||||
|
}
|
||||||
|
|
||||||
|
inputbar {
|
||||||
|
enabled: true;
|
||||||
|
background-color: @prompt;
|
||||||
|
padding: 10px;
|
||||||
|
children: ["entry"];
|
||||||
|
}
|
||||||
|
|
||||||
|
entry {
|
||||||
|
enabled: true;
|
||||||
|
padding: 0.75em 1.25em;
|
||||||
|
cursor: text;
|
||||||
|
}
|
||||||
|
|
||||||
|
listview {
|
||||||
|
enabled: true;
|
||||||
|
columns: 1;
|
||||||
|
lines: 6;
|
||||||
|
cycle: true;
|
||||||
|
dynamic: true;
|
||||||
|
scrollbar: false;
|
||||||
|
layout: vertical;
|
||||||
|
reverse: false;
|
||||||
|
fixed-height: true;
|
||||||
|
fixed-columns: true;
|
||||||
|
margin: 0.5em 0 0.75em;
|
||||||
|
cursor: "default";
|
||||||
|
}
|
||||||
|
|
||||||
|
prompt {
|
||||||
|
text-color: @accent-color;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
textbox {
|
||||||
|
padding: 0.5em 1.5em;
|
||||||
|
background-color: @prompt;
|
||||||
|
}
|
||||||
|
|
||||||
|
element {
|
||||||
|
enabled: true;
|
||||||
|
margin: 0 0.25em;
|
||||||
|
padding: 0.5em 0.75em;
|
||||||
|
cursor: pointer;
|
||||||
|
orientation: vertical;
|
||||||
|
}
|
||||||
|
|
||||||
|
element-text {
|
||||||
|
highlight: @green;
|
||||||
|
cursor: inherit;
|
||||||
|
vertical-align: 0.5;
|
||||||
|
horizontal-align: 0.0;
|
||||||
|
font: "Liga SFMono Nerd Font 14";
|
||||||
|
}
|
||||||
|
|
||||||
|
element-text selected {
|
||||||
|
text-color: @cyan;
|
||||||
|
}
|
||||||
10
home/programs/sxhkd/default.nix
Normal file
10
home/programs/sxhkd/default.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.sxhkd.enable = true;
|
||||||
|
services.sxhkd.extraConfig = builtins.readFile ./sxhkdrc;
|
||||||
|
|
||||||
|
# home.file.".config/sxhkd/sxhkdrc".source = ./sxhkdrc;
|
||||||
|
}
|
||||||
257
home/programs/sxhkd/sxhkdrc
Normal file
257
home/programs/sxhkd/sxhkdrc
Normal file
@@ -0,0 +1,257 @@
|
|||||||
|
#
|
||||||
|
# wm independent hotkeys
|
||||||
|
#
|
||||||
|
|
||||||
|
# terminal emulator
|
||||||
|
super + Return
|
||||||
|
alacritty
|
||||||
|
|
||||||
|
# program launcher
|
||||||
|
super + @space
|
||||||
|
rofi -show drun
|
||||||
|
#dmenu_run -b
|
||||||
|
|
||||||
|
# make sxhkd reload its configuration files:
|
||||||
|
super + Escape
|
||||||
|
pkill -usr1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config'
|
||||||
|
|
||||||
|
#
|
||||||
|
# bspwm hotkeys
|
||||||
|
#
|
||||||
|
|
||||||
|
# quit/restart bspwm
|
||||||
|
super + alt + {q,r}
|
||||||
|
bspc {quit,wm -r}
|
||||||
|
|
||||||
|
# close and kill
|
||||||
|
super + {_,shift + }w
|
||||||
|
bspc node -{c,k}
|
||||||
|
|
||||||
|
# alternate between the tiled and monocle layout
|
||||||
|
#super + m
|
||||||
|
# bspc desktop -l next
|
||||||
|
|
||||||
|
# send the newest marked node to the newest preselected node super + y
|
||||||
|
# bspc node newest.marked.local -n newest.!automatic.local
|
||||||
|
|
||||||
|
# swap the current node and the biggest window
|
||||||
|
# super + g
|
||||||
|
# bspc node -s biggest.window
|
||||||
|
super + g
|
||||||
|
librewolf www.google.com
|
||||||
|
|
||||||
|
super + shift + g
|
||||||
|
librewolf --new-window "www.google.com"
|
||||||
|
|
||||||
|
super + z
|
||||||
|
zotero
|
||||||
|
|
||||||
|
#
|
||||||
|
# state/flags
|
||||||
|
#
|
||||||
|
|
||||||
|
# set the window state
|
||||||
|
# t -> tiled
|
||||||
|
# shift + t -> smol tile
|
||||||
|
# s -> floating
|
||||||
|
# a -> fullscreen
|
||||||
|
super + {t,shift + t,s,a}
|
||||||
|
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
||||||
|
|
||||||
|
# set the node flags (commented out because I never use this >_>)
|
||||||
|
# super + ctrl + {m,x,y,z}
|
||||||
|
# bspc node -g {marked,locked,sticky,private}
|
||||||
|
|
||||||
|
#
|
||||||
|
# focus/swap
|
||||||
|
#
|
||||||
|
|
||||||
|
# focus the node in the given direction
|
||||||
|
super + {_,shift + }{j,k,i,l}
|
||||||
|
bspc node -{f,s} {west,south,north,east}
|
||||||
|
|
||||||
|
# focus the node for the given path jump
|
||||||
|
# super + {p,b,comma,period}
|
||||||
|
# bspc node -f @{parent,brother,first,second}
|
||||||
|
|
||||||
|
# focus the next/previous window in the current desktop
|
||||||
|
super + {_,shift + }c
|
||||||
|
bspc node -f {next,prev}.local.!hidden.window
|
||||||
|
|
||||||
|
# focus the next/previous desktop in the current monitor
|
||||||
|
|
||||||
|
# focus the last node/desktop
|
||||||
|
super + {grave,Tab}
|
||||||
|
bspc {node,desktop} -f last
|
||||||
|
|
||||||
|
# focus the older or newer node in the focus history
|
||||||
|
#super + {o,i}
|
||||||
|
# bspc wm -h off; \
|
||||||
|
# bspc node {older,newer} -f; \
|
||||||
|
# bspc wm -h on
|
||||||
|
|
||||||
|
# focus or send to the given desktop
|
||||||
|
super + {_,shift + }{1-9,0}
|
||||||
|
bspc {desktop -f,node -d} '^{1-9,10}'
|
||||||
|
|
||||||
|
super + alt + {_,shift + }{1,2,3,4,5,6,7,8,9,0}
|
||||||
|
bspc {desktop -f, node -d} '{11,12,13,14,15,16,17,18,19,20}'
|
||||||
|
|
||||||
|
# swap between desktops
|
||||||
|
|
||||||
|
XF86WakeUp + super; {1,2,3,4,5,6,7,8,9,0}
|
||||||
|
sh /home/synchronous/.scripts/bspwm/swap-desktop.sh '{1,2,3,4,5,6,7,8,9,10}'
|
||||||
|
|
||||||
|
XF86WakeUp + super + alt; {1,2,3,4,5,6,7,8,9,0}
|
||||||
|
sh /home/synchronous/.scripts/bspwm/swap-desktop.sh '{11,12,13,14,15,16,17,18,19,20}'
|
||||||
|
|
||||||
|
|
||||||
|
# preselect
|
||||||
|
#
|
||||||
|
|
||||||
|
# jake thinks preselecting is not very useful, gg
|
||||||
|
|
||||||
|
# preselect the direction
|
||||||
|
# super + ctrl + {j,k,i,l}
|
||||||
|
# bspc node -p {west,south,north,east}
|
||||||
|
|
||||||
|
# preselect the ratio
|
||||||
|
#super + ctrl + {1-9}
|
||||||
|
# bspc node -o 0.{1-9}
|
||||||
|
|
||||||
|
# cancel the preselection for the focused node
|
||||||
|
# super + ctrl + space
|
||||||
|
# bspc node -p cancel
|
||||||
|
|
||||||
|
# cancel the preselection for the focused desktop
|
||||||
|
#super + ctrl + shift + space
|
||||||
|
# bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
|
||||||
|
|
||||||
|
#
|
||||||
|
# move/resize
|
||||||
|
#
|
||||||
|
|
||||||
|
# expand a window by moving one of its side outward
|
||||||
|
alt + {Left,Down,Up,Right}
|
||||||
|
bspc node -z {left -40 0,bottom 0 40,top 0 -40,right 40 0}
|
||||||
|
|
||||||
|
# contract a window by moving one of its side inward
|
||||||
|
alt + shift + {Left,Down,Up,Right}
|
||||||
|
bspc node -z {right -40 0,top 0 40,bottom 0 -40,left 40 0}
|
||||||
|
|
||||||
|
alt + shift + w
|
||||||
|
rfkill unblock all | iwctl station wlan0 scan | iwctl station wlan0 get-networks
|
||||||
|
|
||||||
|
# move a floating window
|
||||||
|
alt + {w,s,a,d}
|
||||||
|
bspc node -v {-40 0,0 40,0 -40,40 0}
|
||||||
|
|
||||||
|
# Alt tab window shifter
|
||||||
|
alt + Tab
|
||||||
|
bspc node -f last
|
||||||
|
|
||||||
|
# start firefox
|
||||||
|
super + {f}
|
||||||
|
librewolf
|
||||||
|
|
||||||
|
super + {shift} + {f}
|
||||||
|
librewolf --private-window
|
||||||
|
|
||||||
|
super + {Left,Right}
|
||||||
|
bspc desktop -f {prev,next}
|
||||||
|
|
||||||
|
ctrl + super + {Left,Right}
|
||||||
|
sh /home/synchronous/.scripts/bspwm/fast-shift.sh {left,right}
|
||||||
|
|
||||||
|
super + {shift} + {d}
|
||||||
|
pkill -f discord
|
||||||
|
|
||||||
|
ctrl + super + bracket{left,right}
|
||||||
|
sh /home/synchronous/.scripts/bspwm/fast-shift.sh {left,right}
|
||||||
|
|
||||||
|
|
||||||
|
super + bracket{left,right}
|
||||||
|
bspc desktop -f {prev,next}.local
|
||||||
|
|
||||||
|
|
||||||
|
# super + {o}
|
||||||
|
# obsidian
|
||||||
|
|
||||||
|
# alacritty -e nvim /home/synchronous/Documents/Obsidian/Journal/Daily.md -c "execute 'normal G' | Goyo | autocmd VimResized * call GoyoWrapper()"
|
||||||
|
# open my notes file in nvim w/ a new alacritty window, then jump to end of file
|
||||||
|
super + {o}
|
||||||
|
sh /home/synchronous/.scripts/vimwiki/open_daily.sh
|
||||||
|
|
||||||
|
# open my notes without goyo and with nvimteee
|
||||||
|
super + {shift} + {o}
|
||||||
|
alacritty -e nvim /home/synchronous/journal/Daily.md -c "execute 'normal G' | NvimTreeOpen /home/synchronous/journal"
|
||||||
|
|
||||||
|
# search my notes using rofi and open the right one
|
||||||
|
super + {ctrl} + {o}
|
||||||
|
sh /home/synchronous/.scripts/vimwiki/search_notes.sh
|
||||||
|
|
||||||
|
super + {ctrl} + {p}
|
||||||
|
sh /home/synchronous/.scripts/papers/paper-search-cached.sh
|
||||||
|
|
||||||
|
super + {ctrl} + {l}
|
||||||
|
sh /home/synchronous/.scripts/papers/paper-search.sh
|
||||||
|
|
||||||
|
#super + {ctrl} + {l}
|
||||||
|
# sh /home/synchronous/.scripts/document-scripts/document-search-fast.sh
|
||||||
|
|
||||||
|
super + {ctrl} + {k}
|
||||||
|
sh /home/synchronous/.scripts/vimwiki/search_people.sh
|
||||||
|
|
||||||
|
# search for current semester area, then open terminal wherever it is
|
||||||
|
super + {ctrl} + {c}
|
||||||
|
find /home/synchronous/current-semester -follow -maxdepth 1 | cut -c36- | sed '/^[[:space:]]*$/d' | rofi -dmenu | read csem && alacritty --working-directory "/home/synchronous/current-semester/$csem";
|
||||||
|
|
||||||
|
super + {alt} + {c}
|
||||||
|
find /home/synchronous/current-semester -follow -maxdepth 1 | cut -c36- | sed '/^[[:space:]]*$/d' | rofi -dmenu | read rsem; yq ".url" "/home/synchronous/current-semester/$rsem/info.yaml" | xargs librewolf
|
||||||
|
|
||||||
|
super + {p}
|
||||||
|
sh /home/synchronous/.scripts/vimwiki/open_todo.sh
|
||||||
|
|
||||||
|
super + {m}
|
||||||
|
sh /home/synchronous/.scripts/vimwiki/open-learning.sh
|
||||||
|
|
||||||
|
# super + {b}
|
||||||
|
# sh /home/synchronous/.budgeting/open_budget.sh
|
||||||
|
|
||||||
|
|
||||||
|
# nnn
|
||||||
|
super + {n}
|
||||||
|
sh /home/synchronous/.scripts/nnn/launch.sh
|
||||||
|
|
||||||
|
# nnn + journal
|
||||||
|
super + {ctrl} + {n}
|
||||||
|
sh /home/synchronous/.scripts/nnn/launch-journal.sh
|
||||||
|
|
||||||
|
# screenshot stuff
|
||||||
|
Print
|
||||||
|
flameshot full -c
|
||||||
|
|
||||||
|
super + shift + s
|
||||||
|
flameshot gui
|
||||||
|
|
||||||
|
super + shift + {d,a}
|
||||||
|
bspc node @/ -C {forward,backward}
|
||||||
|
|
||||||
|
# audio
|
||||||
|
# XF86AudioRaiseVolume
|
||||||
|
# pactl set-sink-volume @DEFAULT_SINK@ +1000
|
||||||
|
|
||||||
|
# XF86AudioLowerVolume
|
||||||
|
# pactl set-sink-volume @DEFAULT_SINK@ -1000
|
||||||
|
|
||||||
|
# XF86AudioMute
|
||||||
|
# pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||||
|
|
||||||
|
# XF86AudioMicMute
|
||||||
|
# pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||||
|
|
||||||
|
# XF86MonBrightnessUp
|
||||||
|
# brightnessctl set 20+
|
||||||
|
|
||||||
|
# XF86MonBrightnessDown
|
||||||
|
# brightnessctl set 20-
|
||||||
7
home/programs/xbindkeys/default.nix
Normal file
7
home/programs/xbindkeys/default.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.file.".xbindkeysrc".source = ./xbindkeysrc;
|
||||||
|
}
|
||||||
70
home/programs/xbindkeys/xbindkeysrc
Normal file
70
home/programs/xbindkeys/xbindkeysrc
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
###########################
|
||||||
|
# xbindkeys configuration #
|
||||||
|
###########################
|
||||||
|
#
|
||||||
|
"pactl set-sink-volume @DEFAULT_SINK@ +1000"
|
||||||
|
XF86AudioRaiseVolume
|
||||||
|
|
||||||
|
"pactl set-sink-volume @DEFAULT_SINK@ -1000"
|
||||||
|
XF86AudioLowerVolume
|
||||||
|
|
||||||
|
"pactl set-sink-mute @DEFAULT_SINK@ toggle"
|
||||||
|
XF86AudioMute
|
||||||
|
|
||||||
|
"pactl set-source-mute @DEFAULT_SOURCE@ toggle"
|
||||||
|
XF86AudioMicMute
|
||||||
|
|
||||||
|
"brightnessctl set 20+"
|
||||||
|
XF86MonBrightnessUp
|
||||||
|
|
||||||
|
"brightnessctl set 20-"
|
||||||
|
XF86MonBrightnessDown
|
||||||
|
|
||||||
|
"xlock -mode random -duration 9999999999999 -modelist 'rain roll ico lissie julia euler2d daisy bubble bug bouboule ant penrose pyro pyro2 qix scooter spiral star'"
|
||||||
|
Control+Alt + Delete
|
||||||
|
|
||||||
|
# Notes that I don't want to delete ._. =>
|
||||||
|
# To specify a key, you can use 'xbindkeys --key' or
|
||||||
|
# 'xbindkeys --multikey' and put one of the two lines in this file.
|
||||||
|
#
|
||||||
|
# The format of a command line is:
|
||||||
|
# "command to start"
|
||||||
|
# associated key
|
||||||
|
#
|
||||||
|
# A list of keys is in /usr/include/X11/keysym.h and in
|
||||||
|
# /usr/include/X11/keysymdef.h
|
||||||
|
# The XK_ is not needed.
|
||||||
|
#
|
||||||
|
# List of modifier:
|
||||||
|
# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
|
||||||
|
# Mod3 (CapsLock), Mod4, Mod5 (Scroll).
|
||||||
|
|
||||||
|
# The release modifier is not a standard X modifier, but you can
|
||||||
|
# use it if you want to catch release events instead of press events
|
||||||
|
|
||||||
|
# By defaults, xbindkeys does not pay attention with the modifiers
|
||||||
|
# NumLock, CapsLock and ScrollLock.
|
||||||
|
# Uncomment the lines above if you want to pay attention to them.
|
||||||
|
|
||||||
|
#keystate_numlock = enable
|
||||||
|
#keystate_capslock = enable
|
||||||
|
#keystate_scrolllock= enable
|
||||||
|
|
||||||
|
#"xterm -geom 50x20+20+20"
|
||||||
|
# Shift+Mod2+alt + s
|
||||||
|
#
|
||||||
|
## set directly keycode (here control+alt+mod2 + f with my keyboard)
|
||||||
|
#"xterm"
|
||||||
|
# alt + c:0x29 + m:4 + mod2
|
||||||
|
#
|
||||||
|
## Control+Shift+a release event starts rxvt
|
||||||
|
#"rxvt"
|
||||||
|
# release+control+shift + a
|
||||||
|
#
|
||||||
|
## Control + mouse button 2 release event starts rxvt
|
||||||
|
#"rxvt"
|
||||||
|
# Control + b:2 + Release
|
||||||
|
|
||||||
|
##################################
|
||||||
|
# End of xbindkeys configuration #
|
||||||
|
##################################
|
||||||
43
home/programs/zsh/default.nix
Normal file
43
home/programs/zsh/default.nix
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.packages = with pkgs; [zsh-powerlevel10k meslo-lgs-nf];
|
||||||
|
home.file.".p10k.zsh".source = ./p10k;
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
# dotDir = "$HOME/.config/zsh";
|
||||||
|
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
name = "zsh-powerlevel10k";
|
||||||
|
src = "${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/";
|
||||||
|
file = "powerlevel10k.zsh-theme";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "powerlevel10k-config";
|
||||||
|
src = lib.cleanSource ./p10k;
|
||||||
|
file = "p10k.zsh";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
oh-my-zsh = {
|
||||||
|
enable = true;
|
||||||
|
# theme = "af-magic";
|
||||||
|
# theme = "powerlevel10k/powerlevel10k";
|
||||||
|
plugins = ["git" "history-substring-search" "colored-man-pages"];
|
||||||
|
};
|
||||||
|
|
||||||
|
autosuggestion.enable = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
|
||||||
|
# zsh sheeee
|
||||||
|
initExtraFirst = ''
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
'';
|
||||||
|
|
||||||
|
initExtra = builtins.readFile ./zshrc;
|
||||||
|
};
|
||||||
|
}
|
||||||
1641
home/programs/zsh/p10k
Normal file
1641
home/programs/zsh/p10k
Normal file
File diff suppressed because it is too large
Load Diff
232
home/programs/zsh/zshrc
Normal file
232
home/programs/zsh/zshrc
Normal file
@@ -0,0 +1,232 @@
|
|||||||
|
HISTFILE=~/.histfile
|
||||||
|
HISTSIZE=10000
|
||||||
|
SAVEHIST=10000
|
||||||
|
setopt nomatch
|
||||||
|
unsetopt autocd beep extendedglob notify
|
||||||
|
bindkey -v
|
||||||
|
zstyle :compinstall filename '/home/synchronous/.zshrc'
|
||||||
|
|
||||||
|
export PATH=/home/synchronous/.local/bin:$PATH
|
||||||
|
export PATH=/home/synchronous/.cargo/bin/:$PATH
|
||||||
|
export NIX_PATH=/home/synchronous/nix-cfg
|
||||||
|
|
||||||
|
# ==== binding keys ====
|
||||||
|
|
||||||
|
bindkey '^ ' autosuggest-accept
|
||||||
|
|
||||||
|
# ==== holy fuck aliases ====
|
||||||
|
|
||||||
|
# make sure i get the right version of python
|
||||||
|
alias python='python3'
|
||||||
|
|
||||||
|
# ez lock
|
||||||
|
alias lock="sudo systemctl restart lightdm"
|
||||||
|
|
||||||
|
# restart wifi
|
||||||
|
# alias wscan='systemctl restart iwd | iwctl station wlan0 scan | iwctl station wlan0 get-networks | rfkill unblock all && iwctl station wlan0 scan'
|
||||||
|
# alias nw='iwctl station wlan0 scan; iwctl station wlan0 get-networks'
|
||||||
|
# alias iwc='iwctl station wlan0 connect'
|
||||||
|
# alias iwcn='iwctl station wlan0 connect NUwave'
|
||||||
|
# alias wt='sudo systemctl restart iwd.service && polybar-restart'
|
||||||
|
# alias wtr='sudo systemctl restart iwd.service && polybar-restart; sudo iw dev wlan0 set power_save off'
|
||||||
|
# alias wtdc='iwctl station wlan0 disconnect'
|
||||||
|
# alias wtrc='sh /home/synchronous/.scripts/networking/wtrc.sh'
|
||||||
|
|
||||||
|
# easy access to config files I access frequently
|
||||||
|
# alias zshrc='nvim /home/synchronous/.zshrc'
|
||||||
|
# alias nrc='nvim ~/.config/nvim/init.vim'
|
||||||
|
# alias nvimrc='nvim ~/.config/nvim/init.vim'
|
||||||
|
# alias picomrc="nvim /home/synchronous/.config/picom/picom.conf"
|
||||||
|
|
||||||
|
# gcalcli stuff
|
||||||
|
# (note: gcalcli is fucking awesome, but i have a google calendar synching issue with it.
|
||||||
|
# Google APIs are truly degenerate. I'm swtitching to vdirsyncer and khal for now.)
|
||||||
|
# alias today='gcalcli agenda "$(date "+%b %d %Y %H:%m")" "$(date -d "$date +24 hour" "+%b %d %Y %H:%m")" --details location --color-date blue'
|
||||||
|
# alias week='gcalcli calw --color-date blue --color-now-marker red'
|
||||||
|
# alias weekl='gcalcli agenda "$(date "+%b %d %Y %H:%m")" "$(date -d "$date +168 hour" "+%b %d %Y %H:%m")" --details location --color-date blue'
|
||||||
|
# alias weekc='gcalcli calw --color-date blue --color-now-marker red'
|
||||||
|
# alias month='gcalcli calm --color-date blue --color-now-marker red'
|
||||||
|
# alias gadd='gcalcli --calendar jakeginesin@gmail.com add --noprompt'
|
||||||
|
# alias gaddhelp='echo "--title <title> --when <X:XX pm/am> --duration <mins>"'
|
||||||
|
# alias gdel='gcalcli --calendar jakeginesin@gmail.com delete --color-date blue'
|
||||||
|
# alias gdelhelp='echo "just type the name of the event"'
|
||||||
|
|
||||||
|
# alias today='sh /home/synchronous/.scripts/calendar/run_khal.sh'
|
||||||
|
# alias calendar='khal interactive'
|
||||||
|
|
||||||
|
# pls
|
||||||
|
alias pls='sudo'
|
||||||
|
alias please='sudo'
|
||||||
|
|
||||||
|
# fuck
|
||||||
|
alias fuck="sudo !!"
|
||||||
|
|
||||||
|
# neovim
|
||||||
|
alias vi='nvim'
|
||||||
|
alias vim='nvim'
|
||||||
|
alias n="nvim"
|
||||||
|
alias neovim='nvim'
|
||||||
|
alias v='nvim'
|
||||||
|
|
||||||
|
# duplicate current alacritty unit
|
||||||
|
alias dupe='setsid alacritty --working-directory "$(pwd)" > /dev/null'
|
||||||
|
|
||||||
|
# alias so i can copy stuff to my clipboard from my terminal
|
||||||
|
# example:
|
||||||
|
#$ pwd | clip
|
||||||
|
alias clip='perl -p -e "chomp if eof" | xclip -in -sel clip'
|
||||||
|
alias pwdc='pwd | clip | echo "directory clipped"'
|
||||||
|
|
||||||
|
# intellij (bad IDE i'm forced to use for CS3500 until I can fully configure my nvim setup)
|
||||||
|
# alias intellij="snap run intellij-idea-community"
|
||||||
|
# alias intellij-idea-community="snap run intellij-idea-community"
|
||||||
|
# alias intellishit="snap run intellij-idea-community"
|
||||||
|
|
||||||
|
# dotfile alias
|
||||||
|
# alias config='/usr/bin/git --git-dir=/home/synchronous/.cfg/ --work-tree=/home/synchronous'
|
||||||
|
|
||||||
|
# stuff to for local webdev;
|
||||||
|
# alias site="cd /home/synchronous/code/jake_dark_site"
|
||||||
|
# alias website="cd /home/synchronous/code/jake_dark_site"
|
||||||
|
# alias jakesite="cd /home/synchronous/code/jake_dark_site"
|
||||||
|
# alias wiki='cd /home/synchronous/Programming/jake-wiki | npm start --prefix /home/synchronous/Programming/jake-wiki'
|
||||||
|
# alias pwiki='cd /home/synchronous/Programming/jake-wiki | git --git-dir /home/synchronous/Programming/jake-wiki/.git --work-tree /home/synchronous/Programming/jake-wiki add . | git --git-dir /home/synchronous/Programming/jake-wiki/.git --work-tree /home/synchronous/Programming/jake-wiki commit -am "pog" | git --git-dir /home/synchronous/Programming/jake-wiki/.git --work-tree /home/synchronous/Programming/jake-wiki push'
|
||||||
|
|
||||||
|
# Ported from windows LLL bozo
|
||||||
|
alias cls="clear"
|
||||||
|
|
||||||
|
## Curl Aliases for easy info
|
||||||
|
# note for jake: try to change this back when you go back to boston lmfao
|
||||||
|
alias weather="curl https://wttr.in/Boston; echo"
|
||||||
|
alias myip="curl https://ipecho.net/plain; echo"
|
||||||
|
# alias crypto="curl https://usd.rate.sx"
|
||||||
|
alias pq="ping google.com -c 5"
|
||||||
|
|
||||||
|
## Arch aliases
|
||||||
|
# alias search="pacman -Ss"
|
||||||
|
# alias update="sudo pacman -Syu"
|
||||||
|
# alias install="sudo pacman -S"
|
||||||
|
|
||||||
|
## iwctl aliases
|
||||||
|
# alias sl="iwctl station list"
|
||||||
|
# alias sgn="iwctl station wlan0 scan; iwctl station wlan0 get-networks"
|
||||||
|
# alias sc="iwctl station wlan0 connect"
|
||||||
|
|
||||||
|
## directory control
|
||||||
|
alias ..="cd .."
|
||||||
|
alias ...="cd ../.."
|
||||||
|
alias .4="cd ../../.."
|
||||||
|
|
||||||
|
|
||||||
|
# replacing ls with exa & lsd
|
||||||
|
# hrr drr why do you use lsd AND exa?
|
||||||
|
# because lsd has icons but exa is better with everything else. smh.
|
||||||
|
alias ls="exa --icons --sort type"
|
||||||
|
|
||||||
|
alias l="exa -al --color=always --git --group-directories-first"
|
||||||
|
alias l.="exa -a --colour=always --git -u | egrep '^\.'"
|
||||||
|
alias l1="exa -a1h --sort=type"
|
||||||
|
alias lll="exa -a --sort=type"
|
||||||
|
# for whatever reason running exa -T | clip crashes whatever i paste the result into lmao
|
||||||
|
# alias tree="exa -T"
|
||||||
|
|
||||||
|
# Lolcats!!
|
||||||
|
alias neofetch="neofetch | lolcat"
|
||||||
|
|
||||||
|
# screenshot
|
||||||
|
alias screenshot="flameshot"
|
||||||
|
|
||||||
|
# tars
|
||||||
|
alias untar="tar -zxvf"
|
||||||
|
alias mktar="tar -cvzf"
|
||||||
|
|
||||||
|
# by default, put zathura windows in new process
|
||||||
|
# alias zathura="zathura --fork"
|
||||||
|
alias zathura="sh /home/synchronous/.scripts/zathura/zathura_conditional.sh"
|
||||||
|
alias exclude-zathura="pwd >> /home/synchronous/.scripts/zathura/excluded;echo 'done'"
|
||||||
|
|
||||||
|
alias os='vim /home/synchronous/current-semester/computer-systems/notes/os.md'
|
||||||
|
alias asm='echo "c->asm: gcc -S [file] \nc->asm w/o fluff: gcc -S -O2 -fno-asynchronous-unwind-tables [file]\nc->executable: gcc [file] -no-pie -o [filename]"'
|
||||||
|
alias urls='sh /home/synchronous/.scripts/info.sh'
|
||||||
|
alias favorites='vim /home/synchronous/Programming/jake_dark_site/build/resources.md'
|
||||||
|
alias outlook='firefoxpwa site launch 01GQJNBVPHJHYHPYNG8FGS5TX4'
|
||||||
|
|
||||||
|
# alias td='todo show -d -scd -sct'
|
||||||
|
|
||||||
|
alias polybar-restart='pkill polybar; setsid polybar mybar > /dev/null 2> /dev/null &> /dev/null'
|
||||||
|
|
||||||
|
# alias ytdl='alias ytdl="youtube-dl --extract-audio --audio-format mp3 --output "downloads/%(title)s.%(ext)s"'
|
||||||
|
# alias ytdl="yt-dlp --extract-audio --audio-format mp3 --output "
|
||||||
|
# alias ytdl="yt-dlp --extract-audio --audio-format mp3 --output '/home/synchronous/.music-not-tagged/%(title)s.%(ext)s'"
|
||||||
|
alias ytdl="sh /home/synchronous/.scripts/music/ytdl.sh"
|
||||||
|
alias ytdl-mp3="yt-dlp -x --audio-format mp3 --audio-quality 0 -o '/home/synchronous/music/%(title)s.%(ext)s' "
|
||||||
|
|
||||||
|
alias phone-mount="sh /home/synchronous/.scripts/phone-mount/mount.sh"
|
||||||
|
alias phone-unmount="sh /home/synchronous/.scripts/phone-mount/unmount.sh"
|
||||||
|
alias music-move="sh /home/synchronous/.scripts/music/music-move.sh"
|
||||||
|
|
||||||
|
alias ntpsync="sudo ntpdate pool.ntp.org"
|
||||||
|
alias fb="cd /home/synchronous/code/tob/fb"
|
||||||
|
alias nuid="echo 002141542"
|
||||||
|
alias gb="sh /home/synchronous/.scripts/bluetooth/gb.sh"
|
||||||
|
alias gbdc="bluetoothctl disconnect"
|
||||||
|
alias sxhkdrc="vim /home/synchronous/.config/sxhkd/sxhkdrc"
|
||||||
|
alias bspwmrc="vim /home/synchronous/.config/bspwm/bspwmrc"
|
||||||
|
|
||||||
|
# monitor stuff
|
||||||
|
alias dupe-display="sh /home/synchronous/.scripts/bspwm/dupe-display.sh"
|
||||||
|
alias undo-dupe="sh /home/synchronous/.scripts/bspwm/reset-duplicate.sh"
|
||||||
|
|
||||||
|
# termbin
|
||||||
|
alias termbin="sh /home/synchronous/.scripts/termbin/tb.sh"
|
||||||
|
alias dlpaper="python /home/synchronous/.scripts/papers/dlpaper.py"
|
||||||
|
alias backup_home="sh /home/synchronous/.scripts/backup/backup.sh"
|
||||||
|
|
||||||
|
# ------------------- fzf configuration
|
||||||
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
|
export FZF_DEFAULT_COMMAND='fdfind --type f'
|
||||||
|
export FZF_DEFAULT_OPTS="--layout=reverse --inline-info --height=80%"
|
||||||
|
|
||||||
|
# ------------------- Key Binding
|
||||||
|
bindkey "\e[1~" beginning-of-line # Home
|
||||||
|
bindkey "\e[4~" end-of-line # End
|
||||||
|
bindkey "\e[3~" delete-char #Del
|
||||||
|
bindkey "\e[2~" overwrite-mode # Ins
|
||||||
|
bindkey "\e[6~" end-of-history # PageDown
|
||||||
|
bindkey "\e[5~" beginning-of-history #PageUp
|
||||||
|
|
||||||
|
# -------------------- control backspace deleting previous word entirely
|
||||||
|
bindkey '^H' backward-kill-word
|
||||||
|
bindkey '5~' kill-word
|
||||||
|
|
||||||
|
# ------------------- More Widgets
|
||||||
|
#run_ranger () {
|
||||||
|
## echo
|
||||||
|
# ranger --choosedir=$HOME/.rangedir < $TTY
|
||||||
|
# LASTDIR='cat $HOME/.rangerdir'
|
||||||
|
# cd "$LASTDIR"
|
||||||
|
# zle reset-prompt
|
||||||
|
#}
|
||||||
|
#zle -N run_ranger
|
||||||
|
|
||||||
|
# --------------------- REMOTES CONFIG
|
||||||
|
# source /home/synchronous/.zshrc_remote
|
||||||
|
|
||||||
|
|
||||||
|
export LESS_TERMCAP_mb=$'\e[1;32m'
|
||||||
|
export LESS_TERMCAP_md=$'\e[1;32m'
|
||||||
|
export LESS_TERMCAP_me=$'\e[0m'
|
||||||
|
export LESS_TERMCAP_se=$'\e[0m'
|
||||||
|
export LESS_TERMCAP_so=$'\e[01;33m'
|
||||||
|
export LESS_TERMCAP_ue=$'\e[0m'
|
||||||
|
export LESS_TERMCAP_us=$'\e[1;4;31m'
|
||||||
|
|
||||||
|
# ------ NNN (not no not november)
|
||||||
|
export PATH=/home/synchronous/.scripts/nnn:$PATH
|
||||||
|
export VISUAL=wrapper.sh
|
||||||
|
export EDITOR="$VISUAL"
|
||||||
|
export NNN_PLUG='m:preview-tui;'
|
||||||
|
export NNN_FIFO=/tmp/nnn.fifo
|
||||||
|
export NNN_TERMINAL=alacritty
|
||||||
|
|
||||||
|
bindkey -s '^o' 'nnn -e ^M'
|
||||||
41
home/scripts/nixos-rebuild.sh
Normal file
41
home/scripts/nixos-rebuild.sh
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# blatently adapted from: https://gist.github.com/0atman/1a5133b842f929ba4c1e195ee67599d5
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Edit your config
|
||||||
|
$EDITOR configuration.nix
|
||||||
|
|
||||||
|
# cd to your config dir
|
||||||
|
pushd ~/dotfiles/nixos/
|
||||||
|
|
||||||
|
# Early return if no changes were detected (thanks @singiamtel!)
|
||||||
|
if git diff --quiet '*.nix'; then
|
||||||
|
echo "No changes detected, exiting."
|
||||||
|
popd
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Autoformat your nix files
|
||||||
|
alejandra . &>/dev/null \
|
||||||
|
|| ( alejandra . ; echo "formatting failed!" && exit 1)
|
||||||
|
|
||||||
|
# Shows your changes
|
||||||
|
git diff -U0 '*.nix'
|
||||||
|
|
||||||
|
echo "NixOS Rebuilding..."
|
||||||
|
|
||||||
|
# Rebuild, output simplified errors, log trackebacks
|
||||||
|
sudo nixos-rebuild switch &>nixos-switch.log || (cat nixos-switch.log | grep --color error && exit 1)
|
||||||
|
|
||||||
|
# Get current generation metadata
|
||||||
|
current=$(nixos-rebuild list-generations | grep current)
|
||||||
|
|
||||||
|
# Commit all changes witih the generation metadata
|
||||||
|
git commit -am "$current"
|
||||||
|
|
||||||
|
# Back to where you were
|
||||||
|
popd
|
||||||
|
|
||||||
|
# Notify all OK!
|
||||||
|
notify-send -e "NixOS Rebuilt OK!" --icon=software-update-available
|
||||||
10
home/services/dunst/default.nix
Normal file
10
home/services/dunst/default.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.dunst = {
|
||||||
|
enable = true;
|
||||||
|
configFile = ./dunstrc;
|
||||||
|
};
|
||||||
|
}
|
||||||
438
home/services/dunst/dnustrc
Normal file
438
home/services/dunst/dnustrc
Normal file
@@ -0,0 +1,438 @@
|
|||||||
|
i# See dunst(5) for all configuration options
|
||||||
|
|
||||||
|
[global]
|
||||||
|
### Display ###
|
||||||
|
|
||||||
|
# Which monitor should the notifications be displayed on.
|
||||||
|
monitor = 0
|
||||||
|
|
||||||
|
# Display notification on focused monitor. Possible modes are:
|
||||||
|
# mouse: follow mouse pointer
|
||||||
|
# keyboard: follow window with keyboard focus
|
||||||
|
# none: don't follow anything
|
||||||
|
#
|
||||||
|
# "keyboard" needs a window manager that exports the
|
||||||
|
# _NET_ACTIVE_WINDOW property.
|
||||||
|
# This should be the case for almost all modern window managers.
|
||||||
|
#
|
||||||
|
# If this option is set to mouse or keyboard, the monitor option
|
||||||
|
# will be ignored.
|
||||||
|
follow = mouse
|
||||||
|
|
||||||
|
### Geometry ###
|
||||||
|
|
||||||
|
# dynamic width from 0 to 300
|
||||||
|
# width = (0, 300)
|
||||||
|
# constant width of 300
|
||||||
|
width = 300
|
||||||
|
|
||||||
|
# The maximum height of a single notification, excluding the frame.
|
||||||
|
height = 300
|
||||||
|
|
||||||
|
# Position the notification in the top right corner
|
||||||
|
origin = top-right
|
||||||
|
|
||||||
|
# Offset from the origin
|
||||||
|
offset = 10x50
|
||||||
|
|
||||||
|
# Scale factor. It is auto-detected if value is 0.
|
||||||
|
scale = 0
|
||||||
|
|
||||||
|
# Maximum number of notification (0 means no limit)
|
||||||
|
notification_limit = 0
|
||||||
|
|
||||||
|
### Progress bar ###
|
||||||
|
|
||||||
|
# Turn on the progess bar. It appears when a progress hint is passed with
|
||||||
|
# for example dunstify -h int:value:12
|
||||||
|
progress_bar = true
|
||||||
|
|
||||||
|
# Set the progress bar height. This includes the frame, so make sure
|
||||||
|
# it's at least twice as big as the frame width.
|
||||||
|
progress_bar_height = 10
|
||||||
|
|
||||||
|
# Set the frame width of the progress bar
|
||||||
|
progress_bar_frame_width = 1
|
||||||
|
|
||||||
|
# Set the minimum width for the progress bar
|
||||||
|
progress_bar_min_width = 150
|
||||||
|
|
||||||
|
# Set the maximum width for the progress bar
|
||||||
|
progress_bar_max_width = 300
|
||||||
|
|
||||||
|
|
||||||
|
# Show how many messages are currently hidden (because of
|
||||||
|
# notification_limit).
|
||||||
|
indicate_hidden = yes
|
||||||
|
|
||||||
|
# The transparency of the window. Range: [0; 100].
|
||||||
|
# This option will only work if a compositing window manager is
|
||||||
|
# present (e.g. xcompmgr, compiz, etc.). (X11 only)
|
||||||
|
transparency = 0
|
||||||
|
|
||||||
|
# Draw a line of "separator_height" pixel height between two
|
||||||
|
# notifications.
|
||||||
|
# Set to 0 to disable.
|
||||||
|
separator_height = 2
|
||||||
|
|
||||||
|
# Padding between text and separator.
|
||||||
|
padding = 8
|
||||||
|
|
||||||
|
# Horizontal padding.
|
||||||
|
horizontal_padding = 8
|
||||||
|
|
||||||
|
# Padding between text and icon.
|
||||||
|
text_icon_padding = 0
|
||||||
|
|
||||||
|
# Defines width in pixels of frame around the notification window.
|
||||||
|
# Set to 0 to disable.
|
||||||
|
frame_width = 1
|
||||||
|
|
||||||
|
# Defines color of the frame around the notification window.
|
||||||
|
frame_color = "#636363"
|
||||||
|
|
||||||
|
# Define a color for the separator.
|
||||||
|
# possible values are:
|
||||||
|
# * auto: dunst tries to find a color fitting to the background;
|
||||||
|
# * foreground: use the same color as the foreground;
|
||||||
|
# * frame: use the same color as the frame;
|
||||||
|
# * anything else will be interpreted as a X color.
|
||||||
|
separator_color = frame
|
||||||
|
|
||||||
|
# Sort messages by urgency.
|
||||||
|
sort = yes
|
||||||
|
|
||||||
|
# Don't remove messages, if the user is idle (no mouse or keyboard input)
|
||||||
|
# for longer than idle_threshold seconds.
|
||||||
|
# Set to 0 to disable.
|
||||||
|
# A client can set the 'transient' hint to bypass this. See the rules
|
||||||
|
# section for how to disable this if necessary
|
||||||
|
# idle_threshold = 120
|
||||||
|
|
||||||
|
### Text ###
|
||||||
|
|
||||||
|
font = Monospace 8
|
||||||
|
|
||||||
|
# The spacing between lines. If the height is smaller than the
|
||||||
|
# font height, it will get raised to the font height.
|
||||||
|
line_height = 0
|
||||||
|
|
||||||
|
# Possible values are:
|
||||||
|
# full: Allow a small subset of html markup in notifications:
|
||||||
|
# <b>bold</b>
|
||||||
|
# <i>italic</i>
|
||||||
|
# <s>strikethrough</s>
|
||||||
|
# <u>underline</u>
|
||||||
|
#
|
||||||
|
# For a complete reference see
|
||||||
|
# <https://docs.gtk.org/Pango/pango_markup.html>.
|
||||||
|
#
|
||||||
|
# strip: This setting is provided for compatibility with some broken
|
||||||
|
# clients that send markup even though it's not enabled on the
|
||||||
|
# server. Dunst will try to strip the markup but the parsing is
|
||||||
|
# simplistic so using this option outside of matching rules for
|
||||||
|
# specific applications *IS GREATLY DISCOURAGED*.
|
||||||
|
#
|
||||||
|
# no: Disable markup parsing, incoming notifications will be treated as
|
||||||
|
# plain text. Dunst will not advertise that it has the body-markup
|
||||||
|
# capability if this is set as a global setting.
|
||||||
|
#
|
||||||
|
# It's important to note that markup inside the format option will be parsed
|
||||||
|
# regardless of what this is set to.
|
||||||
|
markup = full
|
||||||
|
geometry = "300x2-30+20"
|
||||||
|
shrink = yes
|
||||||
|
|
||||||
|
# The format of the message. Possible variables are:
|
||||||
|
# %a appname
|
||||||
|
# %s summary
|
||||||
|
# %b body
|
||||||
|
# %i iconname (including its path)
|
||||||
|
# %I iconname (without its path)
|
||||||
|
# %p progress value if set ([ 0%] to [100%]) or nothing
|
||||||
|
# %n progress value if set without any extra characters
|
||||||
|
# %% Literal %
|
||||||
|
# Markup is allowed
|
||||||
|
format = "<b>%s</b>\n%b"
|
||||||
|
|
||||||
|
# Alignment of message text.
|
||||||
|
# Possible values are "left", "center" and "right".
|
||||||
|
alignment = left
|
||||||
|
|
||||||
|
# Vertical alignment of message text and icon.
|
||||||
|
# Possible values are "top", "center" and "bottom".
|
||||||
|
vertical_alignment = center
|
||||||
|
|
||||||
|
# Show age of message if message is older than show_age_threshold
|
||||||
|
# seconds.
|
||||||
|
# Set to -1 to disable.
|
||||||
|
show_age_threshold = 60
|
||||||
|
|
||||||
|
# Specify where to make an ellipsis in long lines.
|
||||||
|
# Possible values are "start", "middle" and "end".
|
||||||
|
ellipsize = middle
|
||||||
|
|
||||||
|
# Ignore newlines '\n' in notifications.
|
||||||
|
ignore_newline = no
|
||||||
|
|
||||||
|
# Stack together notifications with the same content
|
||||||
|
stack_duplicates = true
|
||||||
|
|
||||||
|
# Hide the count of stacked notifications with the same content
|
||||||
|
hide_duplicate_count = false
|
||||||
|
|
||||||
|
# Display indicators for URLs (U) and actions (A).
|
||||||
|
show_indicators = yes
|
||||||
|
|
||||||
|
### Icons ###
|
||||||
|
|
||||||
|
# Align icons left/right/off
|
||||||
|
icon_position = left
|
||||||
|
|
||||||
|
# Scale small icons up to this size, set to 0 to disable. Helpful
|
||||||
|
# for e.g. small files or high-dpi screens. In case of conflict,
|
||||||
|
# max_icon_size takes precedence over this.
|
||||||
|
min_icon_size = 0
|
||||||
|
|
||||||
|
# Scale larger icons down to this size, set to 0 to disable
|
||||||
|
max_icon_size = 32
|
||||||
|
|
||||||
|
# Paths to default icons.
|
||||||
|
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
|
||||||
|
|
||||||
|
### History ###
|
||||||
|
|
||||||
|
# Should a notification popped up from history be sticky or timeout
|
||||||
|
# as if it would normally do.
|
||||||
|
sticky_history = yes
|
||||||
|
|
||||||
|
# Maximum amount of notifications kept in history
|
||||||
|
history_length = 20
|
||||||
|
|
||||||
|
### Misc/Advanced ###
|
||||||
|
|
||||||
|
# dmenu path.
|
||||||
|
dmenu = /usr/bin/dmenu -p dunst:
|
||||||
|
|
||||||
|
# Browser for opening urls in context menu.
|
||||||
|
browser = /usr/bin/xdg-open
|
||||||
|
|
||||||
|
# Always run rule-defined scripts, even if the notification is suppressed
|
||||||
|
always_run_script = true
|
||||||
|
|
||||||
|
# Define the title of the windows spawned by dunst
|
||||||
|
title = Dunst
|
||||||
|
|
||||||
|
# Define the class of the windows spawned by dunst
|
||||||
|
class = Dunst
|
||||||
|
|
||||||
|
# Define the corner radius of the notification window
|
||||||
|
# in pixel size. If the radius is 0, you have no rounded
|
||||||
|
# corners.
|
||||||
|
# The radius will be automatically lowered if it exceeds half of the
|
||||||
|
# notification height to avoid clipping text and/or icons.
|
||||||
|
corner_radius = 0
|
||||||
|
|
||||||
|
# Ignore the dbus closeNotification message.
|
||||||
|
# Useful to enforce the timeout set by dunst configuration. Without this
|
||||||
|
# parameter, an application may close the notification sent before the
|
||||||
|
# user defined timeout.
|
||||||
|
ignore_dbusclose = false
|
||||||
|
|
||||||
|
### Wayland ###
|
||||||
|
# These settings are Wayland-specific. They have no effect when using X11
|
||||||
|
|
||||||
|
# Uncomment this if you want to let notications appear under fullscreen
|
||||||
|
# applications (default: overlay)
|
||||||
|
# layer = top
|
||||||
|
|
||||||
|
# Set this to true to use X11 output on Wayland.
|
||||||
|
force_xwayland = false
|
||||||
|
|
||||||
|
### Legacy
|
||||||
|
|
||||||
|
# Use the Xinerama extension instead of RandR for multi-monitor support.
|
||||||
|
# This setting is provided for compatibility with older nVidia drivers that
|
||||||
|
# do not support RandR and using it on systems that support RandR is highly
|
||||||
|
# discouraged.
|
||||||
|
#
|
||||||
|
# By enabling this setting dunst will not be able to detect when a monitor
|
||||||
|
# is connected or disconnected which might break follow mode if the screen
|
||||||
|
# layout changes.
|
||||||
|
force_xinerama = false
|
||||||
|
|
||||||
|
### mouse
|
||||||
|
|
||||||
|
# Defines list of actions for each mouse event
|
||||||
|
# Possible values are:
|
||||||
|
# * none: Don't do anything.
|
||||||
|
# * do_action: Invoke the action determined by the action_name rule. If there is no
|
||||||
|
# such action, open the context menu.
|
||||||
|
# * open_url: If the notification has exactly one url, open it. If there are multiple
|
||||||
|
# ones, open the context menu.
|
||||||
|
# * close_current: Close current notification.
|
||||||
|
# * close_all: Close all notifications.
|
||||||
|
# * context: Open context menu for the notification.
|
||||||
|
# * context_all: Open context menu for all notifications.
|
||||||
|
# These values can be strung together for each mouse event, and
|
||||||
|
# will be executed in sequence.
|
||||||
|
mouse_left_click = close_current
|
||||||
|
mouse_middle_click = do_action, close_current
|
||||||
|
mouse_right_click = close_all
|
||||||
|
|
||||||
|
# Experimental features that may or may not work correctly. Do not expect them
|
||||||
|
# to have a consistent behaviour across releases.
|
||||||
|
[experimental]
|
||||||
|
# Calculate the dpi to use on a per-monitor basis.
|
||||||
|
# If this setting is enabled the Xft.dpi value will be ignored and instead
|
||||||
|
# dunst will attempt to calculate an appropriate dpi value for each monitor
|
||||||
|
# using the resolution and physical size. This might be useful in setups
|
||||||
|
# where there are multiple screens with very different dpi values.
|
||||||
|
per_monitor_dpi = false
|
||||||
|
|
||||||
|
|
||||||
|
[urgency_low]
|
||||||
|
# IMPORTANT: colors have to be defined in quotation marks.
|
||||||
|
# Otherwise the "#" and following would be interpreted as a comment.
|
||||||
|
background = "#000000"
|
||||||
|
foreground = "#EBDBB2"
|
||||||
|
timeout = 3
|
||||||
|
# Icon for notifications with low urgency, uncomment to enable
|
||||||
|
#new_icon = /path/to/icon
|
||||||
|
|
||||||
|
[urgency_normal]
|
||||||
|
background = "#000000"
|
||||||
|
foreground = "#EBDBB2"
|
||||||
|
timeout = 3
|
||||||
|
# Icon for notifications with normal urgency, uncomment to enable
|
||||||
|
#new_icon = /path/to/icon
|
||||||
|
|
||||||
|
[urgency_critical]
|
||||||
|
# background = "#900000"
|
||||||
|
# foreground = "#EBDBB2"
|
||||||
|
# frame_color = "#ff0000"
|
||||||
|
# timeout = 10
|
||||||
|
# Icon for notifications with critical urgency, uncomment to enable
|
||||||
|
#new_icon = /path/to/icon
|
||||||
|
|
||||||
|
# Every section that isn't one of the above is interpreted as a rules to
|
||||||
|
# override settings for certain messages.
|
||||||
|
#
|
||||||
|
# Messages can be matched by
|
||||||
|
# appname (discouraged, see desktop_entry)
|
||||||
|
# body
|
||||||
|
# category
|
||||||
|
# desktop_entry
|
||||||
|
# icon
|
||||||
|
# match_transient
|
||||||
|
# msg_urgency
|
||||||
|
# stack_tag
|
||||||
|
# summary
|
||||||
|
#
|
||||||
|
# and you can override the
|
||||||
|
# background
|
||||||
|
# foreground
|
||||||
|
# format
|
||||||
|
# frame_color
|
||||||
|
# fullscreen
|
||||||
|
# new_icon
|
||||||
|
# set_stack_tag
|
||||||
|
# set_transient
|
||||||
|
# set_category
|
||||||
|
# timeout
|
||||||
|
# urgency
|
||||||
|
# skip_display
|
||||||
|
# history_ignore
|
||||||
|
# action_name
|
||||||
|
# word_wrap
|
||||||
|
# ellipsize
|
||||||
|
# alignment
|
||||||
|
#
|
||||||
|
# Shell-like globbing will get expanded.
|
||||||
|
#
|
||||||
|
# Instead of the appname filter, it's recommended to use the desktop_entry filter.
|
||||||
|
# GLib based applications export their desktop-entry name. In comparison to the appname,
|
||||||
|
# the desktop-entry won't get localized.
|
||||||
|
#
|
||||||
|
# SCRIPTING
|
||||||
|
# You can specify a script that gets run when the rule matches by
|
||||||
|
# setting the "script" option.
|
||||||
|
# The script will be called as follows:
|
||||||
|
# script appname summary body icon urgency
|
||||||
|
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
|
||||||
|
#
|
||||||
|
# NOTE: It might be helpful to run dunst -print in a terminal in order
|
||||||
|
# to find fitting options for rules.
|
||||||
|
|
||||||
|
# Disable the transient hint so that idle_threshold cannot be bypassed from the
|
||||||
|
# client
|
||||||
|
#[transient_disable]
|
||||||
|
# match_transient = yes
|
||||||
|
# set_transient = no
|
||||||
|
#
|
||||||
|
# Make the handling of transient notifications more strict by making them not
|
||||||
|
# be placed in history.
|
||||||
|
#[transient_history_ignore]
|
||||||
|
# match_transient = yes
|
||||||
|
# history_ignore = yes
|
||||||
|
|
||||||
|
# fullscreen values
|
||||||
|
# show: show the notifications, regardless if there is a fullscreen window opened
|
||||||
|
# delay: displays the new notification, if there is no fullscreen window active
|
||||||
|
# If the notification is already drawn, it won't get undrawn.
|
||||||
|
# pushback: same as delay, but when switching into fullscreen, the notification will get
|
||||||
|
# withdrawn from screen again and will get delayed like a new notification
|
||||||
|
#[fullscreen_delay_everything]
|
||||||
|
# fullscreen = delay
|
||||||
|
#[fullscreen_show_critical]
|
||||||
|
# msg_urgency = critical
|
||||||
|
# fullscreen = show
|
||||||
|
|
||||||
|
#[espeak]
|
||||||
|
# summary = "*"
|
||||||
|
# script = dunst_espeak.sh
|
||||||
|
|
||||||
|
#[script-test]
|
||||||
|
# summary = "*script*"
|
||||||
|
# script = dunst_test.sh
|
||||||
|
|
||||||
|
#[ignore]
|
||||||
|
# # This notification will not be displayed
|
||||||
|
# summary = "foobar"
|
||||||
|
# skip_display = true
|
||||||
|
|
||||||
|
#[history-ignore]
|
||||||
|
# # This notification will not be saved in history
|
||||||
|
# summary = "foobar"
|
||||||
|
# history_ignore = yes
|
||||||
|
|
||||||
|
#[skip-display]
|
||||||
|
# # This notification will not be displayed, but will be included in the history
|
||||||
|
# summary = "foobar"
|
||||||
|
# skip_display = yes
|
||||||
|
|
||||||
|
#[signed_on]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = "*signed on*"
|
||||||
|
# urgency = low
|
||||||
|
#
|
||||||
|
#[signed_off]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = *signed off*
|
||||||
|
# urgency = low
|
||||||
|
#
|
||||||
|
#[says]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = *says*
|
||||||
|
# urgency = critical
|
||||||
|
#
|
||||||
|
#[twitter]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = *twitter.com*
|
||||||
|
# urgency = normal
|
||||||
|
#
|
||||||
|
#[stack-volumes]
|
||||||
|
# appname = "some_volume_notifiers"
|
||||||
|
# set_stack_tag = "volume"
|
||||||
|
#
|
||||||
|
# vim: ft=cfg
|
||||||
14
home/services/picom/default.nix
Normal file
14
home/services/picom/default.nix
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.picom = {
|
||||||
|
enable = true;
|
||||||
|
shadow = false;
|
||||||
|
fade = false;
|
||||||
|
activeOpacity = 1.0;
|
||||||
|
inactiveOpacity = 1.0; # yeah, i'm a freak like that
|
||||||
|
backend = "xrender"; # can use "glx"
|
||||||
|
};
|
||||||
|
}
|
||||||
280
home/services/polybar/config.ini
Normal file
280
home/services/polybar/config.ini
Normal file
@@ -0,0 +1,280 @@
|
|||||||
|
; .
|
||||||
|
; _. _ | _ ._. __
|
||||||
|
; (_.(_)|(_)[ _)
|
||||||
|
;
|
||||||
|
[colors]
|
||||||
|
background = #0d0d0d
|
||||||
|
foreground = #ffffff
|
||||||
|
theme = #89adfa
|
||||||
|
|
||||||
|
; ._ _ _.*._
|
||||||
|
; [ | )(_]|[ )
|
||||||
|
;
|
||||||
|
[bar/mybar]
|
||||||
|
;override-redirect = false
|
||||||
|
wm-restack = bspwm
|
||||||
|
bottom = false
|
||||||
|
;fixed-center = true
|
||||||
|
line-size = 3
|
||||||
|
;locale = tr_TR.UTF-8
|
||||||
|
|
||||||
|
width = 99.7%
|
||||||
|
height = 20
|
||||||
|
offset-x = 4
|
||||||
|
offset-y = 3
|
||||||
|
padding-left = 2
|
||||||
|
padding-right = 2
|
||||||
|
module-margin-left = 3
|
||||||
|
module-margin-right = 0
|
||||||
|
tray-position = right
|
||||||
|
tray-detached = false
|
||||||
|
|
||||||
|
background = ${colors.background}
|
||||||
|
foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
font-0 = B612:style=Regular:size=9;3
|
||||||
|
font-1 = JetBrainsMono Nerd Font:style=Regular:size=9;3
|
||||||
|
font-2 = "Noto Sans Symbols:size=13;1"
|
||||||
|
|
||||||
|
modules-left = date battery cpu memory coretemp pulseaudio-control network bluetooth cmus
|
||||||
|
modules-center = title
|
||||||
|
modules-right = pomodoro xkeyboard bspwm
|
||||||
|
|
||||||
|
dim-value = 1.0
|
||||||
|
|
||||||
|
;scroll-up = bspc desktop -f prev.local
|
||||||
|
;scroll-down = bspc desktop -f next.local
|
||||||
|
cursor-click = pointer
|
||||||
|
cursor-scroll = ns-resize
|
||||||
|
|
||||||
|
; . , ,
|
||||||
|
; |_ _.-+--+- _ ._. .
|
||||||
|
; [_)(_] | | (/,[ \_|
|
||||||
|
; ._|
|
||||||
|
;
|
||||||
|
[module/battery]
|
||||||
|
type = internal/battery
|
||||||
|
|
||||||
|
full-at = 99
|
||||||
|
battery = BAT0
|
||||||
|
adapter = AC0
|
||||||
|
poll-interval = 10
|
||||||
|
|
||||||
|
format-charging = <animation-charging> <label-charging>
|
||||||
|
format-discharging = <ramp-capacity> <label-discharging>
|
||||||
|
format-full = <ramp-capacity> <label-full>
|
||||||
|
|
||||||
|
label-charging = %percentage%%
|
||||||
|
label-discharging = %percentage%%
|
||||||
|
label-discharging-foreground = ${colors.foreground}
|
||||||
|
label-charging-foreground = ${colors.foreground}
|
||||||
|
label-full = 100%
|
||||||
|
|
||||||
|
ramp-capacity-0 =
|
||||||
|
ramp-capacity-1 =
|
||||||
|
ramp-capacity-2 =
|
||||||
|
ramp-capacity-3 =
|
||||||
|
ramp-capacity-4 =
|
||||||
|
ramp-capacity-5 =
|
||||||
|
ramp-capacity-foreground = ${colors.theme}
|
||||||
|
|
||||||
|
bar-capacity-width = 10
|
||||||
|
|
||||||
|
animation-charging-0 =
|
||||||
|
animation-charging-foreground = ${colors.theme}
|
||||||
|
animation-charging-framerate = 1000
|
||||||
|
|
||||||
|
; .
|
||||||
|
; |_ __._ . ,._ _
|
||||||
|
; [_)_) [_) \/\/ [ | )
|
||||||
|
; |
|
||||||
|
;
|
||||||
|
[module/bspwm]
|
||||||
|
type = internal/bspwm
|
||||||
|
|
||||||
|
format = <label-state> <label-mode>
|
||||||
|
enable-click = true
|
||||||
|
enable-scroll = true
|
||||||
|
reverse-scroll = true
|
||||||
|
fuzzy-match = true
|
||||||
|
|
||||||
|
label-focused = " %name% "
|
||||||
|
label-focused-foreground = ${colors.foreground}
|
||||||
|
label-focused-underline = ${colors.theme}
|
||||||
|
label-occupied = " %name% "
|
||||||
|
label-urgent = " %name% "
|
||||||
|
label-urgent-background = #9b0a20
|
||||||
|
label-empty = ""
|
||||||
|
|
||||||
|
; label-monocle = M
|
||||||
|
; label-tiled = T
|
||||||
|
; label-fullscreen = F
|
||||||
|
; label-floating = f
|
||||||
|
; label-pseudotiled = P
|
||||||
|
|
||||||
|
; . ,
|
||||||
|
; _| _.-+- _
|
||||||
|
; (_](_] | (/,
|
||||||
|
;
|
||||||
|
[module/date]
|
||||||
|
type = internal/date
|
||||||
|
|
||||||
|
interval = 1.0
|
||||||
|
label = %time% %date%
|
||||||
|
;label-font =
|
||||||
|
|
||||||
|
;date = %Y-%m-%d%
|
||||||
|
;time = %H:%M
|
||||||
|
;date-alt = %A, %d %B %Y
|
||||||
|
;time-alt = %H:%M:%S
|
||||||
|
;label-font = 3
|
||||||
|
;label-foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
time = %H:%M
|
||||||
|
date-alt = %A, %d %B %Y
|
||||||
|
time-alt = %H:%M:%S
|
||||||
|
|
||||||
|
; ._ _ _ ._ _ _ ._. .
|
||||||
|
; [ | )(/,[ | )(_)[ \_|
|
||||||
|
; ._|
|
||||||
|
;
|
||||||
|
[module/memory]
|
||||||
|
type = internal/memory
|
||||||
|
interval = 4
|
||||||
|
format-foreground = ${colors.theme}
|
||||||
|
format = <label>
|
||||||
|
label-foreground = ${colors.foreground}
|
||||||
|
label = %percentage_used%%
|
||||||
|
|
||||||
|
; _.._ . .
|
||||||
|
; (_.[_)(_|
|
||||||
|
; |
|
||||||
|
;
|
||||||
|
[module/cpu]
|
||||||
|
type = internal/cpu
|
||||||
|
interval = 4
|
||||||
|
|
||||||
|
format = <label>
|
||||||
|
format-foreground = ${colors.theme}
|
||||||
|
label = %percentage%%
|
||||||
|
label-foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
; , .
|
||||||
|
; ._ _ -+-. , _ ._.;_/
|
||||||
|
; [ )(/, | \/\/ (_)[ | \
|
||||||
|
;
|
||||||
|
[module/network]
|
||||||
|
type = internal/network
|
||||||
|
interface = wlan0
|
||||||
|
interval = 4.0
|
||||||
|
udspeed-minwidth = 5
|
||||||
|
accumulate-stats = true
|
||||||
|
unknown-as-up = true
|
||||||
|
|
||||||
|
format-connected = 直<label-connected>
|
||||||
|
format-connected-foreground = ${colors.theme}
|
||||||
|
label-connected = %downspeed% [%essid%]
|
||||||
|
label-connected-foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
format-disconnected = 睊 <label-disconnected>
|
||||||
|
format-disconnected-foreground = ${colors.theme}
|
||||||
|
label-disconnected = disconnected
|
||||||
|
label-disconnected-foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
; . . .
|
||||||
|
; \./;_/ _ .|_ _ _.._. _|
|
||||||
|
; /'\| \(/,\_|[_)(_)(_][ (_]
|
||||||
|
; ._|
|
||||||
|
;
|
||||||
|
[module/xkeyboard]
|
||||||
|
type = internal/xkeyboard
|
||||||
|
blacklist-0 = num lock
|
||||||
|
blacklist-1 = scroll lock
|
||||||
|
|
||||||
|
format = <label-indicator>
|
||||||
|
format-spacing = 0
|
||||||
|
label-indicator-on-capslock = caps lock
|
||||||
|
label-indicator-on-capslock-foreground = #FF7171
|
||||||
|
|
||||||
|
; , , .
|
||||||
|
; -+-*-+-| _
|
||||||
|
; | | | |(/,
|
||||||
|
;
|
||||||
|
[module/title]
|
||||||
|
type = internal/xwindow
|
||||||
|
|
||||||
|
format = <label>
|
||||||
|
format-foreground = ${colors.foreground}
|
||||||
|
format-padding = 4
|
||||||
|
label = %title%
|
||||||
|
label-maxlen = 50
|
||||||
|
|
||||||
|
; , ,
|
||||||
|
; -+- _ ._ _ ._ _ ._. _.-+-. .._. _
|
||||||
|
; | (/,[ | )[_)(/,[ (_] | (_|[ (/,
|
||||||
|
; |
|
||||||
|
;
|
||||||
|
[module/coretemp]
|
||||||
|
type = internal/temperature
|
||||||
|
interval = 5
|
||||||
|
thermal-zone = 0
|
||||||
|
;
|
||||||
|
; NOTE: Run the command below and change the hwmon-path according to the output.
|
||||||
|
; (Don't forget to delete the semicolon)
|
||||||
|
;
|
||||||
|
; for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $i"; done
|
||||||
|
;
|
||||||
|
hwmon-path = /sys/class/hwmon/hwmon4/temp1_input
|
||||||
|
base-temperature = 20
|
||||||
|
warn-temperature = 90
|
||||||
|
units = true
|
||||||
|
|
||||||
|
format = <label>
|
||||||
|
format-foreground = ${colors.theme}
|
||||||
|
format-warn = <label-warn>
|
||||||
|
format-warn-foreground = ${colors.theme}
|
||||||
|
|
||||||
|
label = %temperature-c%
|
||||||
|
label-foreground = ${colors.foreground}
|
||||||
|
label-warn = %temperature-c%
|
||||||
|
label-warn-foreground = #9b0a20
|
||||||
|
|
||||||
|
|
||||||
|
; Pulseaudio Control:
|
||||||
|
; this bit is reliant on the pulseaudio-control AUR package
|
||||||
|
; NOTE: I'm not intending to control audio from polybar. I'm using hotkeys for the control.
|
||||||
|
|
||||||
|
[module/pulseaudio-control]
|
||||||
|
type = custom/script
|
||||||
|
tail = true
|
||||||
|
format = <label>
|
||||||
|
interval = 1.0
|
||||||
|
label-foreground = ${colors.foreground}
|
||||||
|
exec = pulseaudio-control --format '$VOL_LEVEL%' listen
|
||||||
|
format-foreground = ${colors.theme}
|
||||||
|
|
||||||
|
[module/cmus]
|
||||||
|
type = custom/script
|
||||||
|
tail = true
|
||||||
|
format =♫ <label>
|
||||||
|
interval = 5
|
||||||
|
exec-if = "sh /home/synchronous/.config/polybar/cmus.sh 2> /dev/null | grep -v 'NO_MUSIC'"
|
||||||
|
exec = "sh /home/synchronous/.config/polybar/cmus.sh 2> /dev/null | grep -v 'NO_MUSIC'"
|
||||||
|
label-foreground = ${colors.foreground}
|
||||||
|
format-foreground = ${colors.theme}
|
||||||
|
|
||||||
|
[module/pomodoro]
|
||||||
|
type = custom/script
|
||||||
|
tail = true
|
||||||
|
interval = 2
|
||||||
|
format = <label>
|
||||||
|
exec = "sh /home/synchronous/.config/polybar/pomodoro.sh"
|
||||||
|
label-foreground = ${colors.foreground}
|
||||||
|
format-foreground = ${colors.theme}
|
||||||
|
|
||||||
|
[module/bluetooth]
|
||||||
|
type = custom/script
|
||||||
|
interval = 10
|
||||||
|
exec = /home/synchronous/.config/polybar/scripts/bluetooth.sh
|
||||||
|
label-foreground = ${colors.foreground}
|
||||||
|
format-foreground = ${colors.theme}
|
||||||
13
home/services/polybar/default.nix
Normal file
13
home/services/polybar/default.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
services.polybar = {
|
||||||
|
enable = true;
|
||||||
|
config = ./config.ini;
|
||||||
|
script = ''
|
||||||
|
polybar mybar & disown
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
11
home/services/services.nix
Normal file
11
home/services/services.nix
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
./picom/default.nix
|
||||||
|
./dunst/default.nix
|
||||||
|
./polybar/default.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
12
home/wallpapers/default.nix
Normal file
12
home/wallpapers/default.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
home.activation.copyDir = lib.mkAfter ''
|
||||||
|
mkdir -p ~/.wallpapers
|
||||||
|
cp -r ${./pics}/* ~/.wallpapers/
|
||||||
|
chmod -R u+w ~/.wallpapers/
|
||||||
|
'';
|
||||||
|
}
|
||||||
BIN
home/wallpapers/pics/mountain.jpg
Normal file
BIN
home/wallpapers/pics/mountain.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 433 KiB |
7
system/services/services.nix
Normal file
7
system/services/services.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./synaptics/default.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
33
system/services/synaptics/default.nix
Normal file
33
system/services/synaptics/default.nix
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
{ config, pkgs, ... }: {
|
||||||
|
services.libinput = {
|
||||||
|
enable = false;
|
||||||
|
touchpad.naturalScrolling = true;
|
||||||
|
};
|
||||||
|
services.xserver.synaptics = {
|
||||||
|
enable = true;
|
||||||
|
palmMinZ = 20;
|
||||||
|
palmDetect = true;
|
||||||
|
tapButtons = false;
|
||||||
|
# scrollDelta = 111;
|
||||||
|
twoFingerScroll = true;
|
||||||
|
vertTwoFingerScroll = true;
|
||||||
|
horizTwoFingerScroll = false;
|
||||||
|
accelFactor = "0.0557414"; # don't question
|
||||||
|
fingersMap = [
|
||||||
|
1
|
||||||
|
3
|
||||||
|
2
|
||||||
|
];
|
||||||
|
palmMinWidth = 5;
|
||||||
|
minSpeed = "0.6";
|
||||||
|
maxSpeed = "1.0";
|
||||||
|
|
||||||
|
additionalOptions = ''
|
||||||
|
Option "VertScrollDelta" "-111"
|
||||||
|
Option "HorizScrollDelta" "-111"
|
||||||
|
Option "FingerLow" "25"
|
||||||
|
Option "FingerHigh" "30"
|
||||||
|
Option "MaxTapTime" "0"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
||||||
8
system/system.nix
Normal file
8
system/system.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{ config, pkgs, ...}:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./wm/bspwm.nix
|
||||||
|
./services/services.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
50
system/wm/bspwm.nix
Normal file
50
system/wm/bspwm.nix
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.xserver = {
|
||||||
|
enable = true;
|
||||||
|
xkb.layout = "us";
|
||||||
|
xkb.variant = "";
|
||||||
|
|
||||||
|
# displayManager.defaultSession = "bspwm";
|
||||||
|
desktopManager.xterm.enable = false;
|
||||||
|
|
||||||
|
windowManager.bspwm = {
|
||||||
|
enable = true;
|
||||||
|
# extraConfig = builtins.readFile ./bspwmrc;
|
||||||
|
# configFile = ./bspwmrc; # relative import to preserve locality of config
|
||||||
|
# package = "bspwm-unstable";
|
||||||
|
# sxhkd.package = "sxhkd-unstable";
|
||||||
|
# sxhkd.configFile = ./sxhkdrc;
|
||||||
|
};
|
||||||
|
|
||||||
|
displayManager = {
|
||||||
|
# autoLogin.user = "synchronous";
|
||||||
|
# autoLogin.enable = true;
|
||||||
|
|
||||||
|
lightdm = {
|
||||||
|
enable = true;
|
||||||
|
greeters.gtk.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
# xsession.windowManager.bspwm = {
|
||||||
|
# enable = true;
|
||||||
|
# extraConfig = builtins.readFile ./bspwmrc;
|
||||||
|
# };
|
||||||
|
|
||||||
|
# services.sxhkd.enable = true;
|
||||||
|
# services.sxhkd.extraConfig = builtins.readFile ./sxhkdrc;
|
||||||
|
|
||||||
|
# services.displayManager.autoLogin.enable = true;
|
||||||
|
|
||||||
|
# services.displayManagrer.sddm.enable = true;
|
||||||
|
# services.desktopManager.plasma6.enable = true;
|
||||||
|
|
||||||
|
# services.xserver.xkb = {
|
||||||
|
# layout = "us";
|
||||||
|
# variant = "";
|
||||||
|
# }
|
||||||
|
}
|
||||||
33
system/wm/bspwmrc
Normal file
33
system/wm/bspwmrc
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# ██████╗ ███████╗██████╗ ██╗ ██╗███╗ ███?
|
||||||
|
# ██╔══██╗██╔════╝██╔══██╗██║ ██║████╗ ████║
|
||||||
|
# ██████╔╝███████╗██████╔╝██║ █╗ ██║██╔████╔██║
|
||||||
|
# ██╔══██╗╚════██║██╔═══╝ ██║███╗██║██║╚██╔╝██║
|
||||||
|
# ██████╔╝███████║██║ ╚███╔███╔╝██║ ╚═╝ ██║
|
||||||
|
# ╚═════╝ ╚══════╝╚═╝ ╚══╝╚══╝ ╚═╝ ╚═╝
|
||||||
|
|
||||||
|
pgrep -x sxhkd > /dev/null || sxhkd &
|
||||||
|
|
||||||
|
xrandr --output eDP-1 --mode 1920x1080 --primary
|
||||||
|
# xrandr --output HDMI-1 --mode 1920x1080 --same-as eDP-1 --scale 1x1
|
||||||
|
|
||||||
|
bspc monitor eDP-1 -d 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
||||||
|
|
||||||
|
bspc config border_width 2
|
||||||
|
bspc config window_gap 2
|
||||||
|
|
||||||
|
bspc config split_ratio 0.50
|
||||||
|
bspc config borderless_monocle true
|
||||||
|
bspc config gapless_monocle true
|
||||||
|
# bspc config merge_overlapping_monitors true
|
||||||
|
bspc rule -a Zathura state=tiled
|
||||||
|
bspc rule -a "Zotero" -o desktop="19" focus=off
|
||||||
|
|
||||||
|
bspc rule -a Gimp desktop='^8' state=floating follow=on
|
||||||
|
bspc rule -a Chromium desktop='^2'
|
||||||
|
bspc rule -a mplayer2 state=floating
|
||||||
|
bspc rule -a Kupfer.py focus=on
|
||||||
|
bspc rule -a Screenkey manage=off
|
||||||
|
nitrogen --restore &
|
||||||
|
polybar mybar &
|
||||||
|
picom --daemon 2> /dev/null &
|
||||||
238
system/wm/sxhkdrc
Normal file
238
system/wm/sxhkdrc
Normal file
@@ -0,0 +1,238 @@
|
|||||||
|
#
|
||||||
|
# wm independent hotkeys
|
||||||
|
#
|
||||||
|
|
||||||
|
# terminal emulator
|
||||||
|
super + Return
|
||||||
|
alacritty
|
||||||
|
|
||||||
|
# program launcher
|
||||||
|
super + @space
|
||||||
|
rofi -show drun
|
||||||
|
#dmenu_run -b
|
||||||
|
|
||||||
|
# make sxhkd reload its configuration files:
|
||||||
|
super + Escape
|
||||||
|
pkill -usr1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config'
|
||||||
|
|
||||||
|
#
|
||||||
|
# bspwm hotkeys
|
||||||
|
#
|
||||||
|
|
||||||
|
# quit/restart bspwm
|
||||||
|
super + alt + {q,r}
|
||||||
|
bspc {quit,wm -r}
|
||||||
|
|
||||||
|
# close and kill
|
||||||
|
super + {_,shift + }w
|
||||||
|
bspc node -{c,k}
|
||||||
|
|
||||||
|
# alternate between the tiled and monocle layout
|
||||||
|
#super + m
|
||||||
|
# bspc desktop -l next
|
||||||
|
|
||||||
|
# send the newest marked node to the newest preselected node super + y
|
||||||
|
# bspc node newest.marked.local -n newest.!automatic.local
|
||||||
|
|
||||||
|
# swap the current node and the biggest window
|
||||||
|
# super + g
|
||||||
|
# bspc node -s biggest.window
|
||||||
|
super + g
|
||||||
|
librewolf www.google.com
|
||||||
|
|
||||||
|
super + shift + g
|
||||||
|
librewolf --new-window "www.google.com"
|
||||||
|
|
||||||
|
super + z
|
||||||
|
zotero
|
||||||
|
|
||||||
|
#
|
||||||
|
# state/flags
|
||||||
|
#
|
||||||
|
|
||||||
|
# set the window state
|
||||||
|
# t -> tiled
|
||||||
|
# shift + t -> smol tile
|
||||||
|
# s -> floating
|
||||||
|
# a -> fullscreen
|
||||||
|
super + {t,shift + t,s,a}
|
||||||
|
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
||||||
|
|
||||||
|
# set the node flags (commented out because I never use this >_>)
|
||||||
|
# super + ctrl + {m,x,y,z}
|
||||||
|
# bspc node -g {marked,locked,sticky,private}
|
||||||
|
|
||||||
|
#
|
||||||
|
# focus/swap
|
||||||
|
#
|
||||||
|
|
||||||
|
# focus the node in the given direction
|
||||||
|
super + {_,shift + }{j,k,i,l}
|
||||||
|
bspc node -{f,s} {west,south,north,east}
|
||||||
|
|
||||||
|
# focus the node for the given path jump
|
||||||
|
# super + {p,b,comma,period}
|
||||||
|
# bspc node -f @{parent,brother,first,second}
|
||||||
|
|
||||||
|
# focus the next/previous window in the current desktop
|
||||||
|
super + {_,shift + }c
|
||||||
|
bspc node -f {next,prev}.local.!hidden.window
|
||||||
|
|
||||||
|
# focus the next/previous desktop in the current monitor
|
||||||
|
|
||||||
|
# focus the last node/desktop
|
||||||
|
super + {grave,Tab}
|
||||||
|
bspc {node,desktop} -f last
|
||||||
|
|
||||||
|
# focus the older or newer node in the focus history
|
||||||
|
#super + {o,i}
|
||||||
|
# bspc wm -h off; \
|
||||||
|
# bspc node {older,newer} -f; \
|
||||||
|
# bspc wm -h on
|
||||||
|
|
||||||
|
# focus or send to the given desktop
|
||||||
|
super + {_,shift + }{1-9,0}
|
||||||
|
bspc {desktop -f,node -d} '^{1-9,10}'
|
||||||
|
|
||||||
|
super + alt + {_,shift + }{1,2,3,4,5,6,7,8,9,0}
|
||||||
|
bspc {desktop -f, node -d} '{11,12,13,14,15,16,17,18,19,20}'
|
||||||
|
|
||||||
|
# swap between desktops
|
||||||
|
|
||||||
|
XF86WakeUp + super; {1,2,3,4,5,6,7,8,9,0}
|
||||||
|
sh /home/synchronous/.scripts/bspwm/swap-desktop.sh '{1,2,3,4,5,6,7,8,9,10}'
|
||||||
|
|
||||||
|
XF86WakeUp + super + alt; {1,2,3,4,5,6,7,8,9,0}
|
||||||
|
sh /home/synchronous/.scripts/bspwm/swap-desktop.sh '{11,12,13,14,15,16,17,18,19,20}'
|
||||||
|
|
||||||
|
|
||||||
|
# preselect
|
||||||
|
#
|
||||||
|
|
||||||
|
# jake thinks preselecting is not very useful, gg
|
||||||
|
|
||||||
|
# preselect the direction
|
||||||
|
# super + ctrl + {j,k,i,l}
|
||||||
|
# bspc node -p {west,south,north,east}
|
||||||
|
|
||||||
|
# preselect the ratio
|
||||||
|
#super + ctrl + {1-9}
|
||||||
|
# bspc node -o 0.{1-9}
|
||||||
|
|
||||||
|
# cancel the preselection for the focused node
|
||||||
|
# super + ctrl + space
|
||||||
|
# bspc node -p cancel
|
||||||
|
|
||||||
|
# cancel the preselection for the focused desktop
|
||||||
|
#super + ctrl + shift + space
|
||||||
|
# bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
|
||||||
|
|
||||||
|
#
|
||||||
|
# move/resize
|
||||||
|
#
|
||||||
|
|
||||||
|
# expand a window by moving one of its side outward
|
||||||
|
alt + {Left,Down,Up,Right}
|
||||||
|
bspc node -z {left -40 0,bottom 0 40,top 0 -40,right 40 0}
|
||||||
|
|
||||||
|
# contract a window by moving one of its side inward
|
||||||
|
alt + shift + {Left,Down,Up,Right}
|
||||||
|
bspc node -z {right -40 0,top 0 40,bottom 0 -40,left 40 0}
|
||||||
|
|
||||||
|
alt + shift + w
|
||||||
|
rfkill unblock all | iwctl station wlan0 scan | iwctl station wlan0 get-networks
|
||||||
|
|
||||||
|
# move a floating window
|
||||||
|
alt + {w,s,a,d}
|
||||||
|
bspc node -v {-40 0,0 40,0 -40,40 0}
|
||||||
|
|
||||||
|
# Alt tab window shifter
|
||||||
|
alt + Tab
|
||||||
|
bspc node -f last
|
||||||
|
|
||||||
|
# start firefox
|
||||||
|
super + {f}
|
||||||
|
librewolf
|
||||||
|
|
||||||
|
super + {shift} + {f}
|
||||||
|
librewolf --private-window
|
||||||
|
|
||||||
|
super + {Left,Right}
|
||||||
|
bspc desktop -f {prev,next}
|
||||||
|
|
||||||
|
ctrl + super + {Left,Right}
|
||||||
|
sh /home/synchronous/.scripts/bspwm/fast-shift.sh {left,right}
|
||||||
|
|
||||||
|
super + {shift} + {d}
|
||||||
|
pkill -f discord
|
||||||
|
|
||||||
|
ctrl + super + bracket{left,right}
|
||||||
|
sh /home/synchronous/.scripts/bspwm/fast-shift.sh {left,right}
|
||||||
|
|
||||||
|
|
||||||
|
super + bracket{left,right}
|
||||||
|
bspc desktop -f {prev,next}.local
|
||||||
|
|
||||||
|
|
||||||
|
# super + {o}
|
||||||
|
# obsidian
|
||||||
|
|
||||||
|
# alacritty -e nvim /home/synchronous/Documents/Obsidian/Journal/Daily.md -c "execute 'normal G' | Goyo | autocmd VimResized * call GoyoWrapper()"
|
||||||
|
# open my notes file in nvim w/ a new alacritty window, then jump to end of file
|
||||||
|
super + {o}
|
||||||
|
sh /home/synchronous/.scripts/vimwiki/open_daily.sh
|
||||||
|
|
||||||
|
# open my notes without goyo and with nvimteee
|
||||||
|
super + {shift} + {o}
|
||||||
|
alacritty -e nvim /home/synchronous/journal/Daily.md -c "execute 'normal G' | NvimTreeOpen /home/synchronous/journal"
|
||||||
|
|
||||||
|
# search my notes using rofi and open the right one
|
||||||
|
super + {ctrl} + {o}
|
||||||
|
sh /home/synchronous/.scripts/vimwiki/search_notes.sh
|
||||||
|
|
||||||
|
super + {ctrl} + {p}
|
||||||
|
sh /home/synchronous/.scripts/papers/paper-search-cached.sh
|
||||||
|
|
||||||
|
super + {ctrl} + {l}
|
||||||
|
sh /home/synchronous/.scripts/papers/paper-search.sh
|
||||||
|
|
||||||
|
#super + {ctrl} + {l}
|
||||||
|
# sh /home/synchronous/.scripts/document-scripts/document-search-fast.sh
|
||||||
|
|
||||||
|
super + {ctrl} + {k}
|
||||||
|
sh /home/synchronous/.scripts/vimwiki/search_people.sh
|
||||||
|
|
||||||
|
# search for current semester area, then open terminal wherever it is
|
||||||
|
super + {ctrl} + {c}
|
||||||
|
find /home/synchronous/current-semester -follow -maxdepth 1 | cut -c36- | sed '/^[[:space:]]*$/d' | rofi -dmenu | read csem && alacritty --working-directory "/home/synchronous/current-semester/$csem";
|
||||||
|
|
||||||
|
super + {alt} + {c}
|
||||||
|
find /home/synchronous/current-semester -follow -maxdepth 1 | cut -c36- | sed '/^[[:space:]]*$/d' | rofi -dmenu | read rsem; yq ".url" "/home/synchronous/current-semester/$rsem/info.yaml" | xargs librewolf
|
||||||
|
|
||||||
|
super + {p}
|
||||||
|
sh /home/synchronous/.scripts/vimwiki/open_todo.sh
|
||||||
|
|
||||||
|
super + {m}
|
||||||
|
sh /home/synchronous/.scripts/vimwiki/open-learning.sh
|
||||||
|
|
||||||
|
# super + {b}
|
||||||
|
# sh /home/synchronous/.budgeting/open_budget.sh
|
||||||
|
|
||||||
|
|
||||||
|
# nnn
|
||||||
|
super + {n}
|
||||||
|
sh /home/synchronous/.scripts/nnn/launch.sh
|
||||||
|
|
||||||
|
# nnn + journal
|
||||||
|
super + {ctrl} + {n}
|
||||||
|
sh /home/synchronous/.scripts/nnn/launch-journal.sh
|
||||||
|
|
||||||
|
# screenshot stuff
|
||||||
|
Print
|
||||||
|
flameshot full -c
|
||||||
|
|
||||||
|
super + shift + s
|
||||||
|
flameshot gui
|
||||||
|
|
||||||
|
super + shift + {d,a}
|
||||||
|
bspc node @/ -C {forward,backward}
|
||||||
Reference in New Issue
Block a user