Massively simplify Waybar, remove unused remote desktop profile, other things I'm sure
This commit is contained in:
parent
532a1e280f
commit
26b81cf5ed
13 changed files with 153 additions and 209 deletions
|
@ -4,7 +4,6 @@
|
|||
desktop.enable = true;
|
||||
gaming.enable = true;
|
||||
production.enable = true;
|
||||
remote-desktop.enable = true;
|
||||
school.enable = true;
|
||||
enableNixpkgsReleaseCheck = false;
|
||||
stateVersion = lib.mkForce config.system.stateVersion;
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
{
|
||||
home-manager.users."${config.sysusers.main}".home = {
|
||||
desktop.enable = true;
|
||||
remote-desktop.enable = true;
|
||||
stateVersion = lib.mkForce config.system.stateVersion;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
desktop.enable = mkEnableOption "Desktop programs and services";
|
||||
gaming.enable = mkEnableOption "Gaming apps and programs";
|
||||
production.enable = mkEnableOption "Apps for visual productivity";
|
||||
remote-desktop.enable = mkEnableOption "Apps for remote desktop";
|
||||
school.enable = mkEnableOption "Apps for school and college";
|
||||
};
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
./mpv
|
||||
./obs
|
||||
./pcmanfm
|
||||
./rofi
|
||||
./thunderbird
|
||||
];
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
thumbnail
|
||||
];
|
||||
config = {
|
||||
volume = 60;
|
||||
loop-playlist = "inf";
|
||||
osc = "no";
|
||||
volume = 60;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,79 +6,85 @@
|
|||
file-roller
|
||||
];
|
||||
xdg.configFile = {
|
||||
"pcmanfm/default/pcmanfm.conf".text = ''
|
||||
[config]
|
||||
bm_open_method=0
|
||||
"pcmanfm/default/pcmanfm.conf" = {
|
||||
text = ''
|
||||
[config]
|
||||
bm_open_method=0
|
||||
|
||||
[volume]
|
||||
mount_on_startup=0
|
||||
mount_removable=1
|
||||
autorun=0
|
||||
[volume]
|
||||
mount_on_startup=0
|
||||
mount_removable=1
|
||||
autorun=0
|
||||
|
||||
[ui]
|
||||
always_show_tabs=0
|
||||
max_tab_chars=32
|
||||
win_width=943
|
||||
win_height=1039
|
||||
splitter_pos=150
|
||||
media_in_new_tab=0
|
||||
desktop_folder_new_win=0
|
||||
change_tab_on_drop=1
|
||||
close_on_unmount=1
|
||||
focus_previous=0
|
||||
side_pane_mode=places
|
||||
view_mode=icon
|
||||
show_hidden=1
|
||||
sort=mtime;descending;
|
||||
toolbar=newtab;navigation;home;
|
||||
show_statusbar=1
|
||||
pathbar_mode_buttons=0
|
||||
'';
|
||||
[ui]
|
||||
always_show_tabs=0
|
||||
max_tab_chars=32
|
||||
win_width=943
|
||||
win_height=1039
|
||||
splitter_pos=150
|
||||
media_in_new_tab=0
|
||||
desktop_folder_new_win=0
|
||||
change_tab_on_drop=1
|
||||
close_on_unmount=1
|
||||
focus_previous=0
|
||||
side_pane_mode=places
|
||||
view_mode=icon
|
||||
show_hidden=1
|
||||
sort=mtime;descending;
|
||||
toolbar=newtab;navigation;home;
|
||||
show_statusbar=1
|
||||
pathbar_mode_buttons=0
|
||||
'';
|
||||
force = true;
|
||||
};
|
||||
|
||||
"libfm/libfm.conf".text = ''
|
||||
[config]
|
||||
single_click=0
|
||||
use_trash=1
|
||||
confirm_del=1
|
||||
confirm_trash=1
|
||||
advanced_mode=1
|
||||
si_unit=0
|
||||
force_startup_notify=1
|
||||
backup_as_hidden=1
|
||||
no_usb_trash=1
|
||||
no_child_non_expandable=0
|
||||
show_full_names=0
|
||||
only_user_templates=0
|
||||
template_run_app=0
|
||||
template_type_once=0
|
||||
auto_selection_delay=600
|
||||
drop_default_action=auto
|
||||
defer_content_test=0
|
||||
quick_exec=0
|
||||
terminal=foot
|
||||
archiver=file-roller
|
||||
thumbnail_local=1
|
||||
thumbnail_max=2048
|
||||
smart_desktop_autodrop=1
|
||||
"libfm/libfm.conf" = {
|
||||
text = ''
|
||||
[config]
|
||||
single_click=0
|
||||
use_trash=1
|
||||
confirm_del=1
|
||||
confirm_trash=1
|
||||
advanced_mode=1
|
||||
si_unit=0
|
||||
force_startup_notify=1
|
||||
backup_as_hidden=1
|
||||
no_usb_trash=1
|
||||
no_child_non_expandable=0
|
||||
show_full_names=0
|
||||
only_user_templates=0
|
||||
template_run_app=0
|
||||
template_type_once=0
|
||||
auto_selection_delay=600
|
||||
drop_default_action=auto
|
||||
defer_content_test=0
|
||||
quick_exec=0
|
||||
terminal=foot
|
||||
archiver=file-roller
|
||||
thumbnail_local=1
|
||||
thumbnail_max=2048
|
||||
smart_desktop_autodrop=1
|
||||
|
||||
[ui]
|
||||
big_icon_size=48
|
||||
small_icon_size=16
|
||||
pane_icon_size=16
|
||||
thumbnail_size=128
|
||||
show_thumbnail=1
|
||||
shadow_hidden=0
|
||||
[ui]
|
||||
big_icon_size=48
|
||||
small_icon_size=16
|
||||
pane_icon_size=16
|
||||
thumbnail_size=128
|
||||
show_thumbnail=1
|
||||
shadow_hidden=0
|
||||
|
||||
[places]
|
||||
places_home=1
|
||||
places_desktop=1
|
||||
places_root=0
|
||||
places_computer=0
|
||||
places_trash=1
|
||||
places_applications=1
|
||||
places_network=0
|
||||
places_unmounted=1
|
||||
'';
|
||||
[places]
|
||||
places_home=1
|
||||
places_desktop=1
|
||||
places_root=0
|
||||
places_computer=0
|
||||
places_trash=1
|
||||
places_applications=1
|
||||
places_network=0
|
||||
places_unmounted=1
|
||||
'';
|
||||
force = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
./general
|
||||
./headless
|
||||
./production
|
||||
./remote-desktop
|
||||
./school
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; lib.mkIf config.home.remote-desktop.enable [
|
||||
moonlight-qt
|
||||
rustdesk-flutter
|
||||
];
|
||||
}
|
|
@ -9,6 +9,5 @@
|
|||
d2 = "DP-2";
|
||||
d3 = "DP-3";
|
||||
d4 = "HDMI-A-1";
|
||||
dI = "eDP-1";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
imports = [
|
||||
./kanshi
|
||||
./mako
|
||||
./rofi
|
||||
./swaylock
|
||||
./waybar
|
||||
./wlpicker
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
programs.waybar = let
|
||||
swayWorkspaceModule = {
|
||||
|
@ -28,7 +28,10 @@
|
|||
format-icons = {
|
||||
headphone = " ";
|
||||
headset = " ";
|
||||
default = [ " " " " ];
|
||||
default = [
|
||||
" "
|
||||
" "
|
||||
];
|
||||
};
|
||||
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||
on-click-middle = "wpctl set-volume @DEFAULT_AUDIO_SINK@ 100%";
|
||||
|
@ -111,8 +114,14 @@
|
|||
format-wifi = "";
|
||||
format-disconnected = "";
|
||||
format-linked = "";
|
||||
tooltip-format-ethernet = "{ipaddr}\n{ifname} ";
|
||||
tooltip-format-wifi = "{ipaddr}\n{essid} ({signalStrength}%)";
|
||||
tooltip-format-ethernet = lib.concatStrings [
|
||||
"{ipaddr}\n"
|
||||
"{ifname} "
|
||||
];
|
||||
tooltip-format-wifi = lib.concatStrings [
|
||||
"{ipaddr}\n"
|
||||
"{essid} ({signalStrength}%)"
|
||||
];
|
||||
tooltip-format-disconnected = "Disconnected";
|
||||
};
|
||||
|
||||
|
@ -121,7 +130,10 @@
|
|||
format-disabled = "";
|
||||
format-no-controller = "";
|
||||
tooltip-format-on = "No devices connected.";
|
||||
tooltip-format-connected = "{num_connections} connected\n{device_enumerate}";
|
||||
tooltip-format-connected = lib.concatStrings [
|
||||
"{num_connections} connected\n"
|
||||
"{device_enumerate}"
|
||||
];
|
||||
tooltip-format-enumerate-connected = "{device_alias}";
|
||||
tooltip-format-enumerate-connected-battery = "{device_alias} {device_battery_percentage}%";
|
||||
};
|
||||
|
@ -190,7 +202,10 @@
|
|||
# Laptop modules
|
||||
backlightModule = {
|
||||
format = "{icon} {percent}%";
|
||||
format-icons = [ "" "" ];
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
];
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
|
@ -201,133 +216,27 @@
|
|||
critical = 15;
|
||||
};
|
||||
format = "{icon} {capacity}%";
|
||||
format-icons = [ "" "" "" "" "" ];
|
||||
format-icons = [
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
""
|
||||
];
|
||||
};
|
||||
in {
|
||||
enable = config.home.desktop.enable;
|
||||
settings = {
|
||||
display1 = {
|
||||
displayPrimary = {
|
||||
name = "bar1";
|
||||
position = "top";
|
||||
layer = "top";
|
||||
output = [
|
||||
config.displays.d1
|
||||
"VGA-1"
|
||||
];
|
||||
modules-left = [
|
||||
"sway/workspaces"
|
||||
"sway/window"
|
||||
"niri/workspaces"
|
||||
"niri/window"
|
||||
"hyprland/workspaces"
|
||||
"hyprland/window"
|
||||
];
|
||||
modules-right = [
|
||||
"pulseaudio"
|
||||
"cpu"
|
||||
"memory"
|
||||
"custom/vram"
|
||||
"custom/clock-long"
|
||||
"gamemode"
|
||||
"sway/scratchpad"
|
||||
"privacy"
|
||||
"tray"
|
||||
"bluetooth"
|
||||
"network"
|
||||
];
|
||||
"sway/workspaces" = swayWorkspaceModule;
|
||||
"sway/window" = windowModule;
|
||||
"niri/window" = windowModule;
|
||||
"hyprland/window" = windowModule;
|
||||
"pulseaudio" = pulseModule;
|
||||
"cpu" = cpuModule;
|
||||
"memory" = ramModule;
|
||||
"custom/vram" = vramModule;
|
||||
"custom/clock-long" = longClockModule;
|
||||
"gamemode" = gamemodeModule;
|
||||
"privacy" = privacyModule;
|
||||
"sway/scratchpad" = scratchpadModule;
|
||||
"tray" = trayModule;
|
||||
"bluetooth" = bluetoothModule;
|
||||
"network" = networkModule;
|
||||
};
|
||||
|
||||
display2 = {
|
||||
name = "bar2";
|
||||
position = "top";
|
||||
layer = "top";
|
||||
output = [ config.displays.d2 ];
|
||||
modules-left = [
|
||||
"sway/workspaces"
|
||||
"sway/window"
|
||||
"niri/workspaces"
|
||||
"niri/window"
|
||||
"hyprland/workspaces"
|
||||
"hyprland/window"
|
||||
];
|
||||
modules-right = [
|
||||
"pulseaudio"
|
||||
"mpd"
|
||||
"custom/notifs"
|
||||
"cpu"
|
||||
"memory"
|
||||
"custom/vram"
|
||||
"custom/clock-long"
|
||||
];
|
||||
"sway/workspaces" = swayWorkspaceModule;
|
||||
"sway/window" = windowModule;
|
||||
"niri/window" = windowModule;
|
||||
"hyprland/window" = windowModule;
|
||||
"pulseaudio" = pulseModule;
|
||||
"mpd" = mpdModule;
|
||||
"custom/notifs" = notificationModule;
|
||||
"cpu" = cpuModule;
|
||||
"memory" = ramModule;
|
||||
"custom/vram" = vramModule;
|
||||
"custom/clock-long" = longClockModule;
|
||||
};
|
||||
|
||||
display3 = {
|
||||
name = "bar3";
|
||||
position = "top";
|
||||
layer = "top";
|
||||
output = [ config.displays.d3 ];
|
||||
modules-left = [
|
||||
"sway/workspaces"
|
||||
"sway/window"
|
||||
"niri/workspaces"
|
||||
"niri/window"
|
||||
"hyprland/workspaces"
|
||||
"hyprland/window"
|
||||
];
|
||||
modules-right = [
|
||||
"pulseaudio"
|
||||
"custom/weather"
|
||||
"cpu"
|
||||
"memory"
|
||||
"custom/vram"
|
||||
"custom/clock-short"
|
||||
];
|
||||
"sway/workspaces" = swayWorkspaceModule;
|
||||
"sway/window" = windowModule;
|
||||
"niri/window" = windowModule;
|
||||
"hyprland/window" = windowModule;
|
||||
"pulseaudio" = pulseModule;
|
||||
"custom/weather" = weatherModule;
|
||||
"cpu" = cpuModule;
|
||||
"memory" = ramModule;
|
||||
"custom/vram" = vramModule;
|
||||
"custom/clock-short" = shortClockModule;
|
||||
};
|
||||
displayLap = {
|
||||
name = "laptop";
|
||||
position = "top";
|
||||
layer = "top";
|
||||
output = [
|
||||
"eDP-1"
|
||||
"LVDS-1"
|
||||
"DSI-1"
|
||||
"HDMI-A-1"
|
||||
"LVDS-1"
|
||||
"eDP-1"
|
||||
"DP-1"
|
||||
];
|
||||
modules-left = [
|
||||
"sway/workspaces"
|
||||
|
@ -350,6 +259,7 @@
|
|||
"custom/clock-long"
|
||||
"gamemode"
|
||||
"sway/scratchpad"
|
||||
"privacy"
|
||||
"tray"
|
||||
"bluetooth"
|
||||
"network"
|
||||
|
@ -369,10 +279,50 @@
|
|||
"battery" = batteryModule;
|
||||
"custom/clock-long" = longClockModule;
|
||||
"sway/scratchpad" = scratchpadModule;
|
||||
"privacy" = privacyModule;
|
||||
"tray" = trayModule;
|
||||
"bluetooth" = bluetoothModule;
|
||||
"network" = networkModule;
|
||||
};
|
||||
|
||||
displaySecondary = {
|
||||
name = "bar2";
|
||||
position = "top";
|
||||
layer = "top";
|
||||
output = [
|
||||
"!DSI-1"
|
||||
"!HDMI-A-1"
|
||||
"!LVDS-1"
|
||||
"!eDP-1"
|
||||
"!DP-1"
|
||||
];
|
||||
modules-left = [
|
||||
"sway/workspaces"
|
||||
"sway/window"
|
||||
"niri/workspaces"
|
||||
"niri/window"
|
||||
"hyprland/workspaces"
|
||||
"hyprland/window"
|
||||
];
|
||||
modules-right = [
|
||||
"pulseaudio"
|
||||
"cpu"
|
||||
"memory"
|
||||
"custom/vram"
|
||||
"custom/clock-long"
|
||||
];
|
||||
"sway/workspaces" = swayWorkspaceModule;
|
||||
"sway/window" = windowModule;
|
||||
"niri/window" = windowModule;
|
||||
"hyprland/window" = windowModule;
|
||||
"pulseaudio" = pulseModule;
|
||||
"mpd" = mpdModule;
|
||||
"custom/notifs" = notificationModule;
|
||||
"cpu" = cpuModule;
|
||||
"memory" = ramModule;
|
||||
"custom/vram" = vramModule;
|
||||
"custom/clock-long" = longClockModule;
|
||||
};
|
||||
};
|
||||
|
||||
style = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue