tint2rc 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. #---- Generated by tint2conf d57a ----
  2. # See https://gitlab.com/o9000/tint2/wikis/Configure for
  3. # full documentation of the configuration options.
  4. # "#9cff00" lime green/yellow main highlight colour
  5. #-------------------------------------
  6. # Backgrounds
  7. # Background 1: Active task, Battery, Clock, Panel, Tooltip
  8. rounded = 0
  9. border_width = 1
  10. background_color = #333333 100
  11. border_color = #333333 100
  12. background_color_hover = #666666 100
  13. border_color_hover = #666666 100
  14. background_color_pressed = #9cff00 100
  15. border_color_pressed = #999999 100
  16. # Background 2: Active desktop name, Active taskbar
  17. rounded = 0
  18. border_width = 1
  19. background_color = #333333 100
  20. border_color = #9cff00 100
  21. background_color_hover = #9cff00 100
  22. border_color_hover = #9cff00 100
  23. background_color_pressed = #9cff00 100
  24. border_color_pressed = #999999 100
  25. # Background 3: Inactive desktop name, Inactive taskbar
  26. rounded = 0
  27. border_width = 1
  28. background_color = #333333 100
  29. border_color = #666666 100
  30. background_color_hover = #00ff03 100
  31. border_color_hover = #00ff03 100
  32. background_color_pressed = #c9ff00 100
  33. border_color_pressed = #0aff00 100
  34. #-------------------------------------
  35. # Panel
  36. panel_items = EEEEELTSBC
  37. panel_size = 100% 28
  38. panel_margin = 1 1
  39. panel_padding = 1 1 1
  40. panel_background_id = 1
  41. wm_menu = 1
  42. panel_dock = 0
  43. panel_position = bottom center horizontal
  44. panel_layer = top
  45. panel_monitor = all
  46. primary_monitor_first = 0
  47. autohide = 0
  48. autohide_show_timeout = 0
  49. autohide_hide_timeout = 0.5
  50. autohide_height = 2
  51. strut_policy = follow_size
  52. panel_window_name = tint2
  53. disable_transparency = 1
  54. mouse_effects = 1
  55. font_shadow = 0
  56. mouse_hover_icon_asb = 96 0 50
  57. mouse_pressed_icon_asb = 96 0 0
  58. #-------------------------------------
  59. # Taskbar
  60. taskbar_mode = multi_desktop
  61. taskbar_padding = 0 0 0
  62. taskbar_background_id = 3
  63. taskbar_active_background_id = 2
  64. taskbar_name = 0
  65. taskbar_hide_inactive_tasks = 0
  66. taskbar_hide_different_monitor = 0
  67. taskbar_always_show_all_desktop_tasks = 1
  68. taskbar_name_padding = 0 0
  69. taskbar_name_background_id = 3
  70. taskbar_name_active_background_id = 2
  71. taskbar_name_font = Sans 8
  72. taskbar_name_font_color = #999999 100
  73. taskbar_name_active_font_color = #999999 100
  74. taskbar_distribute_size = 0
  75. taskbar_sort_order = title
  76. task_align = left
  77. #-------------------------------------
  78. # Task
  79. task_text = 0
  80. task_icon = 1
  81. task_centered = 1
  82. urgent_nb_of_blink = 100000
  83. task_maximum_size = 40 20
  84. task_padding = 0 0 0
  85. task_font = Sans 8
  86. task_tooltip = 1
  87. task_font_color = #999999 100
  88. task_normal_font_color = #999999 100
  89. task_active_font_color = #999999 100
  90. task_urgent_font_color = #ff0000 100
  91. task_active_icon_asb = 100 0 50
  92. task_background_id = 0
  93. task_normal_background_id = 0
  94. task_active_background_id = 1
  95. task_urgent_background_id = 0
  96. task_iconified_background_id = 0
  97. mouse_left = toggle
  98. mouse_middle = maximize_restore
  99. mouse_right = close
  100. mouse_scroll_up = none
  101. mouse_scroll_down = none
  102. #-------------------------------------
  103. # System tray (notification area)
  104. systray_padding = 1 1 5
  105. systray_background_id = 0
  106. systray_sort = right2left
  107. systray_icon_size = 24
  108. systray_icon_asb = 100 0 0
  109. systray_monitor = 1
  110. #-------------------------------------
  111. # Launcher
  112. launcher_padding = 2 4 2
  113. launcher_background_id = 0
  114. launcher_icon_background_id = 0
  115. launcher_icon_size = 24
  116. launcher_icon_asb = 100 0 0
  117. launcher_icon_theme_override = 0
  118. startup_notifications = 1
  119. launcher_tooltip = 1
  120. #-------------------------------------
  121. # Clock
  122. time1_format = %T%P
  123. time2_format = %D
  124. time1_font = Sans 7
  125. time1_timezone =
  126. time2_timezone =
  127. time2_font = Sans 7
  128. clock_font_color = #999999 100
  129. clock_padding = 1 1
  130. clock_background_id = 1
  131. clock_tooltip = %l:%M %p %n %A %n %d %B %n %Y %n Day No:%u %n Week No:%U %n %Z %n ########## %n Lmb=Alarm %n Mmb=Calendar %n Rmb=Run %n up=split-h down=split-v
  132. clock_tooltip_timezone =
  133. clock_lclick_command = xclock -padding 20 -hands red
  134. clock_rclick_command = runner -r
  135. clock_mclick_command = xterm -e calcurse
  136. clock_uwheel_command = xdotool key ctrl+F10 #split-h last 2 active windows on current desktop
  137. clock_dwheel_command = xdotool key ctrl+F9 #split-v last 2 active windows on current desktop
  138. #-------------------------------------
  139. # Battery
  140. battery_tooltip = 1
  141. battery_low_status = 20
  142. battery_low_cmd = notify-send "battery low"
  143. bat1_font = Sans 7
  144. bat2_font = Sans 7
  145. battery_font_color = #999999 100
  146. battery_padding = 1 0
  147. battery_background_id = 1
  148. battery_hide = 101
  149. battery_lclick_command = `grep remaining /proc/acpi/battery/S1B5/state | tr -d A-z | tr -d " " | tr -d :`
  150. battery_rclick_command = `grep "design capacity:" /proc/acpi/battery/S1B5/info | tr -d A-z | tr -d " " | tr -d :`
  151. battery_mclick_command = `grep "present rate:" /proc/acpi/battery/S1B5/state | tr -d A-z | tr -d " " | tr -d :`
  152. battery_uwheel_command =
  153. battery_dwheel_command =
  154. ac_connected_cmd = xmessage -buttons , -nearmouse "Mains power" #notify-send "Mains power"
  155. ac_disconnected_cmd = xmessage -buttons , -nearmouse "Battery power" #notify-send "Battery power"
  156. #-------------------------------------
  157. # Executor 1
  158. execp = new
  159. execp_command = xprop -root -spy | awk '/^_NET_CURRENT_DESKTOP/ { print "" ($3 + 1) ; fflush(); }'
  160. execp_interval = 1
  161. execp_has_icon = 0
  162. execp_cache_icon = 0
  163. execp_continuous = 1
  164. execp_markup = 0
  165. execp_tooltip = lmb=add-desktop, rmb=remove-desktop, up reset tint2, down reset fittstool
  166. execp_lclick_command = num_of_desk=$(wmctrl -d | wc -l) ; num_of_desk=$(xdotool get_num_desktops) ; num_of_desk=$(wmctrl -d | wc -l) ; xdotool set_num_desktops $(( num_of_desk + 1 ))
  167. execp_rclick_command = num_of_desk=$(wmctrl -d | wc -l) ; num_of_desk=$(xdotool get_num_desktops) ; wmctrl -n $(( num_of_desk - 1 )) ; xdotool set_num_desktops $(( num_of_desk - 1 ))
  168. execp_mclick_command =
  169. execp_uwheel_command = killall tint2; tint2
  170. execp_dwheel_command = killall fittstool; fittstool
  171. execp_font = Sans 16
  172. execp_font_color = #00ff00 100
  173. execp_padding = 0 0
  174. execp_background_id = 0
  175. execp_centered = 0
  176. execp_icon_w = 0
  177. execp_icon_h = 0
  178. #-------------------------------------
  179. # Executor 2
  180. execp = new
  181. execp_command = top -b -n2 -p 1 | fgrep "Cpu(s)" | tail -1 | awk -F'id,' -v prefix="$prefix" '{ split($1, vs, ","); v=vs[length(vs)]; sub("%", "", v); printf "CPU:" "%s%.1f%%\n", prefix, 100 - v } '
  182. execp_interval = 1
  183. execp_has_icon = 0
  184. execp_cache_icon = 0
  185. execp_continuous = 1
  186. execp_markup = 0
  187. execp_tooltip = lmb=htop, mmb=inxi, rmb=hwinfo
  188. execp_lclick_command = lilyterm -H -t 1 -T htop -e htop & sleep 0.3 && wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
  189. execp_rclick_command = lilyterm -H -t 1 -T hwinfo -e hwinfo --short & sleep 0.3 && wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
  190. execp_mclick_command = lilyterm -H -t 1 -T inxi -e inxi -AbCDGimswxxx & sleep 0.3 && wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
  191. execp_uwheel_command =
  192. execp_dwheel_command =
  193. execp_font = Sans 8
  194. execp_font_color = #ff0000 100
  195. execp_padding = 0 0
  196. execp_background_id = 0
  197. execp_centered = 0
  198. execp_icon_w = 0
  199. execp_icon_h = 0
  200. #-------------------------------------
  201. # Executor 3
  202. execp = new
  203. execp_command = echo ~/.config/tint2/reboot.png
  204. execp_interval = 1
  205. execp_has_icon = 1
  206. execp_cache_icon = 1
  207. execp_continuous = 1
  208. execp_markup = 0
  209. execp_tooltip = lmb=suspend, mmb=shutdown, rmb=reboot
  210. execp_lclick_command = dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
  211. execp_rclick_command = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
  212. execp_mclick_command = dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
  213. execp_uwheel_command =
  214. execp_dwheel_command =
  215. execp_font = Sans 16
  216. execp_font_color = #00ff00 100
  217. execp_padding = 0 0
  218. execp_background_id = 0
  219. execp_centered = 0
  220. execp_icon_w = 0
  221. execp_icon_h = 0
  222. #-------------------------------------
  223. # Executor 4
  224. execp = new
  225. execp_command = stdbuf -oL bwm-ng -o csv -t 1000 | awk -F ';' '/total/ { printf "Net: %.0f Mb/s\n", ($5*8/1.0e6) }; fflush(stdout)'
  226. execp_interval = 1
  227. execp_has_icon = 0
  228. execp_cache_icon = 0
  229. execp_continuous = 1
  230. execp_markup = 0
  231. execp_tooltip = lmb=ifconfig, mmb=speedtest, rmb=lftp-gungre
  232. execp_lclick_command = lilyterm -H -t 1 -T ifconfig -e ifconfig & sleep 0.3 && wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
  233. execp_rclick_command = lilyterm -H -t 1 -T lftp -e lftp http://gungre.ch/dragora/repo/ & sleep 0.3 && wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
  234. execp_mclick_command = lilyterm -H -t 1 -T speedtest -e speedtest & sleep 0.3 && wmctrl -r :ACTIVE: -b add,maximized_vert,maximized_horz
  235. execp_uwheel_command =
  236. execp_dwheel_command =
  237. execp_font = Sans 8
  238. execp_font_color = #999999 100
  239. execp_padding = 0 0
  240. execp_background_id = 0
  241. execp_centered = 1
  242. execp_icon_w = 0
  243. execp_icon_h = 0
  244. #-------------------------------------
  245. # Executor 5
  246. execp = new
  247. execp_command = echo ~/.config/tint2/weather.png
  248. execp_interval = 1
  249. execp_has_icon = 1
  250. execp_cache_icon = 1
  251. execp_continuous = 1
  252. execp_markup = 0
  253. execp_tooltip = lmb=weather-uk, rmb=weather-other
  254. execp_lclick_command = xterm -hold -e curl wttr.in/Bremen ~ wttr.in/London
  255. execp_rclick_command = xterm -hold -e curl wttr.in/Santiago+del+Estero ~ wttr.in/Umeå
  256. execp_mclick_command =
  257. execp_uwheel_command =
  258. execp_dwheel_command =
  259. execp_font = Sans 16
  260. execp_font_color = #00ff00 100
  261. execp_padding = 0 0
  262. execp_background_id = 0
  263. execp_centered = 0
  264. execp_icon_w = 0
  265. execp_icon_h = 0
  266. #-------------------------------------
  267. # Executor 6
  268. execp = new
  269. execp_command = echo ~/.config/tint2/window-move.png
  270. execp_interval = 1
  271. execp_has_icon = 1
  272. execp_cache_icon = 1
  273. execp_continuous = 1
  274. execp_markup = 0
  275. execp_tooltip = lmb=split-h, rmb=split-v ,wheel-up=maxall, wheel-down=minall,
  276. #openbox#
  277. #execp_lclick_command = xdotool key ctrl+F10 #split-h last 2 active windows on current desktop
  278. #execp_rclick_command = xdotool key ctrl+F9 #split-v last 2 active windows on current desktop
  279. #icewm#
  280. execp_lclick_command = xdotool key alt+F10 #maximize
  281. execp_rclick_command = xdotool key alt+F9 #minimize
  282. execp_mclick_command =
  283. execp_uwheel_command = maxall
  284. execp_dwheel_command = minall
  285. execp_font = Sans 16
  286. execp_font_color = #00ff00 100
  287. execp_padding = 0 0
  288. execp_background_id = 0
  289. execp_centered = 0
  290. execp_icon_w = 0
  291. execp_icon_h = 0
  292. #-------------------------------------
  293. # Tooltip
  294. tooltip_show_timeout = 0.5
  295. tooltip_hide_timeout = 0.1
  296. tooltip_padding = 1 1
  297. tooltip_background_id = 1
  298. tooltip_font_color = #999999 100
  299. tooltip_font = Sans 8