Commit Graph

36 Commits

Author SHA1 Message Date
Amith Mohanan e65b90757f
[rofi-theme-selector] prepend newline before specifying new theme (#1791)
* [rofi-theme-selector] prepend newline before specifying new theme

If the EOF is not a newline, new theme setting will fail.

* make sed substitution more readable

* simplify sed substitution
2023-01-30 11:44:28 +01:00
nomoo 6bc7735d14 sed & realpath workaround for BSD and Darwin OS 2023-01-08 00:30:14 +03:00
a1346054 362e3cd6ff
Use `command -v` instead of `which` (#1704)
`command -v` is the standardized version of `which`
2022-09-19 17:06:14 +02:00
nomoo 0b72ff2a74
Fix sed binary call with variable (#1707)
* Use variable instead of binary name

* Use variable for sed
2022-09-13 22:41:41 +02:00
Dave Davenport 09e0f87658 [rofi-theme-selector] don't remove lines, but comment them. 2021-08-26 16:40:19 +02:00
Dave Davenport 1c5241a6ae [Theme] Update rofi-theme-selector to append '@theme' 2021-08-25 16:32:06 +02:00
a1346054 c62137f8ab
Simple maintenance improvements (#1370)
* rofi moved to libera.chat

* unify some theme headers and whitespace

* consistently use the same hashbang for bash

* improve obsolete way of testing equality

see https://github.com/koalaman/shellcheck/wiki/SC2268 for explanation

* use consistent function definitions in bash scripts

* remove duplicated author and fix whitespace

* quote all variables in scripts

fixes many warnings identified through shellcheck

* fix whitespace in scripts

* fix whitespace in non-source files

* fix spelling in non-source files

* fix whitespace and indentation in source files

* fix spelling in source files
2021-08-14 13:03:16 +02:00
Dave Davenport 5c5428bd11 [Theme] Add direction support to linear-gradient. 2021-06-14 15:14:41 +02:00
Dave Davenport 6bf823267e [ThemeSelector] Use rasi config file format, not xresources. 2020-06-17 13:53:18 +02:00
Dave Davenport 274f2297aa Fix creating config file if none exists.
Fixes: #895
2019-01-22 15:53:12 +01:00
Dave Davenport f42cffe962 Return EX_DATAERR when fails to parse theme.
This way a script can check if there was an error, otherwise you can
wind up in a loop.
2019-01-07 17:21:31 +01:00
Rasmus Steinke 5d50ae45cd Follow symlink before writing config file. Fixes #884 2018-12-22 09:36:48 +01:00
Rasmus Steinke ba08df8a3e
Get rid of if condition, honour XDG_DATA_HOME 2018-06-03 08:58:40 +02:00
Tim Steinbach abeddb6a57
rofi-theme-selector: Store config in XDG_CONFIG_HOME if set 2018-03-11 11:56:14 -04:00
Rasmus Steinke 2cbbb1606f include $XDG_CONGIG_HOME/rofi/themes 2017-12-10 23:18:20 +01:00
Rasmus Steinke 1ebca2711b update for latest theme format changes 2017-12-09 11:02:07 +01:00
Rasmus Steinke 7446a69ac7 remove duplicated variable 2017-11-01 22:02:33 +01:00
Rasmus Steinke eff0597625 fix double slashes in path names 2017-10-19 21:40:33 +02:00
Rasmus Steinke aa0cd52a7f fix user being split from theme name 2017-10-15 17:55:41 +02:00
Rasmus Steinke 743b393f15 fix offset on theme previews 2017-10-15 17:23:30 +02:00
Dave Davenport 4375f9f075 [ThemeSelector] Get only the first mention of user in the file. 2017-10-14 21:34:49 +02:00
Rasmus Steinke d0da5fcd39 fix spacing 2017-09-09 12:08:30 +02:00
Rasmus Steinke 3f3e4c691f use config.rasi file if present 2017-09-09 12:04:09 +02:00
Dave Davenport 2060ba8fd8 Fix theme selector removing of prev entry. Small improvement DarkBlue. 2017-01-23 08:35:03 +01:00
Dave Davenport 46f1e6f107 Add arthur as theme 2017-01-19 09:26:16 +01:00
Dave Davenport 823d1b4651 Convert built-in themes to new format. 2017-01-19 09:19:14 +01:00
Dave Davenport ab9330521b Add explicit / after path element when searching themes. 2016-11-28 19:47:06 +01:00
Dave Davenport c6c7152b6e If no XDG_DATA_DIRS set, try to deduce the dirs from PATH. 2016-11-28 18:42:22 +01:00
Dave Davenport 81613e287b Fix screenshots add : to rofi-theme selector prompt. 2016-11-28 09:07:51 +01:00
Dave Davenport d245a4e6a1 Add themes, make rofi-theme-selector show highlighted rows. 2016-11-16 09:22:41 +01:00
Dave Davenport d1d4a8439a Fix selecting of row based on linux num instead of title. 2016-10-29 15:43:26 +02:00
Rasmus Steinke 914d7035d6 Dont reset position on theme preview 2016-10-29 11:19:56 +02:00
Dave Davenport 96b133db82 Small fix for rofi-theme-selector 2016-10-29 11:13:28 +02:00
Dave Davenport be46caa279 Case insensitive 2016-10-27 21:44:13 +02:00
Dave Davenport 62434f0e8c Make theme selector script a bit more robust 2016-10-27 19:02:21 +02:00
Dave Davenport e53e9b73ba Add missing theme selector script 2016-10-27 16:41:49 +02:00