initial comit
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,15 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
git
|
||||
starship
|
||||
];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
home.stateVersion = "24.05";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages= with pkgs; [
|
||||
rofi-wayland
|
||||
rofi-bluetooth
|
||||
networkmanager_dmenu
|
||||
];
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland;
|
||||
theme = "glue_pro_blue";
|
||||
terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||
|
||||
extraConfig = {
|
||||
modi = "combi,window,drun,ssh";
|
||||
show-icons = true;
|
||||
drun-display-format = "{icon} {name}";
|
||||
disable-history = false;
|
||||
hide-scrollbar = true;
|
||||
display-drun = " Apps ";
|
||||
sidebar-mode = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,209 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
# define some constants
|
||||
mod = "Mod4";
|
||||
alt = "Mod1";
|
||||
num_workspaces = 9;
|
||||
ws = builtins.listToAttrs (builtins.genList (n: {
|
||||
name = "ws${toString (n + 1)}";
|
||||
value = toString (n + 1);
|
||||
}) num_workspaces);
|
||||
in
|
||||
{
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
wrapperFeatures.gtk = true;
|
||||
|
||||
config = rec {
|
||||
modifier = mod;
|
||||
terminal = "alacritty";
|
||||
fonts = {
|
||||
names = [ "MesloLGS NF" ];
|
||||
size = 11.0;
|
||||
};
|
||||
input = {
|
||||
"type:touchpad" = {
|
||||
tap = "enabled";
|
||||
natural_scroll = "enabled";
|
||||
tap_button_map = "lrm";
|
||||
};
|
||||
"type:keyboard" = {
|
||||
xkb_layout = "us";
|
||||
xkb_variant = "intl";
|
||||
};
|
||||
};
|
||||
|
||||
gaps = {
|
||||
inner = 8;
|
||||
outer = -4;
|
||||
smartGaps = true;
|
||||
smartBorders = "on";
|
||||
};
|
||||
|
||||
keybindings = lib.mkOptionDefault {
|
||||
"${mod}+Return" = "exec alacritty --command tmux";
|
||||
"${mod}+Ctrl+Return" = "exec alacritty";
|
||||
"${mod}+Shift+Return" = "exec rofi -show combi";
|
||||
|
||||
"${mod}+Print" = "exec flameshot full -c";
|
||||
"${mod}+Shift+Print" = "exec flameshot gui";
|
||||
"${mod}+Ctrl+Shift+Print" = "exec simplescreenrecorder --start-hidden --start-recording";
|
||||
|
||||
"XF86AudioLowerVolume" = "exec pamixer --decrease 5";
|
||||
"XF86AudioRaiseVolume" = "exec pamixer --increase 5";
|
||||
"XF86AudioMute" = "exec pamixer -t";
|
||||
"${mod}+XF86AudioMute" = "exec pactl set-source-mute @DEFAULT_SOURCE@ toggle";
|
||||
|
||||
"XF86AudioPlay" = "exec playerctl play-pause";
|
||||
"XF86AudioNext" = "exec playerctl next";
|
||||
"XF86AudioPrev" = "exec playerctl previous";
|
||||
"${mod}+XF86AudioRaiseVolume" = "exec playerctl next";
|
||||
"${mod}+XF86AudioLowerVolume" = "exec playerctl previous";
|
||||
|
||||
"XF86MonBrightnessUp" = "exec light -A 5; notify-send 'Brightness set to $(light)'";
|
||||
"XF86MonBrightnessDown" = "exec light -U 5; notify-send 'Brightness set to $(light)'";
|
||||
"${mod}+XF86MonBrightnessDown" = "exec light -S 0.2; notify-send 'Brightness set to min'";
|
||||
"${mod}+XF86MonBrightnessUp" = "exec light -S 100; notify-send 'Brightness set to max'";
|
||||
|
||||
"XF86Calculator" = "exec qalculate-gtk";
|
||||
|
||||
"${mod}+Shift+c" = "kill";
|
||||
|
||||
"${mod}+u" = "border none";
|
||||
"${mod}+y" = "border pixel 1";
|
||||
"${mod}+n" = "border normal";
|
||||
|
||||
"${mod}+h" = "focus left";
|
||||
"${mod}+j" = "focus down";
|
||||
"${mod}+k" = "focus up";
|
||||
"${mod}+l" = "focus right";
|
||||
"${mod}+Left" = "focus left";
|
||||
"${mod}+Down" = "focus down";
|
||||
"${mod}+Up" = "focus up";
|
||||
"${mod}+Right" = "focus right";
|
||||
|
||||
"${mod}+Shift+h" = "move left";
|
||||
"${mod}+Shift+j" = "move down";
|
||||
"${mod}+Shift+k" = "move up";
|
||||
"${mod}+Shift+l" = "move right";
|
||||
"${mod}+Shift+Left" = "move left";
|
||||
"${mod}+Shift+Down" = "move down";
|
||||
"${mod}+Shift+Up" = "move up";
|
||||
"${mod}+Shift+Right" = "move right";
|
||||
|
||||
"${mod}+b" = "workspace back_and_forth";
|
||||
"${mod}+Shift+b" = "move container to workspace back_and_forth; workspace back_and_forth";
|
||||
"${mod}+Ctrl+Right" = "workspace next";
|
||||
"${mod}+Ctrl+Left" = "workspace prev";
|
||||
|
||||
"${mod}+Shift+minus" = "move scratchpad";
|
||||
"${mod}+minus" = "scratchpad show";
|
||||
|
||||
"${mod}+z" = "split h; exec notify-send 'Tile horizontally'";
|
||||
"${mod}+v" = "split v; exec notify-send 'Tile vertically'";
|
||||
"${mod}+q" = "split toggle";
|
||||
"${mod}+f" = "fullscreen toggle";
|
||||
"${mod}+s" = "layout stacking";
|
||||
"${mod}+w" = "layout tabbed";
|
||||
"${mod}+e" = "layout toggle split";
|
||||
"${mod}+Shift+space" = "floating toggle";
|
||||
"${mod}+space" = "focus mode_toggle";
|
||||
"${mod}+Shift+s" = "sticky toggle";
|
||||
"${mod}+a" = "focus parent";
|
||||
|
||||
"${mod}+Ctrl+l" = "exec i3lock -c 000000";
|
||||
"${mod}+Shift+r" = "reload";
|
||||
} // builtins.listToAttrs (builtins.concatMap (n: let
|
||||
key = toString (n + 1);
|
||||
in [
|
||||
{
|
||||
name = "${mod}+${key}";
|
||||
value = "workspace ${key}";
|
||||
}
|
||||
{
|
||||
name = "${mod}+Ctrl+${key}";
|
||||
value = "move container to workspace ${key}";
|
||||
}
|
||||
{
|
||||
name = "${mod}+Shift+${key}";
|
||||
value = "move container to workspace ${key}; workspace ${key}";
|
||||
}
|
||||
]) (lib.range 0 8));
|
||||
|
||||
assigns = {
|
||||
"2: web" = [{ class = "^Brave$"; }];
|
||||
"9: mail" = [{ class = "Thunderbird"; }];
|
||||
};
|
||||
|
||||
modes = {
|
||||
resize = {
|
||||
"h" = "resize shrink width 4 px or 4 ppt";
|
||||
"j" = "resize grow height 4 px or 4 ppt";
|
||||
"k" = "resize shrink height 4 px or 4 ppt";
|
||||
"l" = "resize grow width 4 px or 4 ppt";
|
||||
"Left" = "resize shrink width 10 px or 10 ppt";
|
||||
"Down" = "resize grow height 10 px or 10 ppt";
|
||||
"Up" = "resize shrink height 10 px or 10 ppt";
|
||||
"Right" = "resize grow width 10 px or 10 ppt";
|
||||
"Return" = "mode default";
|
||||
"Escape" = "mode default";
|
||||
};
|
||||
};
|
||||
|
||||
colors = {
|
||||
focused = {
|
||||
border = "#ff8800";
|
||||
background = "#2F3D44";
|
||||
text = "#FF8800";
|
||||
indicator = "#FDF6E3";
|
||||
childBorder = "#ff8800";
|
||||
};
|
||||
focusedInactive = {
|
||||
border = "#333333";
|
||||
background = "#222222";
|
||||
text = "#444444";
|
||||
indicator = "#454948";
|
||||
childBorder = "#222222";
|
||||
};
|
||||
unfocused = {
|
||||
border = "#2F3D44";
|
||||
background = "#2F3D44";
|
||||
text = "#FF8800";
|
||||
indicator = "#454948";
|
||||
childBorder = "#222222";
|
||||
};
|
||||
urgent = {
|
||||
border = "#CB4B16";
|
||||
background = "#FDF6E3";
|
||||
text = "#FF8800";
|
||||
indicator = "#268BD2";
|
||||
childBorder = "#222222";
|
||||
};
|
||||
placeholder = {
|
||||
border = "#000000";
|
||||
background = "#0c0c0c";
|
||||
text = "#ffffff";
|
||||
indicator = "#000000";
|
||||
childBorder = "#222222";
|
||||
};
|
||||
background = "#2B2C2B";
|
||||
};
|
||||
};
|
||||
extraConfig = ''
|
||||
default_border none
|
||||
floating_modifier ${mod}
|
||||
|
||||
# === Floating Windows ===
|
||||
for_window [title="alsamixer"] floating enable border pixel 1
|
||||
for_window [title="Qalculate!"] floating enable border normal
|
||||
for_window [class="Psensor"] floating enable border normal
|
||||
for_window [title="lxrandr"] floating enable border normal
|
||||
for_window [class="Blueman-manager"] floating enable border normal
|
||||
for_window [class="GParted"] floating enable border normal
|
||||
for_window [class="pavucontrol"] floating enable
|
||||
for_window [class="Volume Control"] floating enable
|
||||
for_window [class="(?i)VirtualBox"] floating enable border normal
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,190 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
waybar
|
||||
];
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
settings = {
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
position = "top";
|
||||
"modules-left" = [
|
||||
"tray"
|
||||
"custom/cpu_linux"
|
||||
"temperature"
|
||||
"memory"
|
||||
"disk"
|
||||
"custom/nvidia"
|
||||
];
|
||||
"modules-center" = [ "sway/window" ];
|
||||
"modules-right" = [
|
||||
"group/blight"
|
||||
"custom/colorpicker"
|
||||
"idle_inhibitor"
|
||||
"bluetooth"
|
||||
"group/audio"
|
||||
"group/networking"
|
||||
"battery"
|
||||
"clock"
|
||||
];
|
||||
|
||||
margin = null;
|
||||
spacing = 15;
|
||||
reload_style_on_change = true;
|
||||
|
||||
"clock" = {
|
||||
format = "{:%a %d.%m.%y | Week: %U | %T}";
|
||||
interval = 1;
|
||||
tooltip-format = "\n<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>";
|
||||
calendar-weeks-pos = "right";
|
||||
today-format = "<span color='#7645AD'><b><u>{}</u></b></span>";
|
||||
format-calendar = "<span color='#aeaeae'><b>{}</b></span>";
|
||||
format-calendar-weeks = "<span color='#aeaeae'><b>W{:%V}</b></span>";
|
||||
format-calendar-weekdays = "<span color='#aeaeae'><b>{}</b></span>";
|
||||
};
|
||||
|
||||
"disk" = {
|
||||
interval = 30;
|
||||
format = " {percentage_used}% {free:2} free";
|
||||
path = "/";
|
||||
};
|
||||
|
||||
"memory" = {
|
||||
format = " {percentage}% {used:.1f}/{total:.1f} S: {swapUsed:.1f}/{swapTotal:.1f}";
|
||||
};
|
||||
|
||||
"custom/cpu_linux" = {
|
||||
exec = "~/.config/waybar/scripts/cpu_linux.sh";
|
||||
"return-type" = "json";
|
||||
interval = 2;
|
||||
format = ": {text}%";
|
||||
};
|
||||
|
||||
"custom/nvidia" = {
|
||||
exec = "nvidia-smi --query-gpu=utilization.gpu,temperature.gpu --format=csv,nounits,noheader | sed 's/\\([0-9]\\+\\), \\([0-9]\\+\\)/\\1% @ \\2°C/g'";
|
||||
format = " {}";
|
||||
interval = 4;
|
||||
};
|
||||
|
||||
"temperature" = {
|
||||
format = " {temperatureC}°C";
|
||||
hwmon-path = "/sys/devices/platform/coretemp.0/hwmon/hwmon7/temp1_input";
|
||||
format-critical = " {temperatureC}°C";
|
||||
interval = 1;
|
||||
critical-threshold = 80;
|
||||
on-click = "psensor";
|
||||
};
|
||||
|
||||
"tray" = {
|
||||
icon-size = 14;
|
||||
spacing = 5;
|
||||
};
|
||||
|
||||
"idle_inhibitor" = {
|
||||
format = "<span font='12'>{icon}</span>";
|
||||
format-icons = {
|
||||
activated = " Presentation mode on";
|
||||
deactivated = "";
|
||||
};
|
||||
};
|
||||
|
||||
"bluetooth" = {
|
||||
format-on = "";
|
||||
format-off = "";
|
||||
format-disabled = "";
|
||||
format-connected = "";
|
||||
format-connected-battery = "{device_battery_percentage}% ";
|
||||
tooltip-format = "{controller_alias}\t{controller_address}\n\n{num_connections} connected";
|
||||
tooltip-format-connected = "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}";
|
||||
tooltip-format-enumerate-connected = "{device_alias}\t{device_address}";
|
||||
tooltip-format-enumerate-connected-battery = "{device_alias}\t{device_address}\t{device_battery_percentage}%";
|
||||
on-click = "rofi-bluetooth";
|
||||
};
|
||||
|
||||
"pulseaudio" = {
|
||||
format = "{volume}% {icon}";
|
||||
format-bluetooth = "";
|
||||
format-muted = "";
|
||||
tooltip-format = "{volume}% {icon}";
|
||||
format-icons = {
|
||||
headphones = "";
|
||||
bluetooth = "";
|
||||
handsfree = "";
|
||||
headset = "";
|
||||
phone = "";
|
||||
portable = "";
|
||||
car = "";
|
||||
default = [ "" ];
|
||||
};
|
||||
scroll-step = 5;
|
||||
justify = "center";
|
||||
on-click = "pamixer -t";
|
||||
on-click-right = "pavucontrol";
|
||||
on-scroll-up = "pactl set-sink-volume @DEFAULT_SINK@ +5%";
|
||||
on-scroll-down = "pactl set-sink-volume @DEFAULT_SINK@ -5%";
|
||||
};
|
||||
|
||||
"pulseaudio#mic" = {
|
||||
format = "{format_source}";
|
||||
format-source = "";
|
||||
format-source-muted = "";
|
||||
tooltip-format = "{volume}% {format_source} ";
|
||||
on-click = "pactl set-source-mute 1 toggle";
|
||||
on-scroll-down = "pactl set-source-volume 1 -1%";
|
||||
on-scroll-up = "pactl set-source-volume 1 +1%";
|
||||
};
|
||||
|
||||
"group/audio" = {
|
||||
orientation = "horizontal";
|
||||
modules = [ "pulseaudio" "pulseaudio#mic" ];
|
||||
};
|
||||
|
||||
"group/networking" = {
|
||||
orientation = "horizontal";
|
||||
modules = [ "network" "network#speed" ];
|
||||
};
|
||||
|
||||
network = {
|
||||
format-wifi = " {essid}";
|
||||
format-ethernet = "";
|
||||
format-disconnected = "";
|
||||
tooltip-format = "{ipaddr}";
|
||||
tooltip-format-wifi = "{essid} ({signalStrength}%) \n{ipaddr} | {frequency} MHz{icon}";
|
||||
tooltip-format-ethernet = "{ifname} \n{ipaddr} | {frequency} MHz{icon} ";
|
||||
tooltip-format-disconnected = "Not Connected";
|
||||
on-click = "networkmanager_dmenu";
|
||||
};
|
||||
|
||||
"network#speed" = {
|
||||
format = " {bandwidthDownBits:20} {bandwidthUpBits:20}";
|
||||
interval = 1;
|
||||
tooltip = true;
|
||||
tooltip-format = "{ipaddr}";
|
||||
tooltip-format-wifi = "{essid} ({signalStrength}%) \n{ipaddr} | {frequency} MHz{icon} ";
|
||||
tooltip-format-ethernet = "{ifname} \n{ipaddr} | {frequency} MHz{icon} ";
|
||||
tooltip-format-disconnected = "Not Connected";
|
||||
on-click = "networkmanager_dmenu";
|
||||
};
|
||||
|
||||
"battery" = {
|
||||
interval = 4;
|
||||
states = {
|
||||
good = 95;
|
||||
warning = 30;
|
||||
critical = 20;
|
||||
};
|
||||
format = "{capacity}% <span font='16px'>{icon}</span> {power:.2f}W {time}";
|
||||
format-time = "{H}h {M}min";
|
||||
tooltip = "{time}";
|
||||
format-charging = "{capacity}% Full at {full-at}%";
|
||||
format-plugged = "{capacity}% ";
|
||||
format-icons = [
|
||||
"" "" "" ""
|
||||
"" "" "" ""
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user