From f0fb3c4d1559bc13aeb764e25aa0746f465560b0 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sun, 8 Jun 2025 11:47:36 +0530 Subject: add labwc --- config/emacs/init.el | 7 +- config/labwc/autostart | 5 + config/labwc/default.nix | 9 + .../openbox-3/close.xbm | 5 + .../openbox-3/close_hover.xbm | 5 + .../openbox-3/close_pressed.xbm | 5 + .../openbox-3/desk.xbm | 5 + .../openbox-3/desk_toggled.xbm | 5 + .../openbox-3/iconify.xbm | 5 + .../openbox-3/iconify_hover.xbm | 5 + .../openbox-3/iconify_pressed.xbm | 5 + .../gruvbox-material-dark-blocks/openbox-3/max.xbm | 5 + .../openbox-3/max_hover.xbm | 5 + .../openbox-3/max_pressed.xbm | 5 + .../openbox-3/max_toggled.xbm | 5 + .../openbox-3/max_toggled_hover.xbm | 5 + .../openbox-3/max_toggled_pressed.xbm | 5 + .../openbox-3/shade.xbm | 5 + .../openbox-3/shade_toggled.xbm | 5 + .../gruvbox-material-dark-blocks/openbox-3/themerc | 172 ++++++++ config/labwc/rc.xml | 454 +++++++++++++++++++++ config/waybar/config | 58 +++ config/waybar/default.nix | 8 + config/waybar/style.css | 51 +++ 24 files changed, 842 insertions(+), 2 deletions(-) create mode 100644 config/labwc/autostart create mode 100644 config/labwc/default.nix create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/close.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/close_hover.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/close_pressed.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/desk.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/desk_toggled.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/iconify.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/iconify_hover.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/iconify_pressed.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/max.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/max_hover.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/max_pressed.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/max_toggled.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/max_toggled_hover.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/max_toggled_pressed.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/shade.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/shade_toggled.xbm create mode 100644 config/labwc/gruvbox-material-dark-blocks/openbox-3/themerc create mode 100644 config/labwc/rc.xml create mode 100644 config/waybar/config create mode 100644 config/waybar/default.nix create mode 100644 config/waybar/style.css (limited to 'config') diff --git a/config/emacs/init.el b/config/emacs/init.el index 8e9a664..6f075a1 100644 --- a/config/emacs/init.el +++ b/config/emacs/init.el @@ -92,8 +92,11 @@ (add-hook 'compilation-filter-hook 'ansi-color-compilation-filter) -(add-hook 'c-mode-hook 'clang-format-on-save-mode) -(add-hook 'c++-mode-hook 'clang-format-on-save-mode) +(add-hook 'c-mode-hook 'eglot-ensure) +(add-hook 'c++-mode-hook 'eglot-ensure) +(add-hook 'python-mode-hook 'eglot-ensure) + +(add-hook 'after-save-hook 'eglot-format) (global-set-key (kbd "s-`") 'popper-toggle) (global-set-key (kbd "C-`") 'popper-cycle) diff --git a/config/labwc/autostart b/config/labwc/autostart new file mode 100644 index 0000000..3928e0a --- /dev/null +++ b/config/labwc/autostart @@ -0,0 +1,5 @@ +wbg /config/dist/wallpaper.png & +waybar & +way-displays & +swayidle before-sleep swaylock lock swaylock & +dunst & diff --git a/config/labwc/default.nix b/config/labwc/default.nix new file mode 100644 index 0000000..bc83feb --- /dev/null +++ b/config/labwc/default.nix @@ -0,0 +1,9 @@ +{ pkgs, config, ... }: + +{ + home.packages = with pkgs; [ labwc ]; + + home.file.".config/labwc/rc.xml".source = ./rc.xml; + home.file.".config/labwc/autostart".source = ./autostart; + home.file.".themes/gruvbox-material-dark-blocks".source = ./gruvbox-material-dark-blocks; +} diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/close.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/close.xbm new file mode 100644 index 0000000..0f58737 --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/close.xbm @@ -0,0 +1,5 @@ +#define close_width 10 +#define close_height 10 +static unsigned char close_bits[] = { + 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, + 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/close_hover.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/close_hover.xbm new file mode 100644 index 0000000..87ab9a4 --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/close_hover.xbm @@ -0,0 +1,5 @@ +#define close_width 10 +#define close_height 10 +static unsigned char close_bits[] = { + 0x03, 0x03, 0x87, 0x03, 0xce, 0x01, 0xfc, 0x00, 0x78, 0x00, + 0x78, 0x00, 0xfc, 0x00, 0xce, 0x01, 0x87, 0x03, 0x03, 0x03 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/close_pressed.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/close_pressed.xbm new file mode 100644 index 0000000..87ab9a4 --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/close_pressed.xbm @@ -0,0 +1,5 @@ +#define close_width 10 +#define close_height 10 +static unsigned char close_bits[] = { + 0x03, 0x03, 0x87, 0x03, 0xce, 0x01, 0xfc, 0x00, 0x78, 0x00, + 0x78, 0x00, 0xfc, 0x00, 0xce, 0x01, 0x87, 0x03, 0x03, 0x03 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/desk.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/desk.xbm new file mode 100644 index 0000000..a28c0c5 --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/desk.xbm @@ -0,0 +1,5 @@ +#define desk_width 10 +#define desk_height 10 +static unsigned char desk_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x66, 0x00, 0x66, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x66, 0x00, 0x66, 0x00, 0x00, 0x00, 0x00, 0x00 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/desk_toggled.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/desk_toggled.xbm new file mode 100644 index 0000000..132905d --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/desk_toggled.xbm @@ -0,0 +1,5 @@ +#define desk_toggled_width 10 +#define desk_toggled_height 10 +static unsigned char desk_toggled_bits[] = { + 0xef, 0x01, 0x29, 0x01, 0x29, 0x01, 0xef, 0x01, 0x00, 0x00, + 0xef, 0x01, 0x29, 0x01, 0x29, 0x01, 0xef, 0x01, 0x00, 0x00 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/iconify.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/iconify.xbm new file mode 100644 index 0000000..0f58737 --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/iconify.xbm @@ -0,0 +1,5 @@ +#define close_width 10 +#define close_height 10 +static unsigned char close_bits[] = { + 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, + 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/iconify_hover.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/iconify_hover.xbm new file mode 100644 index 0000000..0416a1e --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/iconify_hover.xbm @@ -0,0 +1,5 @@ +#define iconify_width 10 +#define iconify_height 10 +static unsigned char iconify_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0xff, 0x03 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/iconify_pressed.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/iconify_pressed.xbm new file mode 100644 index 0000000..0416a1e --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/iconify_pressed.xbm @@ -0,0 +1,5 @@ +#define iconify_width 10 +#define iconify_height 10 +static unsigned char iconify_bits[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0xff, 0x03 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/max.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/max.xbm new file mode 100644 index 0000000..0f58737 --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/max.xbm @@ -0,0 +1,5 @@ +#define close_width 10 +#define close_height 10 +static unsigned char close_bits[] = { + 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, + 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_hover.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_hover.xbm new file mode 100644 index 0000000..2f8892f --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_hover.xbm @@ -0,0 +1,5 @@ +#define max_width 10 +#define max_height 10 +static unsigned char max_bits[] = { + 0xff, 0x03, 0xff, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, + 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0xff, 0x03, 0xff, 0x03 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_pressed.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_pressed.xbm new file mode 100644 index 0000000..2f8892f --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_pressed.xbm @@ -0,0 +1,5 @@ +#define max_width 10 +#define max_height 10 +static unsigned char max_bits[] = { + 0xff, 0x03, 0xff, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, + 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0xff, 0x03, 0xff, 0x03 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_toggled.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_toggled.xbm new file mode 100644 index 0000000..0f58737 --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_toggled.xbm @@ -0,0 +1,5 @@ +#define close_width 10 +#define close_height 10 +static unsigned char close_bits[] = { + 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, + 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_toggled_hover.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_toggled_hover.xbm new file mode 100644 index 0000000..5568474 --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_toggled_hover.xbm @@ -0,0 +1,5 @@ +#define max_toggled_width 10 +#define max_toggled_height 10 +static unsigned char max_toggled_bits[] = { + 0xfc, 0x03, 0xfc, 0x03, 0x00, 0x03, 0x7f, 0x03, 0x7f, 0x03, + 0x63, 0x03, 0x63, 0x03, 0x63, 0x03, 0x7f, 0x00, 0x7f, 0x00 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_toggled_pressed.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_toggled_pressed.xbm new file mode 100644 index 0000000..5568474 --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/max_toggled_pressed.xbm @@ -0,0 +1,5 @@ +#define max_toggled_width 10 +#define max_toggled_height 10 +static unsigned char max_toggled_bits[] = { + 0xfc, 0x03, 0xfc, 0x03, 0x00, 0x03, 0x7f, 0x03, 0x7f, 0x03, + 0x63, 0x03, 0x63, 0x03, 0x63, 0x03, 0x7f, 0x00, 0x7f, 0x00 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/shade.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/shade.xbm new file mode 100644 index 0000000..e21c44a --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/shade.xbm @@ -0,0 +1,5 @@ +#define shade_width 10 +#define shade_height 10 +static unsigned char shade_bits[] = { + 0x30, 0x00, 0x78, 0x00, 0xfc, 0x00, 0xfe, 0x01, 0xb7, 0x03, + 0x33, 0x03, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/shade_toggled.xbm b/config/labwc/gruvbox-material-dark-blocks/openbox-3/shade_toggled.xbm new file mode 100644 index 0000000..16c8066 --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/shade_toggled.xbm @@ -0,0 +1,5 @@ +#define shade_toggled_width 10 +#define shade_toggled_height 10 +static unsigned char shade_toggled_bits[] = { + 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x30, 0x00, 0x33, 0x03, + 0xb7, 0x03, 0xfe, 0x01, 0xfc, 0x00, 0x78, 0x00, 0x30, 0x00 }; diff --git a/config/labwc/gruvbox-material-dark-blocks/openbox-3/themerc b/config/labwc/gruvbox-material-dark-blocks/openbox-3/themerc new file mode 100644 index 0000000..55b1933 --- /dev/null +++ b/config/labwc/gruvbox-material-dark-blocks/openbox-3/themerc @@ -0,0 +1,172 @@ +# Name: Gruvbox Material Openbox Theme +# Author: Nathaniel Evan +# Template provided by Satyajit Sahoo +# License: GPL-3.0+ + +# @TODO: finish replacing the colors here + + +# Menu +menu.border.color: #282828 +menu.border.width: 8 +menu.overlap.x: -10 + +menu.title.bg: Solid Flat +menu.title.bg.color: #32302f +menu.title.bg.shadow: 0 +menu.title.text.color: #9b9b9b +menu.title.text.justify: Center + +menu.items.bg: Solid Flat +menu.items.bg.color: #282828 +menu.items.text.color: #9b9b9b +menu.items.disabled.text.color: #928374 + +menu.items.active.bg: Solid Flat +menu.items.active.bg.color: #d8a657 +menu.items.active.text.color: #282828 + +menu.separator.color: #45403d +menu.separator.width: 1 +menu.separator.padding.width: 2 +menu.separator.padding.height: 6 + +# Active window +window.active.border.color: #212121 + + +window.active.title.bg: flat solid +window.active.title.bg.color: #212121 +window.active.title.separator.color: #212121 +window.active.client.color: #32302f +window.active.text.justify: center + +window.active.label.bg: parentrelative +window.active.label.text.color: #9b9b9b + +window.active.handle.bg: flat solid +window.active.handle.bg.color: #d8a657 + +window.active.grip.bg: flat solid +window.active.grip.bg.color: #212121 + +window.active.button.unpressed.bg: parentrelative +window.active.button.iconify.unpressed.image.color: #d8a657 +window.active.button.max.unpressed.image.color: #a9b665 +window.active.button.close.unpressed.image.color: #ea6962 + +window.active.button.pressed.bg: parentrelative +window.active.button.iconify.pressed.image.color: #b47109 +window.active.button.max.pressed.image.color: #6c782e +window.active.button.close.pressed.image.color: #c14a4a + +window.active.button.disabled.bg: parentrelative +window.active.button.iconify.disabled.image.color: #32302f +window.active.button.max.disabled.image.color: #32302f +window.active.button.close.disabled.image.color: #32302f + +window.active.button.hover.bg: parentrelative +window.active.button.iconify.hover.image.color: #d8a657 +window.active.button.max.hover.image.color: #a9b665 +window.active.button.close.hover.image.color: #ea6962 + +window.active.button.toggled.bg: parentrelative +window.active.button.max.toggled.unpressed.image.color: #a9b665 +window.active.button.max.toggled.pressed.image.color: #6c782e +window.active.button.max.toggled.hover.image.color: #a9b665 + +# Inactive window +window.inactive.border.color: #3c3836 + +window.inactive.title.bg: flat solid +window.inactive.title.bg.color: #3c3836 +window.inactive.title.separator.color: #3c3836 +window.inactive.client.color: #5a524c +window.inactive.text.justify: center + +window.inactive.label.bg: parentrelative +window.inactive.label.text.color: #928374 + +window.inactive.handle.bg: flat solid +window.inactive.handle.bg.color: #928374 + +window.inactive.grip.bg: flat solid +window.inactive.grip.bg.color: #3c3836 + +window.inactive.button.unpressed.bg: parentrelative +window.inactive.button.iconify.unpressed.image.color: #928374 +window.inactive.button.max.unpressed.image.color: #928374 +window.inactive.button.close.unpressed.image.color: #928374 + +window.inactive.button.pressed.bg: parentrelative +window.inactive.button.iconify.pressed.image.color: #b47109 +window.inactive.button.max.pressed.image.color: #6c782e +window.inactive.button.close.pressed.image.color: #c14a4a + +window.inactive.button.disabled.bg: parentrelative +window.inactive.button.iconify.disabled.image.color: #5a524c +window.inactive.button.max.disabled.image.color: #5a524c +window.inactive.button.close.disabled.image.color: #5a524c + +window.inactive.button.hover.bg: parentrelative +window.inactive.button.iconify.hover.image.color: #d8a657 +window.inactive.button.max.hover.image.color: #a9b665 +window.inactive.button.close.hover.image.color: #ea6962 + +window.inactive.button.toggled.bg: parentrelative +window.inactive.button.max.toggled.unpressed.image.color: #928374 +window.inactive.button.max.toggled.pressed.image.color: #6c782e +window.inactive.button.max.toggled.hover.image.color: #a9b665 + +# OSD +osd.border.width: 1 +osd.border.color: #d8a657 + +osd.bg: flat solid +osd.bg.color: #232425 +osd.bg.shadow: 0 +osd.label.bg: flat solid +osd.label.bg.color: #232425 +osd.label.text.color: #9b9b9b + +osd.hilight.bg: Solid Flat +osd.hilight.bg.color: #d8a657 +osd.unhilight.bg: flat solid +osd.unhilight.bg.color: #232425 + +osd.button.unpressed.bg: flat border +osd.button.unpressed.bg.color: #32302f +osd.button.unpressed.text.color: #9b9b9b +osd.button.unpressed.*.border.color: #928374 + +osd.button.pressed.bg: flat border +osd.button.pressed.bg.color: #d8a657 +osd.button.pressed.text.color: #282828 +osd.button.pressed.*.border.color: #928374 + +osd.button.focused.bg: flat solid border +osd.button.focused.bg.color: #32302f +osd.button.focused.text.color: #9b9b9b +osd.button.focused.*.border.color: #928374 + +osd.button.focused.box.color: #9b9b9b +osd.button.pressed.box.color: #282828 + +# Fonts +window.active.label.text.font:shadow=n +window.inactive.label.text.font:shadow=n +menu.items.font:shadow=n +# Uncomment line below and change to a number to enable menu item padding +# menu.items.font:shadow=y:shadowtint=0:shadowoffset= +menu.title.text.font:shadow=n + + +# Everything else +border.width: 2 +padding.width: 5 +padding.height: 4 +window.handle.width: 0 +window.client.padding.height: 0 +window.client.padding.width: 0 +window.label.text.justify: center +#menu.overlap: 0 diff --git a/config/labwc/rc.xml b/config/labwc/rc.xml new file mode 100644 index 0000000..500658e --- /dev/null +++ b/config/labwc/rc.xml @@ -0,0 +1,454 @@ + + + + + + yes + yes + yes + no + no + + + + cascade + + + + + gruvbox-material-dark-blocks + + labwc + + :iconify,max,close + yes + + 8 + yes + no + no + + UbuntuMono Nerd Font Mono + 10 + normal + normal + + + UbuntuMono Nerd Font Mono + 10 + normal + normal + + + UbuntuMono Nerd Font Mono + 10 + normal + normal + + + UbuntuMono Nerd Font Mono + 10 + normal + normal + + + UbuntuMono Nerd Font Mono + 10 + normal + normal + + + + + + + + + + + + + + + 20 + 20 + + 20 + + 150 + + + + + Never + + yes + + 8 + + + + + + no + yes + yes + + + + + 10 + + + + yes + always + + + + + + + + global + 25 + 600 + + + + + + + + + + + + sh -c 'bemenu-run -b --fn "UbuntuMono Nerd Font Mono"' + + + + + sh -c 'grim -g "$(slurp)" - | wl-copy' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 500 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + no + no + + adaptive + + + yes + yes + yes + yes + yes + clickfinger + + + + + 250 + yes + + + diff --git a/config/waybar/config b/config/waybar/config new file mode 100644 index 0000000..52d1df2 --- /dev/null +++ b/config/waybar/config @@ -0,0 +1,58 @@ +{ + "layer": "top", + "position": "bottom", + "height": 40, + "margin-top": 0, + "margin-right": 0, + "margin-bottom": 0, + "margin-left": 0, + "modules-left": ["wlr/taskbar"], + "modules-center": [], + "modules-right": ["backlight", "pulseaudio", "battery", "clock"], + + "clock": { + "format": " {:%a, %b %d %Y | 󰥔 %I:%M %p}" + }, + + "wlr/taskbar": { + "format": "{title:.24}", + "tooltip-format": "{title}", + "on-click": "minimize-raise", + "on-click-right": "close" + }, + + "tray": { + "icon-size": 24 + }, + + "pulseaudio": { + "format": "{icon} {volume}%", + "format-bluetooth": "{icon} {volume}%", + "format-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "phone-muted": "", + "portable": "", + "car": "", + "default": ["", ""] + }, + "scroll-step": 1, + "on-click": "pavucontrol" + }, + + "backlight": { + "format": "{icon} {percent}%", + "format-icons": ["", ""] + }, + + "battery": { + "bat": "BAT1", + "interval": 60, + "format": "{icon} {capacity}%", + "format-icons": ["", "", "", "", ""], + "max-length": 25 + } +} diff --git a/config/waybar/default.nix b/config/waybar/default.nix new file mode 100644 index 0000000..5aaf2e1 --- /dev/null +++ b/config/waybar/default.nix @@ -0,0 +1,8 @@ +{ pkgs, config, ... }: + +{ + home.packages = with pkgs; [ waybar ]; + + home.file.".config/waybar/config".source = ./config; + home.file.".config/waybar/style.css".source = ./style.css; +} diff --git a/config/waybar/style.css b/config/waybar/style.css new file mode 100644 index 0000000..f016ace --- /dev/null +++ b/config/waybar/style.css @@ -0,0 +1,51 @@ +/* ----------------------------------------------------------------------------- + * Styles + * -------------------------------------------------------------------------- */ + +/* COLORS */ + +/* Nord */ +@define-color bg #191919; +@define-color light #212121; + +/* Reset all styles */ +* { + border: none; + border-radius: 0px; + min-height: 0; + font-family: "UbuntuMono Nerd Font Mono"; + font-size: 14px; + font-weight: bold; + padding: 0; +} + +/* The whole bar */ +window#waybar { + background: @bg; + color: @light; + border: 2px solid #191919; +} + +/* Each module */ +#clock, +#taskbar button, +#workspaces, +#tray, +#battery, +#pulseaudio, +#backlight { + margin: 6px 6px 6px 0px; + padding: 2px 8px; + background: #212121; + color: #9b9b9b +} + +#taskbar { + padding: 0 6px; +} + +#window { + margin-right: 40px; + margin-left: 40px; + font-weight: normal; +} -- cgit v1.2.3