mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-24 13:22:23 +00:00
cleanup rofi
This commit is contained in:
parent
6a58874afa
commit
ddde3d6a24
13 changed files with 14 additions and 8 deletions
|
@ -1 +1 @@
|
||||||
/nix/store/d1164dadvqwlkh5rs2glfaa1ajvm2c0w-home-manager-files/.config/htop/htoprc
|
/nix/store/sg6xd3ga2g2m7d8bm5519cllgjlnh2hx-home-manager-files/.config/htop/htoprc
|
|
@ -28,10 +28,10 @@ instance Default RofiConfig where
|
||||||
def = RofiConfig { theme = smallTheme, caseInsensitive = True, fuzzy = True }
|
def = RofiConfig { theme = smallTheme, caseInsensitive = True, fuzzy = True }
|
||||||
|
|
||||||
smallTheme :: String
|
smallTheme :: String
|
||||||
smallTheme = "/home/leon/scripts/rofi-scripts/launcher_grid_style.rasi"
|
smallTheme = "/home/leon/scripts/rofi/launcher_grid_style.rasi"
|
||||||
|
|
||||||
bigTheme :: String
|
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 -> [String]
|
||||||
toArgList RofiConfig {..} = concat
|
toArgList RofiConfig {..} = concat
|
||||||
|
|
|
@ -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
|
menu: set-redshift :: -no-custom
|
||||||
off => redshift -x
|
off => redshift -x
|
||||||
|
|
|
@ -12,7 +12,7 @@ let
|
||||||
gaa = "git add --all";
|
gaa = "git add --all";
|
||||||
gs = "git status";
|
gs = "git status";
|
||||||
cxmonad = "cd ~/.xmonad && nvim ~/.xmonad/lib/Config.hs && cd -";
|
cxmonad = "cd ~/.xmonad && nvim ~/.xmonad/lib/Config.hs && cd -";
|
||||||
cnix = "cd ~/nixpkgs/ && nvim && cd -";
|
cnix = "cd ~/nixpkgs/ && nvim home.nix && cd -";
|
||||||
};
|
};
|
||||||
|
|
||||||
manFunction = ''
|
manFunction = ''
|
||||||
|
|
|
@ -98,6 +98,12 @@ in
|
||||||
udiskie.enable = true;
|
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.username = "leon";
|
||||||
home.homeDirectory = "/home/leon";
|
home.homeDirectory = "/home/leon";
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
|
|
||||||
|
|
||||||
groups="$(ls "$HOME/scripts/bookmarks")\nauswahl"
|
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
|
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
|
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
|
[ -z "$selection" ] && exit 1
|
||||||
|
|
||||||
cat "$HOME/scripts/bookmarks/$group_selection" | sed -n -r "s/^$selection (.*)$/\1/p" | bash
|
cat "$HOME/scripts/bookmarks/$group_selection" | sed -n -r "s/^$selection (.*)$/\1/p" | bash
|
||||||
|
|
Loading…
Reference in a new issue