constantin-net

rofi_tmp

Jul 20th, 2021 (edited)
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1. /**
  2. * ROFI Color theme
  3. */
  4. * {
  5. spacing: 8px;
  6. foreground: #ffffff;
  7. background: #3F3F3F;
  8. separatorcolor: #000000;
  9. bordercolor: #FFFFFF;
  10.  
  11. border-color: @bordercolor;
  12. background-color: @background;
  13. text-color: @foreground;
  14.  
  15. normal-foreground: @foreground;
  16. active-foreground: #FFFFFF;
  17. urgent-foreground: #161719;
  18.  
  19. alternate-normal-foreground: @normal-foreground;
  20. alternate-active-foreground: @active-foreground;
  21. alternate-urgent-foreground: @urgent-foreground;
  22.  
  23. normal-background: #4C4C4C;
  24. active-background: @normal-background;
  25. urgent-background: @normal-background;
  26.  
  27. alternate-normal-background: @normal-background;
  28. alternate-urgent-background: @active-background;
  29. alternate-active-background: @urgent-background;
  30.  
  31. selected-normal-foreground: #FFFFFF;
  32. selected-active-foreground: @selected-normal-foreground;
  33. selected-urgent-foreground: @selected-normal-foreground;
  34.  
  35. selected-normal-background: #4c4c4c;
  36. selected-active-background: @selected-normal-background;
  37. selected-urgent-background: @selected-normal-background;
  38.  
  39. lightfg: #000000;
  40. lightbg: #000000;
  41.  
  42. }
  43. #window {
  44. width: 100%;
  45. height: 100%;
  46. padding: 20% 30% 20% 10%;
  47. border: 0;
  48. }
  49. #inputbar {
  50. border: 0 0 0 0;
  51. children: [prompt,entry];
  52. }
  53.  
  54. #prompt {
  55. padding: 16px;
  56. border: 0 0 0 0;
  57. font: "Tahoma 20";
  58. }
  59.  
  60. #entry {
  61. padding: 16px;
  62. font: "Tahoma 20";
  63. placeholder: " search";
  64. placeholder-color: @normal-background;
  65. }
  66.  
  67. #listview {
  68. cycle: false;
  69. margin: 10px 10px 10px 10px;
  70. scrollbar: true;
  71. scrollbar-width: 8;
  72. dynamic: false;
  73. }
  74.  
  75. #element {
  76. orientation: vertical;
  77. spacing: 5px;
  78. }
  79.  
  80. #element-icon {
  81. size: 96;
  82. padding: 3px;
  83. }
  84.  
  85. #element-text {
  86. horizontal-align: 0;
  87. padding: 0px 35px 3px 3px;
  88. }
  89.  
  90. #element normal.normal {
  91. background-color: @normal-background;
  92. text-color: @normal-foreground;
  93. }
  94.  
  95. #element alternate.normal {
  96. background-color: @alternate-normal-background;
  97. text-color: @alternate-normal-foreground;
  98. }
  99.  
  100. #element normal.active {
  101. background-color: @active-background;
  102. text-color: @active-foreground;
  103. }
  104.  
  105. #element alternate.active {
  106. background-color: @alternate-active-background;
  107. text-color: @alternate-active-foreground;
  108. }
  109.  
  110. #element normal.urgent {
  111. background-color: @urgent-background;
  112. text-color: @urgent-foreground;
  113. }
  114.  
  115. #element alternate.urgent {
  116. background-color: @alternate-urgent-background;
  117. text-color: @alternate-urgent-foreground;
  118. }
  119.  
  120. #element selected {
  121. background-color: @selected-normal-background;
  122. text-color: @selected-normal-foreground;
  123. border: 2px;
  124. }
  125.  
  126. #scrollbar {
  127. width: 4px ;
  128. border: 0;
  129. handle-color: @separatorcolor;
  130. handle-width: 8px ;
  131. padding: 0;
  132. }
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142. #!/bin/bash
  143.  
  144. icons_dir="/home/user/2"
  145.  
  146. shutdown="$icons_dir/system-shutdown.svg";
  147. reboot="$icons_dir/system-reboot.svg";
  148. sleep="$icons_dir/system-suspend.svg";
  149. logout="$icons_dir/system-log-out.svg";
  150. lock="$icons_dir/system-lock-screen.svg";
  151. options="shutdown\0icon\x1f$shutdown\nreboot\0icon\x1f$reboot\nsleep\0icon\x1f$sleep\nlogout\0icon\x1f$logout\nlock\0icon\x1f$lock"
  152.  
  153. selected="$(echo -e $options | rofi-1.6.1 -font "Helvetica Neue, 18" -show-icons -theme .config/rofi/theme-shutdown.rasi -p " " -dmenu )"
  154.  
  155. case $selected in
  156. shutdown)
  157. systemctl poweroff
  158. ;;
  159. reboot)
  160. systemctl reboot
  161. ;;
  162. sleep)
  163. systemctl suspend
  164. ;;
  165. logout)
  166. echo "awesome.quit()" | awesome-client
  167. ;;
  168. lock)
  169. xset dpms force off
  170. ;;
  171. esac
  172.  
  173.  
  174.  
  175.  
  176.  
  177. /*
  178. * Rofi theme for fullscreen powermenu
  179. */
  180.  
  181. * {
  182. content-position: 25% 4% 25% 4%;
  183. space-between-options: 1%;
  184. /*option-inset-padding: 4.1% 2.6% 2.5% -4.1%;*/
  185. option-inset-padding: 1%;
  186.  
  187. window-bg-color: rgba(15, 15, 15, 0.7);
  188. title-text-color: rgba(141, 145, 148, 1);
  189. selected-bg-color: rgba(100, 100, 100, 0.4);
  190. unselected-bg-color: rgba(100, 100, 100, 0.05);
  191. selected-text-color: #FFFFFF;
  192. unselected-text-color: #FFFFFF;
  193.  
  194. }
  195.  
  196. #window {
  197. width: 100%;
  198. height: 100%;
  199. x-offset: 0%;
  200. y-offset: 0%;
  201. padding: @content-position;
  202. background-color: @window-bg-color;
  203. children: [ inputbar, horibox ];
  204. }
  205.  
  206. #inputbar {
  207. children: [ prompt ];
  208. margin: @title-margins;
  209. background-color: transparent;
  210. }
  211.  
  212. prompt {
  213. text-color: @selected-text-color;
  214. background-color: transparent;
  215. }
  216.  
  217. #horibox {
  218. background-color: transparent;
  219. children: [ listview ];
  220. }
  221.  
  222. #listview {
  223. layout: horizontal;
  224. background-color: transparent;
  225. spacing: @space-between-options;
  226. lines: 5;
  227. }
  228.  
  229. #element {
  230. text-color: @unselected-text-color;
  231. padding: 0px;
  232. border-radius: 50%;
  233. background-color: @unselected-bg-color;
  234. }
  235.  
  236. #element-icon {
  237. size: 96;
  238. padding: 0px;
  239. }
  240.  
  241. #element-text {
  242. horizontal-align: 0;
  243. padding: 2%;
  244. }
  245.  
  246. #element.selected {
  247. text-color: @selected-text-color;
  248. background-color: @selected-bg-color;
  249. padding: 0px;
  250. }
  251.  
  252.  
Add Comment
Please, Sign In to add comment