Void is no more...

This commit is contained in:
Clay Gomera 2022-07-16 14:29:15 -04:00
parent 7136017800
commit d750015bbb
7 changed files with 33 additions and 296 deletions

View file

@ -62,7 +62,7 @@ shopt -s checkwinsize # checks term size when bash regains control
bind "set completion-ignore-case on" bind "set completion-ignore-case on"
# sudo not required for some system commands # sudo not required for some system commands
for command in mount umount poweroff reboot ; do for command in cryptsetup mount umount poweroff reboot ; do
alias $command="sudo $command" alias $command="sudo $command"
done; unset command done; unset command
@ -142,23 +142,16 @@ alias \
lt="exa -aT --color=always --group-directories-first" \ lt="exa -aT --color=always --group-directories-first" \
l.='exa -a | egrep "^\."' l.='exa -a | egrep "^\."'
# xbps
[ -x "$(command -v xbps-query)" ] && alias \
xb-up="sudo xbps-install -Su && xcheckrestart" \
xb-get="sudo xbps-install -S" \
xb-rmv="sudo xbps-remove -R" \
xb-rmv-sec="sudo xbps-remove" \
xb-qry="sudo xbps-query" \
xb-cln="sudo xbps-remove -o && sudo xbps-remove -O"
# pacman # pacman
[ -x "$(command -v pacman)" ] && alias \ alias \
pac-up="sudo pacman -Syyu" \ pac-up="sudo pacman -Syyu" \
pac-get="sudo pacman -S" \ pac-get="sudo pacman -S" \
pac-rmv="sudo pacman -Rcns" \ pac-rmv="sudo pacman -Rcns" \
pac-rmv-sec="sudo pacman -Runs" \ pac-rmv-sec="sudo pacman -Runs" \
pac-qry="sudo pacman -Ss" \ pac-qry="sudo pacman -Ss" \
pac-cln="sudo pacman -Scc" pac-cln="sudo pacman -Scc" \
par-get="paru -S" \
par-cln="paru -Scc"
# colorize grep output (good for log files) # colorize grep output (good for log files)
alias \ alias \
@ -202,11 +195,7 @@ alias \
music="cmus" music="cmus"
# power management # power management
[ -x "$(command -v xbps-query)" ] && alias \ alias \
po="loginctl poweroff" \
sp="loginctl suspend" \
rb="loginctl reboot"
[ -x "$(command -v pacman)" ] && alias \
po="systemctl poweroff" \ po="systemctl poweroff" \
sp="systemctl suspend" \ sp="systemctl suspend" \
rb="systemctl reboot" rb="systemctl reboot"

View file

@ -188,8 +188,8 @@ c.tabs.show = 'always'
# Setting default page for when opening new tabs or new windows with # Setting default page for when opening new tabs or new windows with
# commands like :open -t and :open -w . # commands like :open -t and :open -w .
c.url.default_page = '~/.config/qutebrowser/homepage/homepage.html' c.url.default_page = 'https://search.brave.com'
c.url.start_pages = '~/.config/qutebrowser/homepage/homepage.html' c.url.start_pages = 'https://search.brave.com'
# Search engines which can be used via the address bar. Maps a search # Search engines which can be used via the address bar. Maps a search
# engine name (such as `DEFAULT`, or `ddg`) to a URL with a `{}` # engine name (such as `DEFAULT`, or `ddg`) to a URL with a `{}`

View file

@ -1,124 +0,0 @@
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');
@import url('https://fonts.googleapis.com/css?family=Roboto');
@import url('https://fonts.googleapis.com/css?family=Anton');
body {
background-color: #282c34;
margin: 0px;
}
.container {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
#clock {
font-family: sans-serif;
font-size: 4.0rem;
font-family: "Anton";
color: #fff;
margin-bottom: .25em;
}
#search {
width: 100%;
height: 100vh;
background-color: #000000;
display: none;
position: absolute;
box-sizing: border-box;
flex-direction: column;
align-items: center;
justify-content: center;
}
#search-field {
width: 90%;
padding: .75em 1em;
box-sizing: border-box;
background-color: #000000;
border: solid 0px #000000;
font-family: "Roboto Mono";
font-size: 4rem;
color: #f2f2f2;
outline: none;
border-radius: 3px;
margin-bottom: 1em;
text-align: center;
}
.weather-container {
width: 30%;
background-color: #000000;
padding: 1em;
border-radius: 3px;
font-family: "Roboto Mono";
font-size: 1.2rem;
color: #fff;
text-align: center;
}
.inline {
display: inline-block;
}
.bookmark-container {
display: flex;
flex-direction: row;
justify-content: center;
width: 60%;
margin: 1em 0em;
}
@media only screen and (max-width: 960px) {
.container {
height: auto;
}
#clock {
margin-top: 1em;
}
.container > .bookmark-container {
flex-direction: column;
width: 60%;
}
.bookmark-container > .bookmark-set {
width: auto;
margin: 1em 0em;
}
}
.bookmark-set{
padding: 1em;
background-color: #000000;
border-radius: 3px;
font-family: "Roboto Mono";
font-size: .85rem;
width: 25%;
height: 16em;
margin: 0em .5em;
}
.bookmark-inner-container {
overflow-y: scroll;
height: 80%;
vertical-align: top;
}
.bookmark-title {
font-family: "Roboto";
font-size: 1.2rem;
font-weight: 600;
color: #ededed;
margin: 0em 0em .35em 0em;
}
.bookmark {
text-decoration: none;
color: #8c8c8b;
display:block;
margin: .4em 0em;
}
.bookmark:hover {
color: #fff;
}

