Skip to content

Instantly share code, notes, and snippets.

View rikkarth's full-sized avatar
👾

Rikkarth rikkarth

👾
View GitHub Profile
@rikkarth
rikkarth / xrandr-dual-monitor-setup.sh
Last active June 6, 2024 21:27
i3wm-xrandr-horizontal-and-vertical-monitor-config
# this command will configure your dual monitors for horizontal + vertical setup,
# where horizontal is primary and vertical is secondary (right)
# you can find the name of each monitor by typing 'xrandr'
xrandr --output HDMI-0 --mode 1920x1080 --pos 1920x0 --rotate right --output DP-0 --off --output DP-1 --off --output HDMI-1 --primary --mode 1920x1080 --pos 0x492 --rotate normal --output DP-2 --off --output DP-3 --off
# additionally the command bellow can be placed in .config/i3/config
exec --no-startup-id xrandr --output HDMI-0 --mode 1920x1080 --pos 1920x0 --rotate right --output DP-0 --off --output DP-1 --off --output HDMI-1 --primary --mode 1920x1080 --pos 0x492 --rotate normal --output DP-2 --off --output DP-3 --off
@rikkarth
rikkarth / git-log-beautify.sh
Last active May 30, 2024 17:07
git-log-beautify
# this command will create an alias at 'git sla' which will print a very simple and beautiful log to the terminal
git config --global alias.sla 'log --color --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit --branches'