cleanup rofi

This commit is contained in:
elkowar 2020-08-05 15:22:13 +02:00
parent 6a58874afa
commit ddde3d6a24
13 changed files with 14 additions and 8 deletions

View file

@ -1 +1 @@
/nix/store/d1164dadvqwlkh5rs2glfaa1ajvm2c0w-home-manager-files/.config/htop/htoprc
/nix/store/sg6xd3ga2g2m7d8bm5519cllgjlnh2hx-home-manager-files/.config/htop/htoprc

View file

@ -28,10 +28,10 @@ instance Default RofiConfig where
def = RofiConfig { theme = smallTheme, caseInsensitive = True, fuzzy = True }
smallTheme :: String
smallTheme = "/home/leon/scripts/rofi-scripts/launcher_grid_style.rasi"
smallTheme = "/home/leon/scripts/rofi/launcher_grid_style.rasi"
bigTheme :: String
bigTheme = "/home/leon/scripts/rofi-scripts/launcher_grid_full_style.rasi"
bigTheme = "/home/leon/scripts/rofi/launcher_grid_full_style.rasi"
toArgList :: RofiConfig -> [String]
toArgList RofiConfig {..} = concat

View file

@ -1,4 +1,4 @@
use: rofi -dmenu -i -theme /home/leon/scripts/rofi-scripts/default_theme.rasi
use: rofi -dmenu -i -theme /home/leon/scripts/rofi/default_theme.rasi
menu: set-redshift :: -no-custom
off => redshift -x

View file

@ -12,7 +12,7 @@ let
gaa = "git add --all";
gs = "git status";
cxmonad = "cd ~/.xmonad && nvim ~/.xmonad/lib/Config.hs && cd -";
cnix = "cd ~/nixpkgs/ && nvim && cd -";
cnix = "cd ~/nixpkgs/ && nvim home.nix && cd -";
};
manFunction = ''

View file

@ -98,6 +98,12 @@ in
udiskie.enable = true;
};
home.sessionVariables = {
LOCALE_ARCHIVE_2_11 = "${pkgs.glibcLocales}/lib/locale/locale-archive";
LOCALE_ARCHIVE_2_27 = "${pkgs.glibcLocales}/lib/locale/locale-archive";
LOCALE_ARCHIVE = "/usr/bin/locale";
};
home.username = "leon";
home.homeDirectory = "/home/leon";

View file

@ -3,11 +3,11 @@
groups="$(ls "$HOME/scripts/bookmarks")\nauswahl"
group_selection=$(echo -e "$groups" | rofi -i -matching fuzzy -p open -dmenu -no-custom -theme /home/leon/scripts/rofi-scripts/default_theme.rasi )
group_selection=$(echo -e "$groups" | rofi -i -matching fuzzy -p open -dmenu -no-custom -theme /home/leon/scripts/rofi/default_theme.rasi )
if [ "$group_selection" = "auswahl" ]; then
auswahl "$(auswahl --list | rofi -dmenu -theme /home/leon/scripts/rofi-scripts/default_theme.rasi -i -no-custom)"
auswahl "$(auswahl --list | rofi -dmenu -theme /home/leon/scripts/rofi/default_theme.rasi -i -no-custom)"
else
selection=$( cat "$HOME/scripts/bookmarks/$group_selection" | sed -r 's/^([^ ]*) .*$/\1/' | rofi -p open -matching fuzzy -dmenu -i -no-custom -theme /home/leon/scripts/rofi-scripts/default_theme.rasi )
selection=$( cat "$HOME/scripts/bookmarks/$group_selection" | sed -r 's/^([^ ]*) .*$/\1/' | rofi -p open -matching fuzzy -dmenu -i -no-custom -theme /home/leon/scripts/rofi/default_theme.rasi )
[ -z "$selection" ] && exit 1
cat "$HOME/scripts/bookmarks/$group_selection" | sed -n -r "s/^$selection (.*)$/\1/p" | bash