Skip to content

Instantly share code, notes, and snippets.

View gustavomedeiross's full-sized avatar

Gustavo Medeiros gustavomedeiross

  • Bluecode
  • Florianópolis, Brazil
View GitHub Profile
# clone & configure dotfiles
git clone --bare https://github.com/mendes13/dotfiles.git $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
mkdir -p .dotfiles-backup
dotfiles checkout
if [ $? = 0 ]; then
[global]
### Display ###
# Which monitor should the notifications be displayed on.
monitor = 0
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
@gustavomedeiross
gustavomedeiross / pacupdate
Created November 23, 2020 14:09
XMobar utils
#!/bin/bash
# depends on the pacman-contrib
cupd=$(checkupdates | wc -l)
echo "$cupd available "
@gustavomedeiross
gustavomedeiross / scriptzinho-do-henke.sh
Last active November 20, 2020 17:14
scriptzinho-do-henke.sh
if [[ ! -e /tmp/$(date +"%Y%m%d").sem ]]
then
# Do your one-time stuff
if (dialog --title "update packages" --yesno "Let's update our pacman packages?(yay command)" 6 30)
then
touch /tmp/$(date +"%Y%m%d").sem
clear
yay
else
touch /tmp/$(date +"%Y%m%d").sem
[user]
email = [email protected]
name = Gustavo Mendes de Medeiros
[core]
editor = vim
[alias]
st = status
co = checkout
lg = log --all --graph --decorate --oneline --abbrev-commit
d = diff
#!/bin/bash
setxkbmap -query | grep -q 'variant:\s\+intl' && setxkbmap -layout us || setxkbmap -layout us -variant intl
#
# /---------| |-- /--| * mendes13 - Gustavo Mendes de Medeiros
# | /-------| | \ / | * GitHub: https://www.github.com/mendes13
# | | | \ \ / /| |
# | | |---\ | | | \__/ | | My .vimrc configuration file, feel free to try
# | \-----/ | | | | | it out! Keep in mind that I do use Vim Plug as
# \---------/ |_| |_| my plugin manager, so don't forget to install it!
#
@gustavomedeiross
gustavomedeiross / settings.json
Created October 14, 2020 13:59
settings.json (vscode)
{
//Styles and Font Size of the editor (General)
"workbench.iconTheme": "material-icon-theme",
// "workbench.colorTheme": "One Dark Pro",
"editor.fontSize": 12,
"terminal.integrated.fontSize": 12,
"window.titleBarStyle": "custom",
"editor.tabSize": 2,
"editor.cursorStyle": "block",
"editor.acceptSuggestionOnEnter": "off",
#!/bin/bash
# depends on the pacman-contrib
cupd=$(checkupdates | wc -l)
echo "$cupd available "
--
-- xmonad example config file.
--
-- A template showing all available configuration hooks,
-- and how to override the defaults in your own xmonad.hs conf file.
--
-- Normally, you'd only override those defaults you care about.
--
import XMonad