waybar enabled

This commit is contained in:
Ivan Dimitrov 2024-02-16 15:52:29 +02:00
parent 526c0f0c6d
commit 22d19b7e7d
4 changed files with 26 additions and 20 deletions

View File

@ -1,6 +1,6 @@
{ system, pkgs, home-manager, modules, nid, ... }: { system, pkgs, home-manager, modules, nid, ... }:
let let
ivand-programs = with modules.home.programs; [ nvim zsh tmux git chromium firefox kitty lf obs-studio sway swaylock browserpass bottom gpg comma nushell ]; ivand-programs = with modules.home.programs; [ nvim zsh tmux git chromium firefox kitty lf obs-studio sway swaylock browserpass bottom gpg comma nushell waybar ];
ivand-packages = with modules.home.packages; [ dev essential media ]; ivand-packages = with modules.home.packages; [ dev essential media ];
in in
{ {

View File

@ -17,5 +17,6 @@
sway = import ./sway { inherit pkgs; }; sway = import ./sway { inherit pkgs; };
swaylock = import ./swaylock; swaylock = import ./swaylock;
tmux = import ./tmux { inherit pkgs; }; tmux = import ./tmux { inherit pkgs; };
waybar = import ./waybar { inherit pkgs; };
zsh = import ./zsh { inherit pkgs; }; zsh = import ./zsh { inherit pkgs; };
} }

View File

@ -6,6 +6,7 @@ set $right l
set $term kitty set $term kitty
set $menu bemenu-run | xargs swaymsg exec -- set $menu bemenu-run | xargs swaymsg exec --
exec waybar
exec swaymsg "workspace 1; exec kitty" exec swaymsg "workspace 1; exec kitty"
exec swaymsg "workspace 2; exec firefox" exec swaymsg "workspace 2; exec firefox"
@ -107,25 +108,6 @@ bindsym $mod+Shift+minus move scratchpad
# If there are multiple scratchpad windows, this command cycles through them. # If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show bindsym $mod+minus scratchpad show
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
status_command while date +'%a %Y-%m-%d %T'; do sleep 1; done
colors {
statusline #ffffff
background #323232
inactive_workspace #32323200 #32323200 #5c5c5c
focused_workspace #a6e3a1 #a6e3a1 #000000
}
}
# #
# Window styles: # Window styles:
# #

View File

@ -0,0 +1,23 @@
{ pkgs, ... }: {
programs.waybar = {
enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 30;
output = [
"eDP-1"
"HDMI-A-1"
];
modules-left = [ "sway/workspaces" ];
modules-right = [ "battery" "temperature" "clock" ];
"sway/workspaces" = {
disable-scroll = true;
all-outputs = true;
};
};
};
};
}