Minor edits

This commit is contained in:
Derek Taylor 2020-12-01 15:54:57 -06:00
parent 248ac6186c
commit 51bfd4a1bf
6 changed files with 17 additions and 8 deletions

View File

@ -203,6 +203,11 @@ alias tb="nc termbin.com 9999"
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash'
### RANDOM COLOR SCRIPT ###
/opt/shell-color-scripts/colorscript.sh random
colorscript random
source /home/dt/.config/broot/launcher/bash/br
### BASH INSULTER ###
if [ -f /etc/bash.command-not-found ]; then
. /etc/bash.command-not-found
fi

View File

@ -377,4 +377,4 @@ alias kakd="/usr/bin/kak -d -s mysession &"
### RANDOM COLOR SCRIPT ###
# Get this script from my GitLab: gitlab.com/dwt1/shell-color-scripts
# Or install it from the Arch User Repository: shell-color-scripts
/opt/shell-color-scripts/colorscript.sh random
colorscript random

View File

@ -98,8 +98,8 @@ modkey = Mod4
# PROGRAMS
# Validated default programs:
# program[lock] = xlock
# program[term] = xterm
program[lock] = slock
program[term] = alacritty
# program[menu] = dmenu_run $dmenu_bottom -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
# program[search] = dmenu $dmenu_bottom -i -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected
# program[name_workspace] = dmenu $dmenu_bottom -p Workspace -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected

View File

@ -645,13 +645,14 @@ dtXPKeymap = M.fromList $
Xmonad has several search engines available to use located in XMonad.Actions.Search. Additionally, you can add other search engines such as those listed below.
#+BEGIN_SRC haskell
archwiki, ebay, news, reddit, urban :: S.SearchEngine
archwiki, ebay, news, reddit, urban, yacy :: S.SearchEngine
archwiki = S.searchEngine "archwiki" "https://wiki.archlinux.org/index.php?search="
ebay = S.searchEngine "ebay" "https://www.ebay.com/sch/i.html?_nkw="
news = S.searchEngine "news" "https://news.google.com/search?q="
reddit = S.searchEngine "reddit" "https://www.reddit.com/search/?q="
urban = S.searchEngine "urban" "https://www.urbandictionary.com/define.php?term="
yacy = S.searchEngine "yacy" "http://localhost:8090/yacysearch.html?query="
-- This is the list of search engines that I want to use. Some are from
-- XMonad.Actions.Search, and some are the ones that I added above.
@ -671,12 +672,13 @@ searchList = [ ("a", archwiki)
, ("u", urban)
, ("w", S.wikipedia)
, ("y", S.youtube)
, ("S-y", yacy)
, ("z", S.amazon)
]
#+END_SRC
* Scratchpads
Allows to have several floating scratchpads running different applications. Import Util.NamedScratchpad. Bind a key to namedScratchpadSpawnAction.
Allows to have several floating scratchpads running different applications. Import Util.NamedScratchpad and bind a key to namedScratchpadSpawnAction. In the example below, I create two named scratchpads: (1) a scratchpad for my terminal, and (2) a scratchpad for moc which is a termina music player.
#+BEGIN_SRC haskell
myScratchPads :: [NamedScratchpad]

View File

@ -553,13 +553,14 @@ dtXPKeymap = M.fromList $
, (xK_Escape, quit)
]
archwiki, ebay, news, reddit, urban :: S.SearchEngine
archwiki, ebay, news, reddit, urban, yacy :: S.SearchEngine
archwiki = S.searchEngine "archwiki" "https://wiki.archlinux.org/index.php?search="
ebay = S.searchEngine "ebay" "https://www.ebay.com/sch/i.html?_nkw="
news = S.searchEngine "news" "https://news.google.com/search?q="
reddit = S.searchEngine "reddit" "https://www.reddit.com/search/?q="
urban = S.searchEngine "urban" "https://www.urbandictionary.com/define.php?term="
yacy = S.searchEngine "yacy" "http://localhost:8090/yacysearch.html?query="
-- This is the list of search engines that I want to use. Some are from
-- XMonad.Actions.Search, and some are the ones that I added above.
@ -579,6 +580,7 @@ searchList = [ ("a", archwiki)
, ("u", urban)
, ("w", S.wikipedia)
, ("y", S.youtube)
, ("S-y", yacy)
, ("z", S.amazon)
]

2
.zshrc
View File

@ -182,7 +182,7 @@ if [ -f /etc/bash.command-not-found ]; then
fi
### RANDOM COLOR SCRIPT ###
/opt/shell-color-scripts/colorscript.sh random
colorscript random
### SETS VI MODE ###
bindkey -v