Skip to content

Instantly share code, notes, and snippets.

View txtyash's full-sized avatar

Yash Shinde txtyash

View GitHub Profile
@txtyash
txtyash / config.yml
Created August 2, 2022 16:56
Fusuma configuration using xdotool for xmonad switch workspaces
swipe:
3:
left:
command: 'xdotool key super+Right'
right:
command: 'xdotool key super+Left'
up:
command: 'xdotool key super+Up'
down:
command: 'xdotool key super+Down'
@txtyash
txtyash / arch.conf
Last active September 3, 2022 02:30
Gummiboot file arch.conf (using vanilla kernel)
title Arch Linux
linux /vmlinuz-linux
initrd /amd-ucode.img
initrd /initramfs-linux.img
options root=PARTUUID=ac34acd6-9066-42fe-bf08-328a017a3779 rw quiet loglevel=0 console=tty2 acpi_backlight=vendor resume=UUID=5c42bd8f-57ea-4d96-88fb-6f82edbcf634 resume_offset=3475456
@txtyash
txtyash / refind.conf
Created July 20, 2022 10:23
Gummiboot file refind.conf (using zen kernel)
timeout -1
hideui all
textonly
use_graphics_for linux
scanfor internal
default_selection 1
@txtyash
txtyash / arch.conf
Created July 20, 2022 10:22
Gummiboot file arch.conf (using zen kernel)
title Arch Linux
linux /vmlinuz-linux-zen
initrd /amd-ucode.img
initrd /initramfs-linux-zen.img
options root=PARTUUID=2d00f3a7-eda4-7a4a-86a7-d0e7a43302e9 rw quiet loglevel=0 console=tty2 acpi_backlight=vendor
@txtyash
txtyash / .xmobarrc
Created July 20, 2022 10:20
My xmobarrc for xmonad
-- Use the Nord theme: https://www.nordtheme.com/docs/colors-and-palettes
Config {
-- appearance
-- Hasklug is a much more readable font than mononoki, esp cus my bar is a bit small
font = "xft:FuraCode Nerd Font:weight=bold:pixelsize=14:antialias=true:hinting=true"
, bgColor = "#2E3440"
, fgColor = "#D8DEE9"
, position = Bottom
, border = BottomB
@txtyash
txtyash / .xinitrc
Created July 20, 2022 10:20
My .xinitrc
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
@txtyash
txtyash / default.conf
Created July 20, 2022 10:19
Get audio working in xorg/X11 or tiling window managers in general
# Audio not working in tiling wms?
# This probably only works for intel audio cards
# Not sure if this will work for you
# Put this file in /etc/modprobe.d/
options snd_hda_intel index=1
@txtyash
txtyash / tags.sh
Created July 20, 2022 10:17
My scratchpad script in xmonad for handy stuff
#!/bin/bash
while true; do
action=x
clear
echo -ne "\n\t\tACTION?\n\n\tg(Go to)\tm(Move to)\n\tv(Vol)\t\tb(bright)\n\tk(kbd)\t\tt(touchpad)\n\tp(picom)\tn(network)"
read -r -n 1 action
clear
if [[ "$action" = "g" ]]; then
echo -ne "\n\n GO TO? a1 s2 q3 w4 d5 f6 e7 r8 t9:\n\n "
read -r -n 1 tag
@txtyash
txtyash / 40-libinput.conf
Created July 20, 2022 10:16
Configure touchpad in xorg to support natural scrolling, tap to touch, etc.
# Put this file in /etc/X11/xorg.conf.d/ directory and then reboot to reflect changes
Section "InputClass"
Identifier "libinput pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
@txtyash
txtyash / filename
Created July 20, 2022 10:16
Scrot commands to take screenshot of active window, selective and fullscreen
#!/bin/bash
# active
scrot -u 'screenshot_%Y%m%d_%H%M%S.png' -e 'mkdir -p ~/screenshots && mv $f ~/screenshots && xclip -selection clipboard -t image/png -i ~/screenshots/`ls -1 -t ~/screenshots | head -1`'
#!/bin/bash
# full
scrot 'screenshot_%Y%m%d_%H%M%S.png' -e 'mkdir -p ~/screenshots && mv $f ~/screenshots && xclip -selection clipboard -t image/png -i ~/screenshots/`ls -1 -t ~/screenshots | head -1`'
#!/bin/bash
# selection