View file

@ -1,135 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Home</title>
<link rel="stylesheet" href="homepage.css">
<link href="favicon.png" rel="shortcut icon" type="image/x-icon" />
</head>
<body>
<div id="search">
<input id="search-field" type="text" name="search-field"/>
</div>
<div class="container">
<div id="clock"></div>
<div class="weather-container">
<div class="row">
<div id="weather-description"class="inline"></div>
<div class="inline">-</div>
<div id="temp" class="inline"></div>
</div>
</div>
<div class="bookmark-container">
<div class="bookmark-set">
<div class="bookmark-title">Linux Related</div>
<div class="bookmark-inner-container">
<a class="bookmark" href="https://distro.tube/" target="_blank">DistroTube</a>
<a class="bookmark" href="https://www.switchedtolinux.com" target="_blank">Switched to Linux</a>
<a class="bookmark" href="https://www.linuxtoday.com/" target="_blank">LinuxToday</a>
<a class="bookmark" href="https://www.linuxinsider.com/" target="_blank">LinuxInsider</a>
<a class="bookmark" href="https://omgubuntu.co.uk/" target="_blank">OMG Ubuntu</a>
<a class="bookmark" href="https://itsfoss.com/" target="_blank">It's Foss</a>
<a class="bookmark" href="https://phoronix.com/" target="_blank">Phoronix</a>
<a class="bookmark" href="https://www.zdnet.com/topic/linux/" target="_blank">ZDNet</a>
</div>
</div>
<div class="bookmark-set">
<div class="bookmark-title">Free Software</div>
<div class="bookmark-inner-container">
<a class="bookmark" href="https://www.gnu.org/" target="_blank">GNU</a>
<a class="bookmark" href="https://www.fsf.org/" target="_blank">FSF</a>
<a class="bookmark" href="https://www.eff.org" target="_blank">EFF</a>
<a class="bookmark" href="https://libreplanet.org/wiki/Main_Page" target="_blank">LibrePlanet</a>
<a class="bookmark" href="https://www.minifree.org" target="_blank">Minifree Store</a>
</div>
</div>
<div class="bookmark-set">
<div class="bookmark-title">Social & Video</div>
<div class="bookmark-inner-container">
<a class="bookmark" href="https://youtube.com/" target="_blank">Youtube</a>
<a class="bookmark" href="https://music.youtube.com/" target="_blank">Youtube Music</a>
<a class="bookmark" href="https://odysee.com/" target="_blank">Odysee</a>
<a class="bookmark" href="https://github.com/d4r1us-drk/" target="_blank">GitHub</a>
<a class="bookmark" href="https://web.whatsapp.com/" target="_blank">Whatsapp</a>
</div>
</div>
<div class="bookmark-set">
<div class="bookmark-title">Reddit</div>
<div class="bookmark-inner-container">
<a class="bookmark" href="https://reddit.com/r/linux" target="_blank">/r/linux</a>
<a class="bookmark" href="https://reddit.com/r/archlinux" target="_blank">/r/archlinux</a>
<a class="bookmark" href="https://reddit.com/r/commandline" target="_blank">/r/commandline</a>
<a class="bookmark" href="https://reddit.com/r/linux4noobs" target="_blank">/r/linux4noobs</a>
<a class="bookmark" href="https://reddit.com/r/linuxquestions" target="_blank">/r/linuxquestions</a>
<a class="bookmark" href="https://reddit.com/r/linuxmemes" target="_blank">/r/linuxmemes</a>
<a class="bookmark" href="https://reddit.com/r/suckless" target="_blank">/r/suckless</a>
<a class="bookmark" href="https://reddit.com/r/unixporn" target="_blank">/r/unixporn</a>
<a class="bookmark" href="https://reddit.com/r/vim" target="_blank">/r/vim</a>
<a class="bookmark" href="https://reddit.com/r/emacs" target="_blank">/r/emacs</a>
</div>
</div>
</div>
</div>
<script>
// Search on enter key event
document.getElementById("search-field").addEventListener("keydown", event => {
if (event.keyCode === 13) {
var val = document.getElementById("search-field").value;
window.open("https://google.com/search?q=" + val);
}
});
// Get current time and format
getTime = () => {
let date = new Date(),
min = date.getMinutes(),
sec = date.getSeconds(),
hour = date.getHours();
return "" +
(hour < 10 ? ("0" + hour) : hour) + ":" +
(min < 10 ? ("0" + min) : min) + ":" +
(sec < 10 ? ("0" + sec) : sec);
}
window.onload = () => {
let xhr = new XMLHttpRequest();
// Request to open weather map
xhr.open('GET', 'http://api.openweathermap.org/data/2.5/weather?id=4737316&units=imperial&appid=e5b292ae2f9dae5f29e11499c2d82ece');
xhr.onload = () => {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
let json = JSON.parse(xhr.responseText);
console.log(json);
document.getElementById("temp").innerHTML = json.main.temp.toFixed(0) + " F";
document.getElementById("weather-description").innerHTML = json.weather[0].description;
} else {
console.log('error msg: ' + xhr.status);
}
}
}
xhr.send();
// Set up the clock
document.getElementById("clock").innerHTML = getTime();
// Set clock interval to tick clock
setInterval( () => {
document.getElementById("clock").innerHTML = getTime();
},100);
}
document.addEventListener("keydown", event => {
if (event.keyCode == 32) { // Spacebar code to open search
document.getElementById('search').style.display = 'flex';
document.getElementById('search-field').focus();
} else if (event.keyCode == 27) { // Esc to close search
document.getElementById('search-field').value = '';
document.getElementById('search-field').blur();
document.getElementById('search').style.display = 'none';
}
});
</script>
</body>
</html>

View file

@ -21,13 +21,13 @@ case "$action" in
$option1*) $option1*)
whoami | xargs -I % sh -c 'pkill -KILL -u %';; whoami | xargs -I % sh -c 'pkill -KILL -u %';;
$option2*) $option2*)
loginctl reboot || systemctl reboot;; systemctl reboot;;
$option3*) $option3*)
loginctl poweroff || systemctl poweroff;; systemctl poweroff;;
$option4*) $option4*)
betterlockscreen -l & betterlockscreen -l &
sleep 2 sleep 2
loginctl suspend || systemctl suspend;; systemctl suspend;;
$option5*) $option5*)
betterlockscreen -l;; betterlockscreen -l;;
$option6*) $option6*)

View file

@ -10,4 +10,3 @@ dwmblocks &
sh "$HOME"/.fehbg & sh "$HOME"/.fehbg &
picom --config ~/.config/picom/picom.conf & picom --config ~/.config/picom/picom.conf &
dunst --config ~/.config/dunst/dunstrc & dunst --config ~/.config/dunst/dunstrc &
/usr/bin/emacs --daemon &

View file

@ -151,16 +151,22 @@ static Key keys[] = {
{ MODKEY|ShiftMask, -1, XK_period, tagmon, {.i = +1 } }, { MODKEY|ShiftMask, -1, XK_period, tagmon, {.i = +1 } },
/* VOLUME CONTROL */ /* VOLUME CONTROL */
/* Increase volume by 5% */ /* Toggle mute */
{ MODKEY|ShiftMask, -1, XK_equal, spawn, CMD("pamixer -i 5") }, { MODKEY, -1, XK_F1, spawn, CMD("pamixer -t") },
/* Decrease volume by 5% */ /* Decrease volume by 5% */
{ MODKEY|ShiftMask, -1, XK_minus, spawn, CMD("pamixer -d 5") }, { MODKEY, -1, XK_F2, spawn, CMD("pamixer -d 5") },
/* Increase volume by 5% */
{ MODKEY, -1, XK_F3, spawn, CMD("pamixer -i 5") },
/* Toggle microphone mute */
{ MODKEY, -1, XK_F4, spawn, CMD("pamixer --default-source -t") },
/* BRIGHTNESS CONTROL */ /* BRIGHTNESS CONTROL */
/* Increase brightness by 5% */
{ MODKEY|ControlMask, -1, XK_equal, spawn, CMD("xbacklight -inc 5") },
/* Decrease brightness by 5% */ /* Decrease brightness by 5% */
{ MODKEY|ControlMask, -1, XK_minus, spawn, CMD("xbacklight -dec 5") }, { MODKEY, -1, XK_F5, spawn, CMD("xbacklight -dec 5") },
/* Increase brightness by 5% */
{ MODKEY, -1, XK_F6, spawn, CMD("xbacklight -inc 5") },
/* Set screen backlight to off */
{ MODKEY, -1, XK_F7, spawn, CMD("xbacklight -set 0") },
/* KEYBOARD LAYOUTS changed with emacs-style keychords SUPER + k (keyboard) followed by "key" */ /* KEYBOARD LAYOUTS changed with emacs-style keychords SUPER + k (keyboard) followed by "key" */
/* Switch to the spanish keyboard layout */ /* Switch to the spanish keyboard layout */
@ -184,17 +190,19 @@ static Key keys[] = {
/* MISC PROGRAMS launched with emacs-style keychords SUPER + m (app) followed by "key" */ /* MISC PROGRAMS launched with emacs-style keychords SUPER + m (app) followed by "key" */
/* Audio mixer */ /* Audio mixer */
{ MODKEY, XK_a, XK_F1, spawn, CMD("alacritty -e pulsemixer") }, { MODKEY, XK_a, XK_F1, spawn, CMD("alacritty -e btop") },
/* Audio mixer */
{ MODKEY, XK_a, XK_F2, spawn, CMD("alacritty -e pulsemixer") },
/* Rss reader */ /* Rss reader */
{ MODKEY, XK_a, XK_F2, spawn, CMD("alacritty -e newsboat") }, { MODKEY, XK_a, XK_F3, spawn, CMD("alacritty -e newsboat") },
/* Ytfzf */ /* Ytfzf */
{ MODKEY, XK_a, XK_F3, spawn, CMD("alacritty -e ytfzf -flst") }, { MODKEY, XK_a, XK_F4, spawn, CMD("alacritty -e ytfzf -flst") },
/* Ani-cli */ /* Ani-cli */
{ MODKEY, XK_a, XK_F4, spawn, CMD("alacritty -e ani-cli") }, { MODKEY, XK_a, XK_F5, spawn, CMD("alacritty -e ani-cli") },
/* Flix-cli */ /* Flix-cli */
{ MODKEY, XK_a, XK_F5, spawn, CMD("alacritty -e flix-cli") }, { MODKEY, XK_a, XK_F6, spawn, CMD("alacritty -e flix-cli") },
/* Castero */ /* Castero */
{ MODKEY, XK_a, XK_F6, spawn, CMD("alacritty -e castero") }, { MODKEY, XK_a, XK_F7, spawn, CMD("alacritty -e castero") },
/* DMENU PROMPTS launched with emacs-style keychords SUPER + p (prompt) followed by "key" */ /* DMENU PROMPTS launched with emacs-style keychords SUPER + p (prompt) followed by "key" */
/* dmenu */ /* dmenu */
@ -202,9 +210,9 @@ static Key keys[] = {
/* dmenu_power */ /* dmenu_power */
{ MODKEY, XK_p, XK_q, spawn, CMD("$HOME/.config/suckless/dmenu/scripts/dmenu_power") }, { MODKEY, XK_p, XK_q, spawn, CMD("$HOME/.config/suckless/dmenu/scripts/dmenu_power") },
/* dmenu_wifi */ /* dmenu_wifi */
{ MODKEY, XK_p, XK_w, spawn, CMD("$HOME/.config/suckless/dmenu/scripts/dmenu_wifi") }, { MODKEY, XK_p, XK_i, spawn, CMD("$HOME/.config/suckless/dmenu/scripts/dmenu_wifi") },
/* dmenu_wall */ /* dmenu_wall */
{ MODKEY, XK_p, XK_b, spawn, CMD("$HOME/.config/suckless/dmenu/scripts/dmenu_wall") }, { MODKEY, XK_p, XK_w, spawn, CMD("$HOME/.config/suckless/dmenu/scripts/dmenu_wall") },
/* dmenu_edit */ /* dmenu_edit */
{ MODKEY, XK_p, XK_e, spawn, CMD("$HOME/.config/suckless/dmenu/scripts/dmenu_edit") }, { MODKEY, XK_p, XK_e, spawn, CMD("$HOME/.config/suckless/dmenu/scripts/dmenu_edit") },
/* dmenu_scrot */ /* dmenu_scrot */