Skip to content

Instantly share code, notes, and snippets.

@tuxarch
tuxarch / switch_drivers.sh
Created December 2, 2017 22:40
switch drivers in arch(nvidia,nouveau)
#!/bin/bash
BRANCH=-340xx # Enter a branch if needed, i.e. -340xx or -304xx
NVIDIA=nvidia${BRANCH} # If no branch entered above this would be "nvidia"
NOUVEAU=xf86-video-nouveau
# Replace -R with -Rs to if you want to remove the unneeded dependencies
if [ $(pacman -Qqs ^mesa-libgl$) ]; then
pacman -S $NVIDIA ${NVIDIA}-libgl # Add lib32-${NVIDIA}-libgl and ${NVIDIA}-lts if needed
# pacman -R $NOUVEAU
elif [ $(pacman -Qqs ^${NVIDIA}$) ]; then
#!/bin/bash
# Retrieves the installed `pacman` package lists and syncs them with my remote git repo
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@tuxarch
tuxarch / rofi-gpaste.sh
Created November 26, 2017 17:32 — forked from tadly/rofi-gpaste.sh
rofi + gpaste
#!/usr/bin/env bash
#
# Use rofi to select an entry from gpaste
#
# Requirements:
# rofi, gpaste
#
line=`gpaste-client --oneline | rofi -dmenu -i -p gpaste: $@`
index=`echo $line | cut -d ':' -f1`
@tuxarch
tuxarch / dnscrypt-setup.sh
Created November 20, 2017 03:24 — forked from Thermionix/dnscrypt-setup.sh
quick setup for dnscrypt + dnsmasq on arch
#!/bin/bash
## chose a provider from;
# less /usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv
sudo pacman -Sy --noconfirm dnscrypt-proxy dnsmasq dnsutils
cat <<-'EOF' | sudo SYSTEMD_EDITOR=tee systemctl edit dnscrypt-proxy.service
[Service]
ExecStart=
@tuxarch
tuxarch / pacaur_install.sh
Created November 15, 2017 08:06 — forked from tadly/pacaur_install.sh
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
# If you are new to arch, I encourage you to at least read and understand what
# this script does befor blindley running it.
# That's why I didn't make a one-liner out of it so you have an easier time
# reading and understanding it :)
#
# This scripts purpose is purly to save you a few seconds on your new installation.
#
# Enjoy your time on an awesome system. Arch FTW!
@tuxarch
tuxarch / DI.m3u
Created January 30, 2017 08:20 — forked from sim642/DI.m3u
Digitally Imported premium streams
#EXTM3U
#EXTINF:-1,Digitally Imported - Ambient
http://pub1.diforfree.org:8000/di_ambient_hi
#EXTINF:-1,Digitally Imported - Big Room House
http://pub1.diforfree.org:8000/di_bigroomhouse_hi
#EXTINF:-1,Digitally Imported - Breaks
http://pub1.diforfree.org:8000/di_breaks_hi