Advertisement
bluebyt

config.corn

Mar 4th, 2024 (edited)
645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let {
  2.     $tray = { type = "tray" }
  3.   $clock = {
  4.     type = "clock"
  5.     format = "%a, %H:%M:%S"
  6.    // format = "%d/%m/%Y %H:%M"
  7.   }
  8.  
  9.     $focused = {
  10.       type = "focused"
  11.       show_icon = true
  12.       show_title = true
  13.       icon_size = 24
  14.       icon_theme = "Tela-circle-nord"
  15.       truncate.mode = "end"
  16.       truncate.max_length = 25
  17.     }
  18.    
  19.     $SysInfo = {
  20.     type = "sys_info"
  21.     interval.temps = 3
  22.     interval.disks = 300
  23.     interval.memory = 30
  24.     interval.cpu = 1
  25.     interval.networks = 3
  26.      
  27.      format = [
  28.       " {temp_c:coretemp-Package-id-0}°C "
  29.       " {disk_free:/}GB "
  30.       " {memory_percent}% "
  31.       " {cpu_percent}% "
  32.  //   "󰓢 {net_down:enp4s0} / {net_up:enp4s0} Mbps"
  33.     ]
  34.     }
  35.  
  36.     $cava = {
  37.         transition_type = "slide_end"
  38.         transition_duration = 750
  39.         name = "cava"
  40.         type = "script"
  41.         mode = "watch"
  42.         cmd = "/home/bluebyt/.config/ironbar/scripts/cava2"
  43.    }
  44.  
  45.  
  46.    $mpris = {
  47.         type = "music"
  48.         player_type = "mpris"
  49.         on_click_middle = "playerctl play-pause"
  50.         on_scroll_up = "playerctl volume +5"
  51.         on_scroll_down = "playerctl volume -5"
  52.  
  53.     }
  54.  
  55.     $mpd_local = {
  56.          type = "music"
  57.          player_type = "mpd" music_dir = "/home/bluebyt/Music"                
  58.          truncate.mode = "end"
  59.          truncate.max_length = 100
  60.          }
  61.          
  62.     $mpd_server = {
  63.          type = "music"
  64.          player_type = "mpd"
  65.          host =   "127.0.0.1:6600"
  66.          truncate = "end"
  67.          }
  68.  
  69.     $volume = {
  70.         transition_type = "slide_end"
  71.         transition_duration = 350
  72.         type = "custom"
  73.         bar = [
  74.             {
  75.                 type = "slider"
  76.                 class = "scale"
  77.                 length = 100
  78.                 max = 100
  79.                 on_change = "!wpctl set-volume @DEFAULT_SINK@ $0%"
  80.                 on_scroll_down = "wpctl set-volume @DEFAULT_SINK@ 2%-"
  81.                 on_scroll_up = "wpctl set-volume @DEFAULT_SINK@ 2%+"
  82.                 on_click_right = "pavucontrol"
  83.                 value = "100:/home/bluebyt/.config/ironbar/scripts/volume"
  84.                 tooltip = "{{/home/bluebyt/.config/ironbar/scripts/volume}}%"
  85.             }
  86.         ]
  87.     }
  88.  
  89.     $workspace = {
  90.         type = "workspaces"
  91.         sort = "alphanumeric"
  92.         on_scroll_up = "hyprctl dispatch workspace -1"
  93.         on_scroll_down = "hyprctl dispatch workspace +1"
  94.     }
  95.     $wlogout = {
  96.         type = "custom"
  97.         bar = [
  98.             {
  99.                 type = "button"
  100.                 name = "wlogout"
  101.                 class = "wlogout"
  102.                 label = ""
  103.                 on_click = "!~/.config/ironbar/scripts/wlogout"
  104.             }
  105.         ]
  106.     }
  107.    
  108.     $pacman = {
  109.         type = "custom"
  110.         bar = [
  111.             {
  112.                 type = "label"
  113.                 name = "pacman"
  114.                 class = "pacman"
  115.                 label = " {{90000:checkupdates | wc -l}}"
  116.                 }
  117.         ]
  118.     }
  119.    
  120.     $start = [ $mpd_local ]
  121.     $center = [ $focused ]
  122.     $end = [ $volume $pacman $SysInfo $clock $wlogout]
  123. }
  124. in {
  125.         icon_theme = "Tela-circle-nord"
  126.         position = "top"
  127.         start = $start
  128.         center = $center
  129.         end = $end
  130. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement