Skip to content

Instantly share code, notes, and snippets.

View txtyash's full-sized avatar
🍀
Aw man! [hums happily]

textYash txtyash

🍀
Aw man! [hums happily]
View GitHub Profile
@txtyash
txtyash / default.nix
Last active November 4, 2023 19:56
submodules
{
lib,
config,
...
}: {
imports = [./options.nix ./yash];
config.profiles.yash.editor = "nvim";
# Generate this: users.users.yash.description = "Yash Shinde";
{
imports = [ ./users.nix ];
x.users.alice.editor = "hx";
x.users.bob.editor = "vi";
x.users.clive.editor = "code";
boot.loader.grub.enable = false;
fileSystems."/" = { device = "/dev/sda1"; };
}
@txtyash
txtyash / vimiumC.search
Last active January 7, 2024 10:37
Custom search engines vimiumC
@txtyash
txtyash / loader.conf
Created August 29, 2022 06:35
loader.conf for gummiboot placed under /boot/loader/loader.conf
default arch.conf
timeout 0
console-mode max
editor no
@txtyash
txtyash / slock.service
Last active August 27, 2022 16:43
Lock screen on sleep/hibernate with slock. Place this file under /etc/systemd/system/slock.service
[Unit]
Description=Lock X session using slock for user %i
Before=sleep.target
[Service]
User=zim
Environment=DISPLAY=:0
ExecStartPre=/usr/bin/xset dpms force suspend
ExecStart=/usr/bin/slock
@txtyash
txtyash / vimiumC.keys
Last active July 4, 2023 10:43
vimiumC keybindings
map s LinkHints.activate
map S LinkHints.activateOpenInNewTab
map D closeTabsOnRight
map [ moveTabLeft
map ] moveTabRight
map r reload hard
map ( previousTab
map ) nextTab
map H previousTab
map L nextTab
@txtyash
txtyash / kmon.service
Last active August 13, 2022 18:46
My kmonad service file at /etc/systemd/system/kmon.service
[Unit]
Description=Kmonad keyboard utility
[Service]
Type=simple
ExecStart=/usr/bin/kmonad /home/zim/.kmonad.kbd
[Install]
WantedBy=multi-user.target
@txtyash
txtyash / .xinitrc
Last active August 6, 2022 17:40
setxkbmap swap alt with super and caps with esc
setxkbmap -option altwin:swap_lalt_lwin
setxkbmap -option caps:swapescape
# add these lines to your .xinitrc
@txtyash
txtyash / xmonad.hs
Last active October 9, 2023 11:40
My xmonad config
-- Yash's Xmonad config
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-} -- Hightlight Bar
-- ================================ IMPORT ==============================================
import XMonad
import XMonad.Util.EZConfig
import XMonad.Util.Ungrab
import qualified XMonad.StackSet as W
import qualified Data.Map as M
@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'