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
#
# /---------| |-- /--| * 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!
#
#!/bin/bash
setxkbmap -query | grep -q 'variant:\s\+intl' && setxkbmap -layout us || setxkbmap -layout us -variant intl
[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
@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
@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 "
[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
# 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
shadow = true;
detect-rounded-corners = true;
shadow-radius = 5;
shadow-offset-x = 1;
shadow-offset-y = 1;
shadow-opacity = 0.3;
shadow-ignore-shaped = false;
shadow-exclude = [ "name = 'Notification'", "override_redirect = 1 && !WM_CLASS@:s", "class_g ?= 'Dmenu'", "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", "_GTK_FRAME_EXTENTS@:c", "class_g ?= 'i3-frame'", "class_g ?= 'trayer'" ];
inactive-opacity = 1.0;
active-opacity = 1;
code --install-extension bierner.markdown-preview-github-styles
code --install-extension colinkaopu.d
code --install-extension Dart-Code.dart-code
code --install-extension Dart-Code.flutter
code --install-extension dbaeumer.vscode-eslint
code --install-extension EditorConfig.EditorConfig
code --install-extension esbenp.prettier-vscode
code --install-extension GraphQL.vscode-graphql
code --install-extension JakeBecker.elixir-ls
code --install-extension jdinhlife.gruvbox
#!/bin/bash
#
# fix-cedilla
#
# This is a very simple program to configure your personal ".XCompose" file and
# your environment so that typing 'c will generate a cedilla c instead of an
# accented c.
#
# For further information, visit:
# http://github.com/marcopaganini/gnome-cedilla-fix