all repos

dotfiles @ 80b03aa

i use rach linux btw
3 files changed, 12 insertions(+), 4 deletions(-)
waybar: add custom/timew to show current timeworrior "profile"
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-09-15 12:52:25 +0300
Parent: 7173b66
M config/niri/waybar.jsonc
···
                11
                11
                     "~/.config/waybar/modules/niri.json"

              
                12
                12
                   ],

              
                13
                13
                   "modules-left": ["niri/workspaces", "niri/window"],

              
                14
                
                -  "modules-center": ["clock", "temperature"],

              
                
                14
                +  "modules-center": ["clock"],

              
                15
                15
                   "modules-right": [

              
                16
                16
                     "niri/language",

              
                17
                17
                     "tray",

              
                18
                18
                     "battery",

              
                
                19
                +    "temperature",

              
                19
                20
                     "power-profiles-daemon",

              
                20
                21
                     "idle_inhibitor",

              
                21
                22
                     "backlight",

              
M config/waybar/modules/info.jsonc
···
                12
                12
                  "temperature": {

              
                13
                13
                     "hwmon-path": "/sys/devices/pci0000:00/0000:00:08.1/0000:03:00.0/hwmon/hwmon3/temp1_input",

              
                14
                14
                     "format": "  {temperatureC}°C",

              
                15
                
                -        "tooltip": false

              
                
                15
                +    "tooltip": false

              
                16
                16
                   },

              
                17
                17
                 

              
                18
                18
                   "battery": {

              ···
                88
                88
                       "activated": "󰅶",

              
                89
                89
                       "deactivated": "󰛊"

              
                90
                90
                     }

              
                
                91
                +  },

              
                
                92
                +

              
                
                93
                +  "custom/timew": {

              
                
                94
                +    "exec": "~/bin/time.sh status",

              
                
                95
                +    "format": "󰚭 {text}",

              
                
                96
                +    "interval": 5,

              
                
                97
                +    "tooltip": false

              
                91
                98
                   }

              
                92
                99
                 }

              
                93
                100
                 // vim: ft=jsonc

              
M config/waybar/style.css
···
                30
                30
                 }

              
                31
                31
                 

              
                32
                32
                 #language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery,

              
                33
                
                -#pulseaudio, #network, #backlight, #temperature {

              
                
                33
                +#pulseaudio, #network, #backlight, #temperature, #custom-timew {

              
                34
                34
                   background-color: @bg-darker-color;

              
                35
                35
                   color: @fg-color;

              
                36
                36
                   border-radius: 16px;

              ···
                46
                46
                 #idle_inhibitor { border-radius: 0 16px 16px 0; margin: 5px 5px 5px 0; }

              
                47
                47
                 

              
                48
                48
                 #network, #backlight { color: @blue; }

              
                49
                
                -#cpu, #pulseaudio, #memory, #clock, #temperature { color: @active-bg-color; }

              
                
                49
                +#cpu, #pulseaudio, #memory, #clock, #temperature, #custom-timew { color: @active-bg-color; }

              
                50
                50
                 #language { color: @red; }

              
                51
                51
                 

              
                52
                52
                 #workspaces button { color: @active-bg-color; }