I like to have a consistent color scheme across my wallpaper, terminal and other applications. Luckily my most frequent Programs are kitty, qutebrowser, rofi and i3wm. All of theme are able to be themed via configuration file.
- kitty is my terminal emulator
- rofi is a window switcher, Application launcher and dmenu replacement
- qutebrowser is my main browser fully keyboard centric
- andi3wm is my tilling window manager
If I'm in the mood to change my wallpaper (again) I'm usingpywal. Theinstallation is quite easy. Pywal is a tool that generates a color palette from the dominant colors from an image. It then applies the colors system-wide and on-the-fly in all of your favourite programs.
But the standard look of rofi which is generated by pywal is not satisfying me, so i have to generate my own rofi configuration. For this, i wrote this small script:
#!/bin/bash# grab the purest color definition fileinput="/home/maren/.cache/wal/colors"i=0content=""whileIFS=read-r linedo# generate the color list for my style configif[$i-eq 0];thencontent="${content} background:${line}00;"content="${content} color$i:${line};"elsecontent="${content} color$i:${line};"fi((i++))done <"$input"# copied a template config to the actual config locationcp /home/maren/dotfiles/rofi/colors-rofi-template.rasi /home/maren/dotfiles/i3/rofi.rasi# write in the 10th line my color listsed-i"10i$content" /home/maren/dotfiles/i3/rofi.rasi
For qutebrowser i am usingqutewal
To switch between my wallpapers I have the following script.
#!/usr/bin/env bash# feed rofi with the content of my wallpaper directorywallpaper=`ls-1 /home/maren/Downloads/wallpapers | rofi-dmenu-theme ~/dotfiles/i3/rofi.rasi`whilegetoptsld optiondo case"${option}"inl)# apply light theme wal-l-i /home/maren/Downloads/wallpapers/$wallpaper;; d)# apply dark theme wal-i /home/maren/Downloads/wallpapers/$wallpaper;;esacdone# change the rofi color theme/home/maren/dotfiles/scripts/rofiThemeGenerator.sh
i3wm is highly configurable in case of keybindings and whit a
fast shortkey I can define my new theme with in seconds.
bindsym $mod+d exec "sh /home/maren/dotfiles/i3/script/themeswitcher.sh -d" bindsym $mod+l exec "sh /home/maren/dotfiles/i3/script/themeswitcher.sh -l"
Top comments(0)
For further actions, you may consider blocking this person and/orreporting abuse