Update rofi config
d2edb09c263ff37d6cd3f387187eccd26eb53b70
1 parent
0a1b1002
.config/rofi/config.rasi
added
+12 -0
| 1 | + | configuration { |
|
| 2 | + | font: "monospace 13"; |
|
| 3 | + | theme: "theme"; |
|
| 4 | + | timeout { |
|
| 5 | + | action: "kb-cancel"; |
|
| 6 | + | delay: 0; |
|
| 7 | + | } |
|
| 8 | + | filebrowser { |
|
| 9 | + | directories-first: true; |
|
| 10 | + | sorting-method: "name"; |
|
| 11 | + | } |
|
| 12 | + | } |
.config/rofi/theme.rasi
added
+169 -0
| 1 | + | * { |
|
| 2 | + | red: maroon; |
|
| 3 | + | selected-active-foreground: var(background); |
|
| 4 | + | lightfg: white; |
|
| 5 | + | separatorcolor: var(foreground); |
|
| 6 | + | urgent-foreground: var(red); |
|
| 7 | + | alternate-urgent-background: var(lightbg); |
|
| 8 | + | lightbg: #333333; |
|
| 9 | + | background-color: rgba(0, 0, 0, 0%); |
|
| 10 | + | border-color: aquamarine; |
|
| 11 | + | normal-background: var(background); |
|
| 12 | + | selected-urgent-background: var(red); |
|
| 13 | + | alternate-active-background: var(lightbg); |
|
| 14 | + | spacing: 2; |
|
| 15 | + | alternate-normal-foreground: var(foreground); |
|
| 16 | + | urgent-background: var(background); |
|
| 17 | + | selected-normal-foreground: white; |
|
| 18 | + | active-foreground: white; |
|
| 19 | + | background: rgba(0, 0, 0, 100%); |
|
| 20 | + | selected-active-background: var(lightbg); |
|
| 21 | + | active-background: var(background); |
|
| 22 | + | selected-normal-background: var(lightbg); |
|
| 23 | + | alternate-normal-background: var(background); |
|
| 24 | + | foreground: white; |
|
| 25 | + | selected-urgent-foreground: var(background); |
|
| 26 | + | normal-foreground: var(foreground); |
|
| 27 | + | alternate-urgent-foreground: var(red); |
|
| 28 | + | alternate-active-foreground: white; |
|
| 29 | + | } |
|
| 30 | + | element { |
|
| 31 | + | padding: 4px 8px; |
|
| 32 | + | cursor: pointer; |
|
| 33 | + | spacing: 5px; |
|
| 34 | + | border: 0; |
|
| 35 | + | } |
|
| 36 | + | element normal.normal { |
|
| 37 | + | background-color: var(normal-background); |
|
| 38 | + | text-color: var(normal-foreground); |
|
| 39 | + | } |
|
| 40 | + | element normal.urgent { |
|
| 41 | + | background-color: var(urgent-background); |
|
| 42 | + | text-color: var(urgent-foreground); |
|
| 43 | + | } |
|
| 44 | + | element normal.active { |
|
| 45 | + | background-color: var(active-background); |
|
| 46 | + | text-color: var(active-foreground); |
|
| 47 | + | } |
|
| 48 | + | element selected.normal { |
|
| 49 | + | background-color: var(selected-normal-background); |
|
| 50 | + | text-color: var(selected-normal-foreground); |
|
| 51 | + | } |
|
| 52 | + | element selected.urgent { |
|
| 53 | + | background-color: var(selected-urgent-background); |
|
| 54 | + | text-color: var(selected-urgent-foreground); |
|
| 55 | + | } |
|
| 56 | + | element selected.active { |
|
| 57 | + | background-color: var(selected-active-background); |
|
| 58 | + | text-color: var(selected-active-foreground); |
|
| 59 | + | } |
|
| 60 | + | element alternate.normal { |
|
| 61 | + | background-color: var(alternate-normal-background); |
|
| 62 | + | text-color: var(alternate-normal-foreground); |
|
| 63 | + | } |
|
| 64 | + | element alternate.urgent { |
|
| 65 | + | background-color: var(alternate-urgent-background); |
|
| 66 | + | text-color: var(alternate-urgent-foreground); |
|
| 67 | + | } |
|
| 68 | + | element alternate.active { |
|
| 69 | + | background-color: var(alternate-active-background); |
|
| 70 | + | text-color: var(alternate-active-foreground); |
|
| 71 | + | } |
|
| 72 | + | element-text { |
|
| 73 | + | background-color: rgba(0, 0, 0, 0%); |
|
| 74 | + | cursor: inherit; |
|
| 75 | + | highlight: inherit; |
|
| 76 | + | text-color: inherit; |
|
| 77 | + | } |
|
| 78 | + | element-icon { |
|
| 79 | + | background-color: rgba(0, 0, 0, 0%); |
|
| 80 | + | size: 1em; |
|
| 81 | + | cursor: inherit; |
|
| 82 | + | text-color: inherit; |
|
| 83 | + | } |
|
| 84 | + | window { |
|
| 85 | + | padding: 0px; |
|
| 86 | + | background-color: var(background); |
|
| 87 | + | border: 1; |
|
| 88 | + | } |
|
| 89 | + | mainbox { |
|
| 90 | + | padding: 0; |
|
| 91 | + | border: 0; |
|
| 92 | + | } |
|
| 93 | + | message { |
|
| 94 | + | padding: 1px; |
|
| 95 | + | border-color: var(separatorcolor); |
|
| 96 | + | border: 2px dash 0px 0px; |
|
| 97 | + | } |
|
| 98 | + | textbox { |
|
| 99 | + | text-color: var(foreground); |
|
| 100 | + | } |
|
| 101 | + | listview { |
|
| 102 | + | padding: 2px 0px 0px; |
|
| 103 | + | scrollbar: false; |
|
| 104 | + | border-color: #333; |
|
| 105 | + | spacing: 2px; |
|
| 106 | + | fixed-height: 0; |
|
| 107 | + | border: 1px dash 0px 0px; |
|
| 108 | + | } |
|
| 109 | + | scrollbar { |
|
| 110 | + | width: 4px; |
|
| 111 | + | padding: 0; |
|
| 112 | + | handle-width: 8px; |
|
| 113 | + | border: 0; |
|
| 114 | + | handle-color: var(normal-foreground); |
|
| 115 | + | } |
|
| 116 | + | sidebar { |
|
| 117 | + | border-color: var(separatorcolor); |
|
| 118 | + | border: 2px dash 0px 0px; |
|
| 119 | + | } |
|
| 120 | + | button { |
|
| 121 | + | cursor: pointer; |
|
| 122 | + | spacing: 0; |
|
| 123 | + | text-color: var(normal-foreground); |
|
| 124 | + | } |
|
| 125 | + | button selected { |
|
| 126 | + | background-color: var(selected-normal-background); |
|
| 127 | + | text-color: var(selected-normal-foreground); |
|
| 128 | + | } |
|
| 129 | + | num-filtered-rows { |
|
| 130 | + | expand: false; |
|
| 131 | + | text-color: #777; |
|
| 132 | + | } |
|
| 133 | + | num-rows { |
|
| 134 | + | expand: false; |
|
| 135 | + | text-color: #777; |
|
| 136 | + | } |
|
| 137 | + | textbox-num-sep { |
|
| 138 | + | expand: false; |
|
| 139 | + | str: "/"; |
|
| 140 | + | text-color: #777; |
|
| 141 | + | } |
|
| 142 | + | inputbar { |
|
| 143 | + | padding: 1px; |
|
| 144 | + | spacing: 0px; |
|
| 145 | + | text-color: var(normal-foreground); |
|
| 146 | + | children: [prompt,textbox-prompt-colon,entry,num-filtered-rows,textbox-num-sep,num-rows,case-indicator]; |
|
| 147 | + | padding: 4px 8px; |
|
| 148 | + | } |
|
| 149 | + | case-indicator { |
|
| 150 | + | spacing: 0; |
|
| 151 | + | text-color: var(normal-foreground); |
|
| 152 | + | } |
|
| 153 | + | entry { |
|
| 154 | + | text-color: var(normal-foreground); |
|
| 155 | + | cursor: text; |
|
| 156 | + | spacing: 0; |
|
| 157 | + | placeholder-color: rgba(128, 128, 128, 100%); |
|
| 158 | + | placeholder: ""; |
|
| 159 | + | } |
|
| 160 | + | prompt { |
|
| 161 | + | spacing: 0; |
|
| 162 | + | text-color: #777; |
|
| 163 | + | } |
|
| 164 | + | textbox-prompt-colon { |
|
| 165 | + | margin: 0px 0.3em 0.0em 0.0em; |
|
| 166 | + | expand: false; |
|
| 167 | + | str: ":"; |
|
| 168 | + | text-color: #777; |
|
| 169 | + | } |
.xmonad/xmonad.hs
+1 -14
| 167 | 167 | , ((modMask, xK_Left), prevWS) |
|
| 168 | 168 | , ((modMask, xK_Right), nextWS) |
|
| 169 | 169 | ] |
|
| 170 | 170 | ||
| 171 | 171 | rofi :: String -> [String] -> X () |
|
| 172 | - | rofi mode opts = safeSpawn |
|
| 173 | - | "rofi" (opts ++ [ "-show", mode |
|
| 174 | - | , "-color-active", "black,#333,black,#bbb,black" |
|
| 175 | - | , "-color-normal", "black,#bbb,black,#bbb,black" |
|
| 176 | - | , "-color-urgent", "#fdf6e3,#dc322f,#eee8d5,#dc322f,#fdf6e3" |
|
| 177 | - | , "-color-window", "black,#333" |
|
| 178 | - | , "-font", "monospace 13" |
|
| 179 | - | , "-hide-scrollbar" |
|
| 180 | - | , "-levenshtein-sort" |
|
| 181 | - | , "-lines", "7" |
|
| 182 | - | , "-padding", "10" |
|
| 183 | - | , "-separator-style", "none" |
|
| 184 | - | , "-width", "30" |
|
| 185 | - | ]) |
|
| 172 | + | rofi mode opts = safeSpawn "rofi" (opts ++ ["-show", mode]) |
|
| 186 | 173 | ||
| 187 | 174 | runExecutable :: X () |
|
| 188 | 175 | runExecutable = rofi "run" [] |
|
| 189 | 176 | ||
| 190 | 177 | switchWindow :: X () |