i3 and polybar

This commit is contained in:
Noah Masur 2022-04-23 16:22:04 +00:00
parent c969c50026
commit addc286bf2
4 changed files with 33 additions and 21 deletions

View File

@ -21,6 +21,7 @@
# Set your time zone, also used by redshift # Set your time zone, also used by redshift
services.localtime.enable = true; services.localtime.enable = true;
services.avahi.enable = true;
services.geoclue2.enable = true; services.geoclue2.enable = true;
location = { provider = "geoclue2"; }; location = { provider = "geoclue2"; };
@ -35,14 +36,14 @@
services.xserver = { services.xserver = {
enable = true; enable = true;
windowManager = { spectrwm = { enable = true; }; }; windowManager = { i3 = { enable = true; }; };
# Enable touchpad support # Enable touchpad support
libinput.enable = true; libinput.enable = true;
# Disable mouse acceleration # Disable mouse acceleration
libinput.mouse.accelProfile = "flat"; libinput.mouse.accelProfile = "flat";
libinput.mouse.accelSpeed = "1.5"; libinput.mouse.accelSpeed = "1.25";
# Keyboard responsiveness # Keyboard responsiveness
autoRepeatDelay = 250; autoRepeatDelay = 250;
@ -82,8 +83,10 @@
}; };
hardware.acpilight.enable = true;
# Required for setting GTK theme (for preferred-color-scheme in browser) # Required for setting GTK theme (for preferred-color-scheme in browser)
services.dbus.packages = with pkgs; [ gnome3.dconf ]; services.dbus.packages = with pkgs; [ pkgs.dconf ];
# Mouse config # Mouse config
services.ratbagd.enable = true; services.ratbagd.enable = true;
@ -105,7 +108,12 @@
}; };
# Install fonts # Install fonts
fonts.fonts = with pkgs; [ victor-mono nerdfonts ]; fonts.fonts = with pkgs; [
victor-mono # Used for Vim and Terminal
nerdfonts
font-awesome # Icons (for i3)
siji # More icons for Polybar
];
fonts.fontconfig.defaultFonts.monospace = [ "Victor Mono" ]; fonts.fontconfig.defaultFonts.monospace = [ "Victor Mono" ];
# Gaming # Gaming
@ -168,6 +176,12 @@
dmenu dmenu
xlockmore xlockmore
feh feh
xorg.xbacklight
playerctl
# i3blocks
polybar
st # alt terminal
kitty # alt terminal
# Mouse config # Mouse config
libratbag libratbag
@ -189,12 +203,16 @@
enable = true; enable = true;
brightness = { brightness = {
day = "1.0"; day = "1.0";
night = "0.75"; night = "0.5";
}; };
}; };
# Login to Keybase in the background # Login to Keybase in the background
services.keybase.enable = true; services.keybase.enable = true;
services.kbfs = {
enable = true;
mountPoint = "/keybase";
};
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.

View File

@ -23,6 +23,7 @@ in {
mpv # Video viewer mpv # Video viewer
sxiv # Image viewer sxiv # Image viewer
zathura # PDF viewer zathura # PDF viewer
qbittorrent
# Utilities # Utilities
unzip unzip

View File

@ -1,16 +0,0 @@
libratbag (ratbagd) for input devices
inspiration: https://github.com/JonathanReeve/dotfiles/blob/minimal/dotfiles/home.nix
https://github.com/nuxshed/dotfiles
more: https://github.com/mitchellh/nixos-config/blob/main/users/mitchellh/home-manager.nix
https://github.com/kyechou/leagueoflegends
Encryption:
https://www.passwordstore.org/
https://github.com/roddhjav/pass-tomb#readme
https://github.com/AGWA/git-crypt
https://github.com/FiloSottile/age
https://sr.ht/~gpanders/passage/

View File

@ -90,6 +90,7 @@ require("packer").startup(function(use)
literal = { literal = {
Caskfile = "brewfile", Caskfile = "brewfile",
[".gitignore"] = "gitignore", [".gitignore"] = "gitignore",
config = "config",
}, },
complex = { complex = {
[".*git/config"] = "gitconfig", [".*git/config"] = "gitconfig",
@ -120,6 +121,14 @@ require("packer").startup(function(use)
-- Markdown pretty view -- Markdown pretty view
use("ellisonleao/glow.nvim") use("ellisonleao/glow.nvim")
-- Hex color previews
use({
"norcalli/nvim-colorizer.lua",
config = function()
require("colorizer").setup()
end,
})
-- Snippet engine -- Snippet engine
use("L3MON4D3/LuaSnip") use("L3MON4D3/LuaSnip")