From 2c7a0f3ed32fdab4a7cf7d254354cb9af03c753a Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Wed, 16 Jun 2021 09:22:28 +0200 Subject: [PATCH] Polybar theme + bspwm movement + xidlehook + lockscreen --- home.nix | 6 +++- modules/polybar.nix | 65 +++++++++++++++++++++++++------------------ modules/sxhkd.nix | 5 +++- modules/xidelhook.nix | 29 +++++++++++++++++++ 4 files changed, 76 insertions(+), 29 deletions(-) create mode 100644 modules/xidelhook.nix diff --git a/home.nix b/home.nix index e41d28e..a223e91 100644 --- a/home.nix +++ b/home.nix @@ -63,6 +63,7 @@ in gnome3.seahorse gnome3.sushi google-chrome + gucharmap htop jetbrains.datagrip krita @@ -79,6 +80,7 @@ in pcmanfm pentablet-driver procps-ng + ripgrep shotwell skypeforlinux slack @@ -86,6 +88,7 @@ in tdesktop teams transmission-gtk + wineFull wireguard zoom-us zotero @@ -127,7 +130,8 @@ in ./modules/polybar.nix ./modules/qogir_theme.nix ./modules/rofi.nix - ./modules/screen_locker.nix + # ./modules/screen_locker.nix + ./modules/xidelhook.nix ./modules/ssh.nix ./modules/sxhkd.nix ./modules/syncthing.nix diff --git a/modules/polybar.nix b/modules/polybar.nix index 3364800..778799a 100644 --- a/modules/polybar.nix +++ b/modules/polybar.nix @@ -6,7 +6,7 @@ let pgrep = "${pkgs.procps}/bin/pgrep"; pkill = "${pkgs.procps}/bin/pkill"; playerCtl = "${pkgs.playerctl}/bin/playerctl"; - playerStatus = "${playerCtl} -f '{{emoji(status)}} {{title}} - {{artist}}' metadata"; + playerStatus = "${playerCtl} -f '{{emoji(status)}} {{title}} - {{artist}}' metadata | head -c 60"; colors = with pkgs.extra; palette.toARGBHex rec { normal = { @@ -57,16 +57,16 @@ let top.size = 2; bottom.size = 0; }; - font = [ "FuraCode Nerd Font Mono:pixelsize=10;2" "unifont:fontformat=truetype:size=8:antialias=false;0" "siji:pixelsize=10;1" ]; - tray = { - position = "right"; - padding = 0; - }; + font = [ + "FuraCode Nerd Font Mono:pixelsize=10;2" + # "EmojiOne Color;0" + "NotoEmoji Nerd Font Mono;0" + ]; wm-restack = "bspwm"; }; in { - home.packages = with pkgs; [ nerdfonts ]; + home.packages = with pkgs; [ nerdfonts emojione noto-fonts-emoji ]; services.polybar = { enable = true; package = pkgs.polybarFull; @@ -90,6 +90,10 @@ in # modules-center = modules-right = "player pulseaudio temperature cpu memory battery date powermenu"; enable-ipc = true; + tray = { + position = "right"; + padding = 0; + }; }; "bar/secondary" = commonBar // { @@ -108,11 +112,11 @@ in animation = { charging = { - text = [ "" "" "" ]; + text = [ "" "" "" "" "" "" "" "" "" "" ]; framerate = "750"; }; discharging = { - text = [ "" "" "" ]; + text = [ "" "" "" "" "" "" "" "" "" "" ]; framerate = "750"; }; }; @@ -120,15 +124,15 @@ in format = { charging = colors.selected // { padding = 1; - text = " "; + text = " "; }; discharging = colors.active // { padding = 1; - text = " "; + text = " "; }; full = colors.normal // { padding = 1; - text = " "; + text = " "; }; }; @@ -161,11 +165,12 @@ in "module/cpu" = { type = "internal/cpu"; format = colors.normal // { - prefix = "▣ "; + text = "RAM