mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
100 lines
2.4 KiB
Nix
100 lines
2.4 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
modifier = config.wayland.windowManager.sway.config.modifier;
|
|
|
|
wallpaper = builtins.fetchurl {
|
|
url = "https://images6.alphacoders.com/117/1174033.png";
|
|
sha256 = "1ph5m9s57076jx6042iipqx2ifzadmd5z4lf5l49wgq4jb92mp16";
|
|
};
|
|
|
|
in
|
|
{ enable = true;
|
|
xwayland = true;
|
|
#wrapperFeatures.gtk = true;
|
|
|
|
extraSessionCommands = ''
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
'';
|
|
|
|
config = {
|
|
fonts = {
|
|
names = [ "Terminus" ];
|
|
};
|
|
|
|
output = {
|
|
HDMI-A-1 = {
|
|
resolution = "1920x1080";
|
|
position = "0,0";
|
|
bg = "${wallpaper} fill";
|
|
};
|
|
DP-1 = {
|
|
resolution = "1920x1080";
|
|
position = "1920,0";
|
|
bg = "${wallpaper} fill";
|
|
};
|
|
};
|
|
modifier = "Mod1";
|
|
menu = "rofi -show drun -show-icons -drun-icon-theme Qogir -font 'Noto Sans 14'";
|
|
terminal = "${pkgs.alacritty}/bin/alacritty";
|
|
|
|
input = {
|
|
keyboard = {
|
|
xkb_numlock = "enabled";
|
|
xkb_layout = "us";
|
|
};
|
|
pointer = {
|
|
accel_profile = "flat";
|
|
pointer_accel = "0.65";
|
|
};
|
|
};
|
|
|
|
bars = [
|
|
{
|
|
position = "top";
|
|
statusCommand = ''while :; do echo "$(free -h | awk '/^Mem/ {print $3}') '|' $(date +'%I:%M:%S %p') '|' $(date +'%m-%d-%Y')"; sleep 1; done'';
|
|
fonts = {
|
|
names = [ "Terminus" ];
|
|
size = 10.0;
|
|
};
|
|
colors = {
|
|
background = "#0A0E14";
|
|
statusline = "#FFFFFF";
|
|
};
|
|
}
|
|
];
|
|
|
|
gaps = {
|
|
smartGaps = false;
|
|
inner = 10;
|
|
};
|
|
|
|
floating = {
|
|
titlebar = false;
|
|
border = 0;
|
|
criteria = [
|
|
{
|
|
title = "Android Emulator";
|
|
}
|
|
];
|
|
};
|
|
|
|
window = {
|
|
titlebar = false;
|
|
border= 0;
|
|
};
|
|
|
|
keybindings = lib.mkOptionDefault {
|
|
"${modifier}+q" = "kill";
|
|
"Print" = "exec grim ~/Pictures/screenshot-$(date +'%Y%m%d-%H%M%S').png";
|
|
"Shift+Print" = "exec grim -g \"$(slurp)\" ~/Pictures/screenshot-$(date +'%Y%m%d-%H%M%S').png";
|
|
"${modifier}+Print" = ''exec sh -c 'grim -g "$(swaymsg -t get_tree | jq -j '"'"'.. | select(.type?) | select(.focused).rect | "\(.x),\(.y) \(.width)x\(.height)"'"'"')" ~/Pictures/screenshot-$(date +'%Y%m%d-%H%M%S').png' '';
|
|
"${modifier}+Shift+f" = "exec alacritty -e sh -c 'EDITOR=nvim ranger'";
|
|
"${modifier}+Shift+d" = "exec rofi -modi emoji -show emoji";
|
|
};
|
|
};
|
|
|
|
extraConfig = ''
|
|
exec_always ${pkgs.autotiling}/bin/autotiling
|
|
'';
|
|
}
|