Compare commits

...

212 Commits

Author SHA1 Message Date
Nemo be4e2ca749 sway 2024-04-10 15:10:41 +05:30
Nemo cbc764a4f8 alacrity new version themes 2024-01-05 23:07:10 +05:30
Nemo 81a71b0f33 while the bugs are fixed, this still gives more headache 2022-01-17 00:16:35 +05:30
Nemo 2eb17f82ab remove template from git 2022-01-17 00:16:24 +05:30
Nemo 98ab59fe3a add pdm to bashrc 2022-01-17 00:15:34 +05:30
Nemo c1ff2c1426 fix rofi 2022-01-17 00:15:08 +05:30
Nemo 143fb69190 minor changes 2021-08-24 14:47:00 +05:30
Nemo ae9fedf489 content disposition on is better 2021-08-24 14:46:22 +05:30
Nemo 336eebaa36 more registeries 2021-08-24 14:46:09 +05:30
Nemo f6e4e9cde3 composer remove unused packages 2021-08-24 14:46:01 +05:30
Nemo 7dc2199a90 steampipe and podman 2021-08-24 14:44:39 +05:30
Nemo 220b5fe741 music dl updates 2021-06-23 18:58:23 +05:30
Nemo 83414c24d6 i3blocks 2021-06-22 15:31:15 +05:30
Nemo e434294c24 minor i3 update 2021-06-22 15:31:04 +05:30
Nemo 030aecceec attempting to document my ~/bin 2021-06-11 18:58:38 +05:30
Nemo 7bda21482f Add more packages 2021-06-10 01:46:54 +05:30
Nemo 9bd6396ec6 Add package list to start scaffold work 2021-06-10 00:54:26 +05:30
Nemo ee681c8c40 lockscreen changes 2021-06-09 20:10:21 +05:30
Nemo 9a436039d0 alacritty updates for themes 2021-06-08 19:52:39 +05:30
Nemo ce0661556f wallpaper and lockscreen 2021-06-08 19:52:21 +05:30
Nemo 6963de19f6 ytdl.album 2021-06-08 19:52:11 +05:30
Nemo 1ece8b8d18 switch to podman 2021-06-08 19:51:44 +05:30
Nemo eedae21cc1 Ruby update and change Gtk Dark Theme 2021-05-29 14:45:12 +05:30
Nemo 42318f334f new snippets 2021-05-29 14:44:50 +05:30
Nemo 2f383b303e Adds download-as-pdf 2021-05-26 23:23:57 +05:30
Nemo bb6ff7d46d docker config updates 2021-05-26 23:23:57 +05:30
Nemo 5c79f156e7 frequent tempoerature updates 2021-05-26 23:23:57 +05:30
Nemo 8b3804ab0b starship config update 2021-05-26 23:23:57 +05:30
Nemo 3b62a55016 use pass-git-helper for git-creds 2021-05-26 23:23:57 +05:30
Nemo 4982283e87 minor bashrc updates 2021-05-26 23:23:57 +05:30
Nemo 0f52fd8d16 Update MIT snippet 2021-05-26 23:23:57 +05:30
Nemo 6ea81d1f7c update xinitrc 2021-05-26 23:23:57 +05:30
Nemo 68ac5b067f Add new i3blocks 2021-05-26 23:23:57 +05:30
Nemo 1a9581b573 remove old vim config 2021-05-26 23:23:57 +05:30
Nemo 09519a0507 bashrc updates 2021-05-26 23:23:57 +05:30
Nemo e86e0de124 i3 launch edit 2021-05-26 23:23:57 +05:30
Nemo d5b6080a96 new a-c 2021-03-10 01:27:47 +05:30
Nemo 4dc1b7f528 submodule magic 2021-03-10 01:27:35 +05:30
Nemo addca83d88 git updates 2021-02-26 14:01:52 +05:30
Nemo d604618a5e New ruby stuff 2021-02-09 13:17:09 +05:30
Nemo 0cdf920bd3 no more polybar 2021-01-20 13:22:33 +05:30
Nemo aec042b2ef Adds a label for disk usage 2021-01-20 13:21:47 +05:30
Nemo 639f47e650 minor comments and cleanup 2021-01-19 14:57:03 +05:30
Nemo 0b4f802fd5 Single function for both light/dark 2021-01-19 13:16:30 +05:30
Nemo e15bd39654 Fix sublime settings change using jq 2021-01-19 12:50:26 +05:30
Nemo a626a5d233 ddcutil FTW!
It lets me automatically dim the brightness of the monitor (just the LG
one) programatically. Super cool!
2021-01-19 00:50:23 +05:30
Nemo e9169abfe5 gitignore docker seed 2021-01-18 18:29:29 +05:30
Nemo 3bbd401d02 solarized light/dark 2021-01-18 18:28:46 +05:30
Nemo 3f3c743eec gitk is faster 2020-12-20 21:56:02 +05:30
Nemo b26a34f522 General updates 2020-12-20 21:55:02 +05:30
Nemo 9bf34561f9 starship upgrade to 0.45
https://starship.rs/migrating-to-0.45.0/#module-prefix-and-suffix-will-be-replaced-by-format
2020-10-07 01:44:18 +05:30
Nemo eb6de211ac Finally got alacritty configuration correctly committed 2020-09-17 12:55:59 +05:30
Nemo c37316a3b3 Adds alacritty themes in submodule 2020-09-14 15:54:30 +05:30
Nemo 4117669b3d General updates 2020-09-14 15:54:26 +05:30
Nemo aa97b3f6d4 Minor updates 2020-07-09 16:47:21 +05:30
Nemo cc2cc708c7 passmenu now uses solarized dark 2020-07-09 14:10:34 +05:30
Nemo 86ccbde5a4 Adds goldendict to startup 2020-07-08 19:16:12 +05:30
Nemo a1c12e705f Adds i3blocks configuration 2020-07-08 19:15:47 +05:30
Nemo 0afa000a5b Adds a ignore file 2020-07-02 23:48:01 +05:30
Nemo a8fb7991f5 light and dark aliases 2020-07-02 23:47:41 +05:30
Nemo 9f0f06a036 Adds khal and vdirsync configurations 2020-06-17 20:13:12 +05:30
Nemo 77b83130b3 Start hackertray, and be use dark i3bar 2020-06-15 19:21:53 +05:30
Nemo 759ec414e4 alacritty solarized light/dark 2020-06-15 19:21:34 +05:30
Nemo f32219521c add completion scripts 2020-06-15 19:21:26 +05:30
Nemo 8796a25c87 Remove gtk files, which kept get overwritten uselessly 2020-06-15 19:21:10 +05:30
Nemo 32c5687e5e Switch to proper solarized green 2020-06-01 00:09:14 +05:30
Nemo 0cf78866bd trying out solarized light everywhere 2020-05-31 04:19:16 +05:30
Nemo 67d65eb6e9 Cantarell everywhere in the UI 2020-05-25 00:42:18 +05:30
Nemo a8f4719ea2 ignore more things 2020-05-25 00:08:36 +05:30
Nemo b624742362 switch to i3blocks, polybar is too much 2020-05-25 00:07:01 +05:30
Nemo 685744d5ed Adds starship configuration 2020-05-07 16:26:48 +05:30
Nemo 980022798f Adds alacritty and rofi config 2020-05-07 16:17:48 +05:30
Nemo ace32ae7c8 Lots of updates:
- Ignore nitrogen, just causes conflicts
- dunst improvements
- i3: switch from dmenu to rofi
- i3: switch to flameshot
- bundle: fix some cache issues
- xinitrc: no more caps (I think)
- font changes for emojificiation
2020-05-07 16:07:22 +05:30
Nemo 2d1fc44a55 More things, fix NASC 2020-02-23 01:42:28 +05:30
Nemo a131dbe261 stop forcing ssh for git clones, HTTPs is sometimes better 2020-02-23 01:42:28 +05:30
Nemo 7d6c1ebaef minor changes 2020-02-23 01:42:28 +05:30
Nemo 58f4b48c72 updateS 2020-02-23 01:42:28 +05:30
Nemo c614342852 Adds pass auto-completion 2020-02-23 01:42:28 +05:30
Nemo 5740252747 More things 2020-01-03 01:56:41 +05:30
Nemo 7ff6f8374e better lock screen 2020-01-03 01:56:26 +05:30
Nemo ffef8c0595 home updates 2019-12-31 20:45:53 +05:30
Nemo ad5b471e5f polybar initial commit 2019-12-17 02:29:16 +05:30
Nemo 6e9172450b friendship broken with powerline, starship is my new best friend
also switches to alacritty
2019-12-17 02:28:44 +05:30
Nemo 61e12e8f3d Updates 2019-12-17 01:29:45 +05:30
Nemo 0819cd42c8 Ubuntu side updates 2019-12-17 01:29:45 +05:30
Nemo f7716742e7 bashrc updates: 2019-09-15 03:07:44 +05:30
Nemo a33d7874cf updates 2019-07-30 23:41:18 +05:30
Nemo e14b54e50d Adds snippets 2019-07-10 00:08:33 +05:30
Nemo 35c3a7f347 Adds pam environment 2019-07-07 01:49:29 +05:30
Nemo 590d1a2925 switch from keychain 2019-07-07 01:48:25 +05:30
Nemo a10c928a54 remove nitrogen from synced config 2019-05-26 16:20:23 +05:30
Nemo ec7b77cf88 updates 2019-05-26 16:18:44 +05:30
Nemo 272d5a137f More autorandr config and WTFPL 2019-05-22 18:47:08 +05:30
Nemo eb0b15d215 i3, autorandr, and nitrogen updates
compton config file format changed
2019-05-22 18:46:47 +05:30
Nemo ece57e9b67 adds kapitan compile 2019-05-08 11:30:45 +05:30
Nemo 1fcb64c6a2 switch to autorandr, leave warning on display 2019-05-07 14:56:33 +05:30
Nemo bcfa21830a switches to autorandr 2019-05-07 14:52:32 +05:30
Nemo 6710df332c Only hide pads, not preference windows 2019-05-07 13:36:46 +05:30
Nemo e55aadb973 General updates 2019-05-07 12:41:38 +05:30
Nemo 23592db850 Adds hirak/prestissimo for parallel composer installs 2019-05-05 16:32:21 +05:30
Nemo 3b6f0dd3bd symlink sway to i3 2019-04-24 01:46:06 +05:30
Nemo a76a49830a mlock doesn't work, new aliases 2019-04-22 10:35:19 +05:30
Nemo 0c537880db Adds kapitan 2019-04-13 21:40:02 +05:30
Nemo ebe42cdf04 Switch to Mod+F3 for NaSC 2019-04-12 07:57:08 +05:30
Nemo ee4c4776ad gtk2 icon settings persist now 2019-04-12 07:57:00 +05:30
Nemo a36b298f3e autosync-repos.service 2019-04-12 02:04:07 +05:30
Nemo 74f3bb8db2 have autosync repo timer 2019-04-12 01:46:48 +05:30
Nemo 5b35e033ba Don't commit composer keys by mistake 2019-04-11 00:23:24 +05:30
Nemo 8a650f004b regular updates 2019-04-10 02:24:15 +05:30
Nemo 5709348b88 Adds more display modes 2019-04-10 02:23:42 +05:30
Nemo dc42f42176 Adds NaSC 2019-04-10 02:23:28 +05:30
Nemo b106b130d3 Adds gtk configuration 2019-04-10 02:21:43 +05:30
Nemo f3de635d15 keep nitrogen cfg 2019-02-28 10:50:50 +05:30
Nemo ca5d91df83 updates (and remove nitrogen config) 2019-02-28 10:50:50 +05:30
Nemo 4f95d87ec5 Adds cybercell notice 2019-02-28 10:50:50 +05:30
Nemo b8d468b5de Adds docker config (with creds via pass) 2019-02-27 23:41:39 +05:30
Nemo 2b99de3a60 Adds bundler and composer config 2019-02-21 01:20:12 +05:30
Nemo a2cf7b1ee1 remove nitrogen from git 2019-02-21 01:19:43 +05:30
Nemo dbbdee6faa Adds fsearch 2019-02-21 01:19:10 +05:30
Nemo adadf6e247 Fixes emoji 2019-02-14 11:19:56 +05:30
Nemo 0fd87c72cc More snips 2019-02-14 11:19:43 +05:30
Nemo 31ff91089b Adding githooks: https://blog.viktoradam.net/2018/07/26/githooks-auto-install-hooks/ 2019-02-10 12:06:48 +05:30
Nemo 1fc2c1d3b4 Adds makisu and go binaries 2019-02-10 12:05:38 +05:30
Nemo 3392030c3d updates 2019-02-02 20:45:53 +05:30
Nemo 96ac1d4a6c Adding game configs to dotfiles, why not? 2019-01-29 00:29:04 +05:30
Nemo 4375964e19 steal from @harman28 2019-01-28 13:02:20 +05:30
Nemo f0c461be13 new dispay changes 2019-01-28 13:02:20 +05:30
Nemo 28fa1a6040 alias improvements 2019-01-26 20:59:16 +05:30
Nemo b98161f7a8 butter indentation 2019-01-26 20:21:19 +05:30
Nemo 1740a47014 home is where 2 monitors are 2019-01-25 02:48:01 +05:30
Nemo fdc9db8810 Updates 2019-01-25 01:40:35 +05:30
Nemo 294d642638 Adds bat 2018-12-18 12:25:53 +05:30
Nemo 6cd1dbf562 Updates 2018-12-17 23:59:30 +05:30
Nemo 0f290a3b08 Updates 2018-11-01 21:53:02 +05:30
Nemo 8eba098410 Adds gettoken 2018-09-20 17:40:06 +05:30
Nemo 00cdae020d Updates: August 2018-09-03 13:04:42 +05:30
Nemo 1f9b50e9e4 I can now take >1 screenshots in a minute 2018-07-25 18:11:52 +05:30
Nemo c6be9b147b move kubectl/minikube completion to the packages 2018-07-24 17:38:25 +05:30
Nemo 444f2858a2 Display changes (changed my seating in office) 2018-07-24 17:38:12 +05:30
Nemo 4bf9786182 Docker and kubernetes aliases 2018-06-22 18:52:55 +05:30
Nemo 666c25d509 Adds gpg socket systemd scripts 2018-05-02 20:54:40 +05:30
Nemo 40f7601d9f docker alias 2018-05-02 20:52:54 +05:30
Nemo 720ccb42b4 Smaller fonts 2018-04-30 15:42:54 +05:30
Nemo 16996af597 updates 2018-04-26 16:01:58 +05:30
Nemo 9ba1a7a4a3 font updates 2018-04-19 15:49:47 +05:30
Nemo 2c6bb95107 . 2018-04-16 23:16:05 +05:30
Nemo b7c57c5c78 Fixes 2018-04-09 15:15:12 +05:30
Nemo 5e4b955b23 updates 2018-03-28 00:10:33 +05:30
Nemo 10762c9fe2 config changes 2018-03-02 19:43:18 +05:30
Nemo 260744c051 mac doesn't have a printscreen key 2018-01-09 11:33:48 +05:30
Nemo 851fe7a8dc QT display fixes 2017-12-30 11:32:17 +05:30
Nemo bd4f379da8 Add more files 2017-12-30 11:32:10 +05:30
Nemo 89b202cb77 switch to connman 2017-12-30 11:31:36 +05:30
Nemo bf222385a3 update karn config 2017-12-30 11:30:51 +05:30
Nemo 28f4051805 bashrc cleanup, bring back karn 2017-12-30 11:30:34 +05:30
Nemo 871089acc8 Minor updates 2017-12-28 09:29:02 +05:30
Nemo 146b31d92c Big steps: getting rid of rvm and nvm 2017-12-24 00:33:00 +05:30
Nemo 7501ccfa40 Attempt at floating windows for firefox 2017-12-20 12:51:57 +05:30
Nemo d2bf479784 History changes in bashrc 2017-12-08 23:57:16 +05:30
Nemo 3bef14a194 Switching to firefox 2017-12-08 23:56:49 +05:30
Nemo 51d3dcf447 New lockscreen 2017-12-08 23:51:17 +05:30
Nemo a771bcec15 Mac updates 2017-11-28 17:34:04 +05:30
Nemo db71c1cb20 notes to self 2017-11-28 17:32:19 +05:30
Nemo 60769ffaba Updates from Mac 2017-11-28 17:32:19 +05:30
Nemo 0ca48b61ef compton improvements 2017-11-23 12:57:12 +05:30
Nemo 5c57b77e9e Updates 2017-11-22 15:25:50 +05:30
Nemo fc21c39aa3 Keep eDP1 disabled while at work 2017-11-12 19:41:26 +05:30
Nemo 550d406a90 Fixes gnome-keyring issues
- See https://github.com/owncloud/client/issues/3726
2017-10-26 13:18:02 +05:30
Nemo 71e05a5d22 git 🐸 2017-10-26 13:17:45 +05:30
Nemo 4d8ebaa7be Adds psd config 2017-10-26 12:03:00 +05:30
Nemo 7b8c36710a minor changes to git/ssh 2017-10-26 12:00:41 +05:30
Nemo 371660be26 lying gets you places 2017-10-26 11:59:52 +05:30
Nemo 0bc57c0966 dunst looks much better now 2017-10-26 11:57:29 +05:30
Nemo 44b65fafd9 display changes 2017-10-26 11:57:08 +05:30
Nemo 395a34ce0c node upgrade 2017-10-26 11:56:52 +05:30
Nemo 894e1fd219 Adds fuzzy fonts 2017-09-09 00:01:08 +05:30
Nemo 9978e051b8 [i3] Adds floating windows for pavucontrol and google-mm 2017-08-22 18:44:16 +05:30
Nemo 804909b085 Minor updates 2017-07-31 12:37:12 +05:30
Nemo d24f7fcc68 Updated i3status bar 2017-07-17 11:32:42 +05:30
Nemo 9afda3825a More snippy 2017-06-28 16:11:02 +05:30
Nemo 9f399d297c Dracula theme 2017-06-28 16:10:34 +05:30
Nemo 586a3649b0 Upgraded node 2017-06-28 16:10:19 +05:30
Nemo 4ec01eb675 Don't make vlc transparent 2017-06-28 16:09:57 +05:30
Nemo 5e75c75f8e Adds transfer.sh 2017-06-28 16:09:24 +05:30
Nemo aa7949ffaf committing from shauryaa.in 2017-06-07 17:34:45 +05:30
Nemo e2690d6b3c Image update 2017-06-07 17:34:39 +05:30
Nemo 367c5b24e6 Auto-gen files 2017-05-30 14:37:27 +05:30
Nemo d33a5d93ae Improve git diff 2017-05-30 14:37:09 +05:30
Nemo 1c8d92b515 Shifts to using sourcerer
- https://github.com/xero/sourcerer
2017-05-30 14:36:23 +05:30
Nemo 50d3bbeaec Keep using scientific smoothing 2017-05-30 14:35:59 +05:30
Nemo 9839c1afdf Slight wallpaper config changes 2017-05-30 14:35:48 +05:30
Nemo 1ebedef502 Minor changes to spectrum conf 2017-05-01 03:47:19 +05:30
Nemo b87a69926c Spectrum config changes 2017-04-23 02:39:24 +05:30
Nemo feefe1314f spectrum config 2017-04-13 00:51:18 +05:30
Nemo 88ff98d2fa font-manager added these, don't ask me 2017-04-13 00:51:00 +05:30
Nemo 39aaf79c5e Minor changes 2017-04-13 00:50:31 +05:30
Nemo 3805401787 disable bluetooth in i3status. not bothering to fix as planning to move to polybar 2017-03-03 13:25:45 +05:30
Nemo 9d11a3c953 xrandr causes issues if you turn off disconnected displays 2017-03-03 13:24:59 +05:30
Nemo 3123dda7e0 display changes
- blur compton, but fast
- change wallpapers
- drop bluetooth, causing issues for some reason
2017-03-03 13:22:13 +05:30
Nemo c00155be02 Helper text 2017-02-25 12:33:29 +05:30
Nemo 903153e7ef Set default font for mpv 2017-02-25 12:33:17 +05:30
Nemo 8b121f408d Commit as Nemo by default 2017-02-25 12:32:54 +05:30
Nemo 4ea4909109 New wallpapers 2017-02-25 12:32:49 +05:30
Nemo d83c73a082 Adds lastfm support in i3status 2017-02-02 13:28:37 +05:30
Nemo b15e918890 Random updates 2016-12-21 17:17:50 +05:30
Nemo 40339ae277 [git] Adds a gitconfig alias for fetch and rebase 2016-10-12 14:30:33 +05:30
Nemo 31c26d9e6e Minor changes 2016-10-03 17:16:31 +05:30
Nemo 88f4900e78 Fixes man pages, now colored 🌈 2016-08-16 17:03:01 +05:30
Nemo 7c72d1c1de [vim] Adds new theme 2016-08-08 12:31:29 +05:30
Nemo dad226f547 [display] Adds toggle option to my display script 2016-08-08 12:30:49 +05:30
Nemo 0229ee6589 [redshift] Darker screen during night 2016-08-08 12:30:36 +05:30
Nemo 01d8ea287e adds dunst config 2016-07-22 17:43:16 +05:30
392 changed files with 3572 additions and 35498 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ files/ranger/.config/ranger/history
files/ranger/.config/ranger/bookmarks
files/ranger/.config/ranger/tagged
files/mpv/.config/mpv/watch_later/
files/display/.config/nitrogen

6
.gitmodules vendored Normal file
View File

@ -0,0 +1,6 @@
[submodule "files/vim/.vim/bundle/dracula-theme"]
path = files/vim/.vim/bundle/dracula-theme
url = git@github.com:dracula/vim.git
[submodule "files/themes/.config/alacritty/themes"]
path = files/themes/.config/alacritty/themes
url = https://github.com/aaron-williamson/base16-alacritty.git

View File

@ -1,6 +1,20 @@
My dotfiles
===========
# My dotfiles
I'm using GNU Stow to manage my configuration for now.
See `bootstrap.sh` to see how stow works in this context.
See `bootstrap.sh` to see how stow works in this context.
## Notes for self:
Things that just dotfiles will miss out:
1. [scripts repo](https://github.captnemo.in/scripts)
1. `~/bin` directory, which I don't version control.
1. Wallpapers
1. nvm
1. rvm
1. npm preinstalled packages
## LICENSE
CC-BY-SA

View File

@ -0,0 +1,34 @@
[Main]
source = 1
# valid options: normal, desktop, screensize, workarea, fullscreen, maximize, keep_below, skip_taskbar, skip_pager
state = workarea
render = curves
[Bars]
padding = 0
scale = 1.4
rgba = 00B1FF
count = 64
[Offset]
left = 0
right = 500
top = 0
bottom = 236
[Smoothing]
# Valid modes: none, normal, scientific, waves
mode = waves
# default fall acceleration is 1% of maximum bar height per frame. more - faster bars fall speed
gravity = 1.2
# number of frames to delay fast bars raising. more - slower
slowpeak = 4
# agressiveness of waves mode. less - more agressive smoothing (1 is most agressive)
waves = 2
# agressiveness of scientific mode. less - more agressive smoothing (1 is most agressive)
scientific = 2

View File

@ -0,0 +1,44 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# You can override the directives in this file by creating files in
# /etc/systemd/user.conf.d/*.conf.
#
# See systemd-user.conf(5) for details
[Manager]
#LogLevel=info
#LogTarget=console
#LogColor=yes
#LogLocation=no
#SystemCallArchitectures=
#TimerSlackNSec=
#DefaultTimerAccuracySec=1min
#DefaultStandardOutput=inherit
#DefaultStandardError=inherit
#DefaultTimeoutStartSec=90s
#DefaultTimeoutStopSec=90s
#DefaultRestartSec=100ms
#DefaultStartLimitIntervalSec=10s
#DefaultStartLimitBurst=5
#DefaultEnvironment=
#DefaultLimitCPU=
#DefaultLimitFSIZE=
#DefaultLimitDATA=
#DefaultLimitSTACK=
#DefaultLimitCORE=
#DefaultLimitRSS=
#DefaultLimitNOFILE=
#DefaultLimitAS=
#DefaultLimitNPROC=
#DefaultLimitMEMLOCK=
#DefaultLimitLOCKS=
#DefaultLimitSIGPENDING=
#DefaultLimitMSGQUEUE=
#DefaultLimitNICE=
#DefaultLimitRTPRIO=
#DefaultLimitRTTIME=

View File

@ -0,0 +1 @@
/usr/lib/systemd/user/keybase.service

View File

@ -0,0 +1 @@
/usr/lib/systemd/user/rslsync.service

View File

@ -0,0 +1 @@
/home/nemo/.config/systemd/user/ssh-agent.service

View File

@ -0,0 +1,6 @@
[Unit]
Description=Timer for Profile-sync-daemon
[Timer]
OnUnitActiveSec=
OnUnitActiveSec=5m

View File

@ -0,0 +1 @@
/usr/lib/systemd/user/gpg-agent-extra.socket

View File

@ -5,13 +5,6 @@
<location>20,000 Leagues under the sea</location>
<admin>me@captnemo.in</admin>
<!-- IMPORTANT!
Especially for inexperienced users:
Start out by ONLY changing all passwords and restarting Icecast.
For detailed setup instructions please refer to the documentation.
It's also available here: http://icecast.org/docs/
-->
<limits>
<clients>50</clients>
<sources>2</sources>
@ -196,7 +189,7 @@
<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/home/nemo/logs/icecast</logdir>
<logdir>/home/nemo/logs</logdir>
<webroot>/home/nemo/projects/personal/icecast-web/</webroot>
<adminroot>/usr/share/icecast/admin</adminroot>
<pidfile>/tmp/icecast.pid</pidfile>
@ -220,8 +213,8 @@
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<accesslog>icecast-access.log</accesslog>
<errorlog>icecast-access.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->

View File

@ -6,35 +6,182 @@ pathadd() {
fi
}
# Read a gemfile contents
# https://stackoverflow.com/a/43298099
gemread() {
tar --to-stdout -xf "$1" data.tar.gz | tar -zt
}
pathadd '/home/nemo/bin'
pathadd '/home/nemo/projects/go/bin'
pathadd '/bin'
pathadd '/snap/bin'
pathadd /home/nemo/.local/share/junest/bin
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
function gemls(){
tar --to-stdout -xf "$1" data.tar.gz | tar -zt
}
alias adb.run='apktool build src/ -o patched.apk && java -jar ~/apps/uber-apk-signer-1.1.0.jar -a patched.apk && adb install -r -d patched-aligned-debugSigned.apk && adb shell monkey -p '$1' -v 1'
alias mk='microk8s.kubectl'
alias settings='env XDG_CURRENT_DESKTOP=GNOME gnome-control-center'
alias watch='watch '
alias xclip='xclip -selection c'
alias sl=ls
alias dynamodump='docker run bchew/dynamodump /usr/local/bin/dynamodump'
alias dh='du -d1 -h'
alias wine32='WINEARCH=win32 WINEPREFIX=~/win32 wine'
alias signal_update='podman run docker.io/captn3m0/signal-arch-builder'
alias kc='kapitan compile'
# https://tizardsbriefcase.com/1059/linux/remove-query-string-filename-wget
alias clean.filenames='for file in *; do mv "$file" "${file%%\?*}"; done'
alias dunst.pause='notify-send "DUNST_COMMAND_PAUSE"'
alias dunst.resume='notify-send "DUNST_COMMAND_RESUME"'
alias sp="docker exec -it steampipe steampipe "
alias steampipe.service="docker run \
-p 9193:9193 \
--name steampipe \
--mount type=bind,source=/home/nemo/.config/steampipe,target=/home/steampipe/.steampipe/config \
--mount type=volume,source=steampipe_data,target=/home/steampipe/.steampipe/db/12.1.0/data \
--mount type=volume,source=steampipe_internal,target=/home/steampipe/.steampipe/internal \
--mount type=volume,source=steampipe_logs,target=/home/steampipe/.steampipe/logs \
--mount type=volume,source=steampipe_plugins,target=/home/steampipe/.steampipe/plugins \
turbot/steampipe service start --foreground"
function aur.make() {
find . -maxdepth 1 -iregex '.*\.\(bz2\|tar\|zip\|deb\|xz\|part\|rpm\|gz\|zst\|AppImage\|pacman\|jar\)$' -delete
makepkg --printsrcinfo > .SRCINFO
makepkg -sric
}
# ... or force ignoredups and ignorespace
#metasploit, my own scripts, texlive
pathadd '/opt/framework-3.5.2/app/'
pathadd '/sbin'
pathadd '/home/nemo/projects/scripts/'
pathadd '/home/nemo/projects/ubuntu_packages/android-sdk-linux/tools'
pathadd '/opt/vagrant/bin'
pathadd "$HOME/.phpenv/bin"
PATH="$PATH:$HOME/apps/ec2/bin"
pathadd "$HOME/apps/ec2/bin"
pathadd "$HOME/.gem/ruby/3.0.0/bin"
# needs a kubectl upgrade
pathadd "$HOME/.krew/bin"
pathadd "$HOME/.local/bin"
source $HOME/.nvm/nvm.sh #node version manager
# slows shell for now.
source <(kubectl completion bash)
# Enable kubectl completion with k
complete -F __start_kubectl k
# Python virtualenv
export WORKON_HOME=~/.virtualenvs
source /usr/bin/virtualenvwrapper.sh
source /usr/share/doc/pkgfile/command-not-found.bash
# https://substrakt.com/journal/easy-peasy-composer-local-package-symlink-composer-link/
composer-link() {
jq '.repositories |= [{"type": "path", "url": "'$1'", "options": {"symlink": true}}] + . ' composer.json > composer.tmp.json && mv composer.tmp.json composer.json
packageName=$(jq -r '.name' $1/composer.json)
composer require $packageName @dev
}
composer-unlink() {
git checkout composer.json composer.lock
composer update
}
# These 2 methods change the color scheme for my:
# 1. Editor (sublime text)
# 2. Terminal (alacritty)
# 3. bat
# 4. Monitor brightness (only one of the monitors). See https://github.com/rockowitz/ddcutil/issues/140
# 5. Gtk theme
export ALACRITTY_COLOR_DIR=/home/nemo/projects/personal/dotfiles/files/themes/.config/alacritty/themes/colors
export BAT_THEME="Solarized (light)"
GTK_THEME_dark="NumixSolarizedDarkRed"
GTK_THEME_light="NumixSolarizedLightGreen"
BRIGHTNESS_dark=0
BRIGHTNESS_light=99
function colorchange() {
export BAT_THEME="Solarized ($1)"
echo "✔️ bat"
alacritty-colorscheme -C "$ALACRITTY_COLOR_DIR" apply "base16-solarized-$1.yml"
echo "✔️ alacritty"
gtk_theme="GTK_THEME_$1"
xfconf-query -c xsettings -p /Net/ThemeName -s "${!gtk_theme}"
echo "✔️ gtk"
# subl_settings="/home/nemo/.config/sublime-text-3/Packages/User/Preferences.sublime-settings"
# strip-json-comments "$subl_settings" | jq ".color_scheme=\"Packages/Solarized Color Scheme/Solarized ($1).sublime-color-scheme\"" > /tmp/sublime.json
# mv /tmp/sublime.json "$subl_settings"
# echo "✔️ sublime"
brightness="BRIGHTNESS_$1"
if [[ $(xrandr --listmonitors|grep 2560) ]]; then
ddcutil --model "LG ULTRAWIDE" setvcp 0x10 ${!brightness}
fi
echo "✔️ monitor"
}
alias dark="colorchange dark"
alias light="colorchange light"
# https://prefetch.net/blog/2020/07/14/decoding-json-web-tokens-jwts-from-the-linux-command-line/
# This puts them in bash history, so be careful
jwtd() {
if [[ -x $(command -v jq) ]]; then
jq -R 'split(".") | .[0],.[1] | @base64d | fromjson' <<< "${1}"
echo "Signature: $(echo "${1}" | awk -F'.' '{print $3}')"
fi
}
if [ -f /usr/sbin/virtualenvwrapper.sh ]; then
export WORKON_HOME=~/.virtualenvs
export VIRTUALENVWRAPPER_SCRIPT=/usr/sbin/virtualenvwrapper.sh
source /usr/sbin/virtualenvwrapper_lazy.sh
fi
alias sublime='/usr/bin/sublime-text'
alias subl3=subl
alias chrome='chromium-browser'
alias gittunnel='ssh mobile@10.42.43.2 -L 2000:github.com:22 -N'
alias gp='git push'
alias subtitles='subliminal -p addic7ed -l en -s -- $1'
alias charge='BUSNUM=003 DEVNUM="`lsusb -d 05ac:12a2 |cut -c16-18`" /home/nemo/projects/ubuntu_packages/ipad_charge/ipad_charge'
alias pu='phpunit'
alias ghpr='gh pull-request'
alias ssdr='sudo systemctl daemon-reload'
alias cat='bat'
alias fomu.setup='export PATH=/home/nemo/apps/fomu/bin:$PATH'
# Gets list of all packages from AUR sorted by Size
alias aur.list='expac -H M "%m\t%n" | sort -h > /tmp/expac.txt && pacman -Qqm > /tmp/aur.txt && grep --color=never -w -F -f /tmp/aur.txt /tmp/expac.txt'
# Same as above, but all packages (except AUR)
alias package.list='expac -sH M "%-30n %m" | sort -hk 2'
alias package.owns='pacman -F'
# Download size of all packages marked for upgrade
alias package.dlsize='expac -S -H M '%k\t%n' $(pacman -Qqu) | sort -sh'
# To list the packages marked for upgrade with their download size
alias upgrade.size='pacman -Quq|xargs expac -SH M "%k\t%n" | sort -sh'
# https://github.com/chef/inspec
function inspec { podman run -it --rm -v $(pwd):/share chef/inspec $@; }
# Most common invocation: terraform.docs markdown --html=false --anchor=false --show "outputs"
function terraform.docs { podman run -it --rm -u $(id -u) -v $(pwd):/src quay.io/terraform-docs/terraform-docs:0.14.1 $@ /src; }
# Run as pingen N where N = Number of digits in PIN
function pingen { pwgen -1Avs -r=qwertyuiopasdfghjklzxcvbnm "$1"; }
# Sort a file in-place
function sortinplace { sort -o "$1" "$1"; }
function download_as_pdf {
rdrview --template "title,body" "$1" -H | tidy | pandoc --from html --pdf-engine=xelatex -o "$2"
}
alias kapitan='podman run -t --rm -u $(id -u) -v $(pwd):/src:delegated deepmind/kapitan'
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
@ -57,43 +204,92 @@ if [[ -x /usr/bin/dircolors ]]; then
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
export TERM=xterm-256color
# Drone related stuff
export DRONE_SERVER=https://drone.razorpay.com
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
if [[ -f /etc/bash_completion ]] && ! shopt -oq posix; then
. /etc/bash_completion
fi
if [[ -f /etc/bash_completion ]] && ! shopt -oq posix; then
. /etc/bash_completion
fi
function sympathy() { chromium-browser "chrome-extension://ilcgkjlgdddhjpbchiikkainlfiamkog/main.html#`pwd`/$1" ;}
function smallmkv() { ffmpeg -i "$1" -b 1000k -acodec libmp3lame -vcodec libx264 -ar 44100 -ab 56k -ac 2 -vpre fast -crf 24 \ "$1.mkv" ;}
export LC_ALL=en_IN.utf8
export LANG=en_IN.utf8
#export LC_ALL="C" ##For the weird characters in man pages
# k8s
alias k='kubectl'
alias kontext='kubectl config use-context'
alias kgpa='kubectl get pods --all-namespaces'
alias kgp='kubectl get pods -o wide'
alias kgpn='kubectl get pods -o wide -n '
alias kno='kubectl get nodes'
alias rake='spring rake'
alias rails='spring rails'
alias rt='ruby -I"lib:test"' # rake test shortcut to run test for one script
# https://twitter.com/indradhanush92/status/1003493096158420992
# kubectl and minikube completion is moved to /etc/bash_completion.d/
#My latest prompt
function _update_ps1() {
export PS1="$(~/projects/ubuntu_packages/powerline-shell/powerline-shell.py $? 2> /dev/null)"
function kpssh() { kubectl exec -it $1 -n $2 sh ; }
function kcssh() { kubectl exec -it $1 -n $2 -c $3 sh ; }
function klog() { kubetail $1 -n $1 ; }
function kne() {
kubectl get events -n $1 --sort-by='.metadata.creationTimestamp' \
-o 'go-template={{range .items}}{{.involvedObject.name}}{{"\t"}}{{.involvedObject.kind}}{{"\t"}}{{.message}}{{"\t"}}{{.reason}}{{"\t"}}{{.type}}{{"\t"}}{{.firstTimestamp}}{{"\n"}}{{end}}'
}
export UPDATE_PS1="_update_ps1"
export PROMPT_COMMAND="history -a; history -c; history -r; $UPDATE_PS1"
###b-egin-npm-completion-###
#
# npm command completion script
#
# Installation: npm completion >> ~/.bashrc (or ~/.zshrc)
# Or, maybe: npm completion > /usr/local/etc/bash_completion.d/npm
#
# Export a secret automatically with the filename on pass
function gettoken() {
export "`basename $1`"="$(pass show $1)"
}
# Get inotify listener counts
function inotifytop() {
for foo in /proc/*/fd/*; do readlink -f $foo; done |grep inotify |cut -d/ -f3 |xargs -I '{}' -- ps --no-headers -o '%p %U %a' -p '{}' |uniq -c |sort -n
}
## COMPLETION SCRIPTS
if [[ -f /etc/bash_completion ]] && ! shopt -oq posix; then
. /etc/bash_completion
fi
if [[ -f /usr/share/bash-completion/completions/pipenv ]] && ! shopt -oq posix; then
. /usr/share/bash-completion/completions/pipenv
fi
if [[ -f /usr/share/bash-completion/completions/pass ]] && ! shopt -oq posix; then
. /usr/share/bash-completion/completions/pass
fi
if [[ -f /usr/share/bash-completion/completions/npm ]] && ! shopt -oq posix; then
. /usr/share/bash-completion/completions/npm
fi
if [[ -f /usr/share/bash-completion/completions/poetry ]] && ! shopt -oq posix; then
. /usr/share/bash-completion/completions/poetry
fi
if [[ -f /usr/share/doc/pkgfile/command-not-found.bash ]] && ! shopt -oq posix; then
. /usr/share/doc/pkgfile/command-not-found.bash
fi
if [[ -f /usr/share/git/completion/git-completion.bash ]] && ! shopt -oq posix; then
. /usr/share/git/completion/git-completion.bash
fi
if [[ -f /etc/bash_completion.d/pdm.bash-completion ]] && ! shopt -oq posix; then
. /etc/bash_completion.d/pdm.bash-completion
fi
function smallmkv() { ffmpeg -i "$1" -b 1000k -acodec libmp3lame -vcodec libx264 -ar 44100 -ab 56k -ac 2 -vpre fast -crf 24 \ "$1.mkv" ;}
export LC_ALL=en_US.utf8
export LC_ALL=en_US.utf8
export LANG=C
# Checkout an older commit
function gco_date() {
git checkout `git rev-list -n 1 --before="$1" master`
}
function make_aoc() {
pdftk $1 cat 1 output 1-$1
pdftk 1-$1 aoc.pdf cat output aoc-$1
}
COMP_WORDBREAKS=${COMP_WORDBREAKS/=/}
COMP_WORDBREAKS=${COMP_WORDBREAKS/@/}
@ -104,52 +300,45 @@ export COMP_WORDBREAKS
export BLOCKSIZE=K
# export CDPATH=.:~:~/src:/etc
# export DISPLAY=:79
export EDITOR='nvim'
# export ftp_proxy=${MY_PROXY}
# export GPG_TTY='tty' # gpg-agent says it needs this
# export GREP_OPTIONS='-D skip --binary-files=without-match --ignore-case' # most commonly used grep options
export HOSTFILE=$HOME/.hosts # put list of remote hosts in ~/.hosts ...
# export http_proxy=${MY_PROXY}
# export https_proxy=${MY_PROXY}
export EDITOR='vim'
export GREP_OPTIONS='-D skip --binary-files=without-match --ignore-case'
# put list of remote hosts in ~/.hosts ...
export HOSTFILE=$HOME/.hosts
# export IGNOREEOF=1 # prevent CTRL-D from immediately logging out
# export INPUTRC=/etc/inputrc # it's possible that this will make bash find my delete key (and everything else)((but i don't think it did))
# export INPUTRC=$HOME/.inputrc # type in whatever and press Page Up key and bash automatically fetches last command that starts with whatever and completes the command for you (requires '$HOME/.inputrc' with these lines: #Page up/page down && "\e[5~": history-search-backward && "\e[6~": history-search-forward)
# export LC_COLLATE="en_CA.utf8" # change sorting methods [a-Z] instead of [A-Z]
export LESSCHARSET='latin1'
export LESS='-i -N -w -z-4 -g -e -M -X -F -R -P%t?f%f \'
export LC_COLLATE="en_US.utf8" # change sorting methods [a-Z] instead of [A-Z]
export LESSCHARSET="UTF-8"
export LESS='-i -n -w -z-4 -g -e -M -X -F -Q -R -P%t?f%f \'
# export LESSOPEN="|lesspipe.sh %s"; export LESSOPEN
export LESSOPEN='|/usr/bin/lesspipe.sh %s 2>&-' # use this if lesspipe.sh exists
# export LESS="-QR" # tell less not to beep and also display colours
# export LESS='-R'
# export LESS_TERMCAP_mb=$'\E[01;31m' # less colors for Man pages # begin blinking
# export LESS_TERMCAP_md=$'\E[01;38;5;74m' # less colors for Man pages # begin bold
# export LESS_TERMCAP_me=$'\E[0m' # less colors for Man pages # end mode
# export LESS_TERMCAP_se=$'\E[0m' # less colors for Man pages # end standout-mode
# export LESS_TERMCAP_so=$'\E[38;5;246m' # less colors for Man pages # begin standout-mode - info box
# export LESS_TERMCAP_ue=$'\E[0m' # less colors for Man pages # end underline
# export LESS_TERMCAP_us=$'\E[04;38;5;146m' # less colors for Man pages # begin underline
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # less colors for Man pages # begin bold
export LESS_TERMCAP_me=$'\E[0m' # less colors for Man pages # end mode
export LESS_TERMCAP_se=$'\E[0m' # less colors for Man pages # end standout-mode
export LESS_TERMCAP_so=$'\E[38;5;246m' # less colors for Man pages # begin standout-mode - info box
export LESS_TERMCAP_ue=$'\E[0m' # less colors for Man pages # end underline
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # less colors for Man pages # begin underline
# export MY_PROXY='http://YOUR_USERNAME:YOUR_PASSWORD@PROXY_IP:PROXY_PORT/'
# export OOO_FORCE_DESKTOP=gnome # openoffice preferences
export PAGER='less -e'
# export PILOTRATE=57600 # make pilot-xfer go faster than 9600
export TERM='xterm'
export TIMEFORMAT=$'\nreal %3R\tuser %3U\tsys %3S\tpcpu %P\n'
# export USER_CLIENT=deluge
# export USER_DPRT=22218
# export USER_OPRT=47426
# export USER_VPRT=79
# export USER_WPRT=30818
#export VISUAL='nano'
# export wpsetters=feh
# ${file%\.[^.]*} # to remove filename extensions in bash
# fortune -a # fortunes at each new shell
# mesg n #
set -b # causes output from background processes to be output right away, not on wait for next primary prompt
# set bell-style visible # I hate noise
#set completion-ignore-case on # complete things that have been typed in the wrong case
# Disallow messages from other users
mesg n
# causes output from background processes to be output right away, not on wait for next primary prompt
set -b
set bell-style visible # I hate noise
set completion-ignore-case on # complete things that have been typed in the wrong case
# set -o ignoreeof # can't c-d out of shell
# set -o noclobber # disallow > to work on files that already exist (prevents catting over file)
set -o notify # notify when jobs running in background terminate
# notify when jobs running in background terminate
set -o notify
# set -o nounset # attempt to use undefined variable outputs error message and forces exit (messes up completion if enabled)
# set +o nounset # otherwise some completions will fail
#setopt autopushd pushdminus pushdsilent pushdtohome
@ -157,7 +346,6 @@ set -o notify # notify when jobs running in background terminate
# setopt extendedglob
# setopt hist_verify # verify when using !
# setopt nocheckjobs # don't complain about background jobs on e
# setopt no_clobber # don't overwrite files when redirect
# setopt nohup # don't kill bg jobs when tty quits
# setopt printexitvalue # print exit value from jobs
# setopt share_history
@ -169,10 +357,10 @@ shopt -s cdspell # this will correct minor spelling errors in a cd command
shopt -s checkhash
shopt -s checkwinsize # update windows size on command
shopt -s cmdhist # save multi-line commands in history as single line
# shopt -s dotglob # files beginning with . to be returned in the results of path-name expansion
shopt -s dotglob # files beginning with . to be returned in the results of path-name expansion
# shopt -s expand aliases # expand aliases
shopt -s extglob # necessary for bash completion (programmable completion)
# shopt -s globstar # enables the ** globbing operator
shopt -s globstar # enables the ** globbing operator
shopt -s histappend histreedit histverify
shopt -s hostcomplete # attempt hostname expansion when @ is at the beginning of a word
# shopt -s huponexit
@ -183,15 +371,15 @@ shopt -s no_empty_cmd_completion # no empty completion (bash>=2.04 only)
# shopt -s nullglob dotglob
shopt -s sourcepath
# shopt -u cmdhist # do not treat multiple line commands as a single entry
# shopt -u force_fignore # expand to complete an ignored word, if no other words match.
shopt -u force_fignore # expand to complete an ignored word, if no other words match.
# shopt -u mailwarn
# shopt -u sourcepath
# stty -ixon # disable XON/XOFF flow control (^s/^q)
stty start undef
stty stop undef
# stty stop '' # use C-s to search forward through history (do not block output)
# ulimit -c unlimited # let me have core dumps
ulimit -S -c 0 # (core file size) don't want any coredumps
stty stop '' # use C-s to search forward through history (do not block output)
ulimit -c unlimited # let me have core dumps
# ulimit -S -c 0 # (core file size) don't want any coredumps
# ulimit -S -f 1024 # open files
# ulimit -S -s 8192 # stack size
# ulimit -S -u 256 # max user processes
@ -202,21 +390,16 @@ ulimit -S -c 0 # (core file size) don't want any coredumps
# unsetopt bgnice # don't nice bg command
##################################################
# To create a ZIP archive of a file or folder #
##################################################
# To create a ZIP archive of a file or folder
function zipf() { zip -r "$1".zip "$1" ; }
### Custom Functions For adding and fetching covers from a pdf ###
# Custom Functions For adding and fetching covers from a pdf
function addcover() { convert "$2" /tmp/cover.pdf; pdftk /tmp/cover.pdf "$1" cat output /tmp/final.pdf;mv /tmp/final.pdf "$1"; }
function getcover() { pdftk "$1" cat 1 output /tmp/cover.pdf; convert /tmp/cover.pdf cover.jpg;}
##################################################
# Directory shortcuts #
##################################################
#######################
# Directory shortcuts #
#######################
alias ..='cd ..'
alias ...='cd ../..'
@ -265,79 +448,103 @@ alias lt='ls -ltr' # sort by date, most recent last
alias lu='ls -ltur' # sort by and show access time, most recent last
alias lx='ls -lXB' # sort by extension
alias sss='sudo systemctl start'
alias ssh="cat ~/.ssh/config.d/* > ~/.ssh/config; ssh"
alias sse='sudo systemctl enable'
alias ssd='sudo systemctl disable'
alias ssS='sudo systemctl stop'
alias ssh="cat ~/.ssh/config.d/p* > ~/.ssh/config; ssh"
alias ssr='sudo systemctl restart'
alias cda='composer dump-autoload'
#### FASD
eval "$(fasd --init auto)"
alias a='fasd -a' # any
alias s='fasd -si' # show / search / select
alias d='fasd -d' # directory
alias f='fasd -f' # file
alias sd='fasd -sid' # interactive directory selection
alias sf='fasd -sif' # interactive file selection
alias z='fasd_cd -d' # cd, same functionality as j in autojump
alias zz='fasd_cd -d -i' # cd with interactive selection
#### autojump using z
alias z='j' # cd, same functionality as j in autojump
source /etc/profile.d/autojump.bash
# Docker
# docker run image
alias dri='docker run --volume /home/nemo/tmp:/data --tty --rm --interactive --entrypoint /bin/sh '
# Better caching (among other things)
# https://github.com/moby/moby/issues/15717
export DOCKER_BUILDKIT=1
# docker run image, but with current directory mounted as /current
# Do not run this on untrusted images
alias dri_cwd='docker run --volume `pwd`:/current --volume /home/nemo/tmp:/data --tty --rm --interactive --entrypoint /bin/sh '
# container-top
alias ctop='docker run --name ctop -it --rm -v /var/run/docker.sock:/var/run/docker.sock:ro quay.io/vektorlab/ctop '
# Run hadolint
alias dockerlint='LC_ALL=C hadolint'
# https://github.com/uber/makisu
function makisu_build() {
makisu_version=${MAKISU_VERSION:-v0.1.10}
cd ${@: -1}
docker run -i --rm --net host \
-v /var/run/docker.sock:/docker.sock \
-e DOCKER_HOST=unix:///docker.sock \
-v $(pwd):/makisu-context \
-v /tmp/makisu-storage:/makisu-storage \
gcr.io/makisu-project/makisu:$makisu_version build \
--commit=explicit \
--modifyfs=true \
--load \
${@:1:${#@}-1} /makisu-context
cd -
}
# Terraform
export TF_PLUGIN_CACHE_DIR="$HOME/.terraform.d/plugin-cache"
alias t=terraform
alias tp='terraform plan'
alias tpt='terraform plan --target '
alias ta='terraform apply'
alias tat='terraform apply --target '
alias tfa='terraform apply --auto-approve'
alias tfat='terraform apply --auto-approve --target '
alias tfit='terraform init'
##### History Shenanigans
export HISTCONTROL=ignoredups:erasedups # for 'ignoreboth': ignore duplicates and /^\s/
export HISTCONTROL=ignorespace:ignoredups:erasedups # for 'ignoreboth': ignore duplicates and /^\s/
export HISTFILE='/home/nemo/.bash_history'
# export HISTFILESIZE=10000 # increase or decrease the size of the history to '10,000'
# export HISTFILESIZE=${HISTSIZE} # bash will remember 'N' commands
#export HISTIGNORE='&:bg:fg:ll:h'
#export HISTIGNORE='${HISTIGNORE:+$HISTIGNORE:}la:ll:lah:lat:;a:-:fg:bg:j:sync:esu:rma:rmp:fol:pfol'
#export HISTIGNORE="&:ls:ll:la:l.:pwd:exit:clear"
#export HISTIGNORE='pwd:cd:ls:ls -l:' # ignore commands given
export HISTIGNORE='&:bg:fg:ll:h'
export HISTIGNORE='${HISTIGNORE:+$HISTIGNORE:}la:ll:lah:lat:;a:-:fg:bg:j:sync:esu:rma:rmp:fol:pfol'
export HISTIGNORE="&:ls:ll:la:l.:pwd:exit:clear"
export HISTIGNORE='pwd:cd:ls:ls -l:' # ignore commands given
#export HISTSIZE=10000 # increase or decrease the size of the history to '10,000'
# export HISTTIMEFORMAT='| %d/%m/%y %T | ' # make 'History' Show The Date For Each Command
export HISTTIMEFORMAT='| %d/%m/%y %T | ' # make 'History' Show The Date For Each Command
# export HISTTIMEFORMAT='%F %T ' # adds date and time to history
#export HISTTIMEFORMAT='%H:%M > '
# export HISTTIMEFORMAT='%s' # the beloved Second of Our Linux
# export HISTTIMEFORMAT='%Y-%b-%d::%Hh:%Mm:%Ss '
#export HISTTIMEFORMAT='%Y-%m-%d_%H:%M:%S_%a ' # makes history display in YYYY-MM-DD_HH:MM:SS_3CharWeekdaySpaceSpace format
# unset HISTFILESIZE # infinite History
# unset HISTSIZE # infinite History
unset HISTFILESIZE # infinite History
unset HISTSIZE # infinite History
# append to the history file, don't overwrite it
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000000
HISTFILESIZE=1000000
shopt -s histappend
### Added by the Heroku Toolbelt
pathadd '/usr/local/heroku/bin'
eval `keychain --eval --agents ssh id_rsa`
#Importing phpenv
# eval "$(phpenv init -)"
# Don't use this for sensitive files
transfer() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }
#UTF-8 Alias
export LC_ALL=en_IN.UTF-8
alias suidchromium='sudo chown root:root chrome_sandbox && sudo chmod 4755 chrome_sandbox && export CHROME_DEVEL_SANDBOX="$PWD/chrome_sandbox"'
export JAVA_HOME=/usr/lib/jvm/default-runtime
export GROOVY_HOME=/home/nemo/apps/groovy
pathadd "$GROOVY_HOME/bin"
export EC2_HOME=/home/nemo/apps/ec2
# iOS Jailbreak development
export THEOS=/home/nemo/apps/theos
export THEOS_DEVICE_IP=192.168.1.101
export THEOS_DEVICE_PORT=22
# added by travis gem
[ -f /home/nemo/.travis/travis.sh ] && source /home/nemo/.travis/travis.sh
#[[ -s "/home/nemo/.gvm/scripts/gvm" ]] && source "/home/nemo/.gvm/scripts/gvm"
#PERL_MB_OPT="--install_base \"/home/nemo/perl5\""; export PERL_MB_OPT;
#PERL_MM_OPT="INSTALL_BASE=/home/nemo/perl5"; export PERL_MM_OPT;
#eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
# Ruby version manager, must be loaded before
# scm_breeze
source "$HOME/.rvm/scripts/rvm"
# Manage multiple Git identities
# karn https://github.com/prydonius/karn
if which karn > /dev/null; then eval "$(karn init)"; fi
if command -v karn > /dev/null; then eval "$(karn init)"; fi
# Disable beeps
xset -b
@ -360,20 +567,74 @@ xset -b
# }
# Overrides the display provided by imagemagick
function display() {
`cd ~/.screenlayout && sh $1.sh`
# Write the current layout
echo $1 > ~/.screenlayout/current
if [[ -e "~/Pictures/$1.jpg" ]]; then
(cd ~/Pictures && cp "$1.jpg" "./xin_1.jpg")
fi
nitrogen --restore
# http://boredzo.org/blog/archives/2016-08-15/colorized-man-pages-understood-and-customized
# colorized man pages
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LC_ALL=C \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \
MANWIDTH=$(expr $COLUMNS - 4) \
man "$@"
}
#SCM Breeze
[ -s "/home/nemo/.scm_breeze/scm_breeze.sh" ] && source "/home/nemo/.scm_breeze/scm_breeze.sh"
function mkcd() {
mkdir --parents "$1"
cd "$1"
}
# To allow global package installations for the current user
PATH="$HOME/.node_modules/bin:$PATH"
export npm_config_prefix=~/.node_modules
# Stolen from @ThatHarmanSingh
function sprint() {
# Set time format to unix so we can subtract
HISTTIMEFORMAT='%s ' history |
# History returns way more than needed
tail -n 4000 |
# Grep for git commits (after timestamps)
grep -E '^\d+\s+\d+\s+gc' |
# Max 15 days ago
awk -v now=$(date +%s) '(now - $2) < 15*24*60*60' |
# Cut out the timestamps for uniq check
cut -d ' ' -f 4- |
# To handle multiple commit-pull-reset-commit cycles
uniq
}
# https://starship.rs/advanced-config/#change-window-title
function starship_set_win_title(){
echo -ne "\033]0; $PWD \007"
}
starship_precmd_user_func="starship_set_win_title"
eval "$(starship init bash)"
[ -s "/usr/share/scm_breeze/scm_breeze.sh" ] && source "/usr/share/scm_breeze/scm_breeze.sh"
function ytdl.album() {
cd $(mktemp -d)
youtube-dl --quiet -f "bestaudio[ext=m4a]" --output "audio.m4a" "$1"
youtube-cue --audio-file "audio.m4a" "$1" tracks.cue
m4acut -C tracks.cue "audio.m4a" && \
trash audio.m4a && \
beet import -map .
}
function gaanadl.album() {
cd $(mktemp -d)
youtube-dl --rm-cache-dir --no-cache-dir --quiet --autonumber-start 1 --add-metadata -o "%(autonumber)d - %(title)s.m4a" "$1"
beet import -map .
cd -
}
PATH="/home/nemo/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/home/nemo/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/home/nemo/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;

View File

@ -0,0 +1,47 @@
add_newline = false
format = """\
$username\
$hostname\
$kubernetes\
$directory\
$git_branch\
$git_commit\
$git_state\
$git_status\
$docker_context\
$package\
$elixir\
$golang\
$nodejs\
$php\
$python\
$ruby\
$rust\
$terraform\
$aws\
$env_var\
$crystal\
$cmd_duration\
$custom\
$line_break\
$memory_usage\
$jobs\
$time\
$character"""
[time]
disabled = false
time_format = "[%d %b | %H:%M]"
utc_time_offset = "+5.5"
[jobs]
symbol = "+ "
threshold = 2
[memory_usage]
disabled = false
[cmd_duration]
min_time = 500
disabled = false

View File

@ -8,12 +8,11 @@
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:$HOME/bin:/sbin:$HOME/projects/scripts/:$HOME/.node_modules/bin:$HOME/.gem/ruby/2.5.0/bin:/home/nemo/.local/bin:$HOME/bin:/bin"
export npm_config_prefix=~/.node_modules
export GOPATH="/home/nemo/projects/go"
PATH="/usr/sbin:/usr/games:$PATH"
export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/nemo/bin:/sbin:/home/nemo/projects/scripts/:/home/nemo/.nvm/v5.0.1/bin"
# Make sure qt5-styleplugins is installed for this to work
# https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications#Theme_engines
export QT_QPA_PLATFORMTHEME=gtk2

View File

@ -0,0 +1,22 @@
# This is `bat`s configuration file. Each line either contains a comment or
# a command-line option that you want to pass to `bat` by default. You can
# run `bat --help` to get a list of all possible configuration options.
# The theme is set by the light/dark functions
# in bashrc
# Show line numbers, Git modifications and file header (but no grid)
# --style="changes,header"
# Use italic text on the terminal (not supported on all terminals)
# --italic-text=always
# Add mouse scrolling support in less (does not work with older
# versions of "less")
--pager="less -FR"
# Use C++ syntax (instead of C) for .h header files
--map-syntax h:cpp
# Use "gitignore" highlighting for ".ignore" files
--map-syntax .ignore:.gitignore

View File

@ -4,4 +4,5 @@ command-history
search-history
*.pl
now-playing.txt
resume
resume
playlists

View File

@ -31,5 +31,5 @@ bind -f common mouse_scroll_up win-up
set lib_sort=albumartist album discnumber tracknumber title filename
set status_display_program=~/projects/scripts/cmus-current-track.sh
set output_plugin=alsa
set output_plugin=pulse
set softvol=true

2
files/dev/.config/composer/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
auth.json
vendor/

View File

@ -0,0 +1 @@
Deny from all

View File

@ -0,0 +1,6 @@
{
"require": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
"phpcompatibility/php-compatibility": "^9.3"
}
}

207
files/dev/.config/composer/composer.lock generated Normal file
View File

@ -0,0 +1,207 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "27770b082235d40e3f8879ce2ee76de1",
"packages": [
{
"name": "dealerdirect/phpcodesniffer-composer-installer",
"version": "v0.7.1",
"source": {
"type": "git",
"url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git",
"reference": "fe390591e0241955f22eb9ba327d137e501c771c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/fe390591e0241955f22eb9ba327d137e501c771c",
"reference": "fe390591e0241955f22eb9ba327d137e501c771c",
"shasum": ""
},
"require": {
"composer-plugin-api": "^1.0 || ^2.0",
"php": ">=5.3",
"squizlabs/php_codesniffer": "^2.0 || ^3.0 || ^4.0"
},
"require-dev": {
"composer/composer": "*",
"phpcompatibility/php-compatibility": "^9.0",
"sensiolabs/security-checker": "^4.1.0"
},
"type": "composer-plugin",
"extra": {
"class": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin"
},
"autoload": {
"psr-4": {
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Franck Nijhof",
"email": "franck.nijhof@dealerdirect.com",
"homepage": "http://www.frenck.nl",
"role": "Developer / IT Manager"
}
],
"description": "PHP_CodeSniffer Standards Composer Installer Plugin",
"homepage": "http://www.dealerdirect.com",
"keywords": [
"PHPCodeSniffer",
"PHP_CodeSniffer",
"code quality",
"codesniffer",
"composer",
"installer",
"phpcs",
"plugin",
"qa",
"quality",
"standard",
"standards",
"style guide",
"stylecheck",
"tests"
],
"support": {
"issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues",
"source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer"
},
"time": "2020-12-07T18:04:37+00:00"
},
{
"name": "phpcompatibility/php-compatibility",
"version": "9.3.5",
"source": {
"type": "git",
"url": "https://github.com/PHPCompatibility/PHPCompatibility.git",
"reference": "9fb324479acf6f39452e0655d2429cc0d3914243"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243",
"reference": "9fb324479acf6f39452e0655d2429cc0d3914243",
"shasum": ""
},
"require": {
"php": ">=5.3",
"squizlabs/php_codesniffer": "^2.3 || ^3.0.2"
},
"conflict": {
"squizlabs/php_codesniffer": "2.6.2"
},
"require-dev": {
"phpunit/phpunit": "~4.5 || ^5.0 || ^6.0 || ^7.0"
},
"suggest": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHPCS 'installed_paths' automatically.",
"roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
},
"type": "phpcodesniffer-standard",
"notification-url": "https://packagist.org/downloads/",
"license": [
"LGPL-3.0-or-later"
],
"authors": [
{
"name": "Wim Godden",
"homepage": "https://github.com/wimg",
"role": "lead"
},
{
"name": "Juliette Reinders Folmer",
"homepage": "https://github.com/jrfnl",
"role": "lead"
},
{
"name": "Contributors",
"homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors"
}
],
"description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.",
"homepage": "http://techblog.wimgodden.be/tag/codesniffer/",
"keywords": [
"compatibility",
"phpcs",
"standards"
],
"support": {
"issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues",
"source": "https://github.com/PHPCompatibility/PHPCompatibility"
},
"time": "2019-12-27T09:44:58+00:00"
},
{
"name": "squizlabs/php_codesniffer",
"version": "3.6.0",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ffced0d2c8fa8e6cdc4d695a743271fab6c38625",
"reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625",
"shasum": ""
},
"require": {
"ext-simplexml": "*",
"ext-tokenizer": "*",
"ext-xmlwriter": "*",
"php": ">=5.4.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
},
"bin": [
"bin/phpcs",
"bin/phpcbf"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.x-dev"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Greg Sherwood",
"role": "lead"
}
],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
"homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
"keywords": [
"phpcs",
"standards"
],
"support": {
"issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
"source": "https://github.com/squizlabs/PHP_CodeSniffer",
"wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
},
"time": "2021-04-09T00:54:41+00:00"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.1.0"
}

3
files/dev/.docker/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.buildNodeID
buildx
.token_seed*

View File

@ -0,0 +1,2 @@
# Ignore this, but keep the name so I remember to install it
docker-scan

View File

@ -0,0 +1,10 @@
{
"auths": {
"c.rzp.io": {},
"ghcr.io": {},
"harbor.razorpay.com": {},
"https://index.docker.io/v1/": {},
"quay.io": {}
},
"credsStore": "pass"
}

1
files/dev/.docker/scan/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
tokens.json

View File

@ -0,0 +1 @@
{"path":"","optin":true}

View File

@ -0,0 +1,19 @@
output DP1
off
output DP2
off
output HDMI2
off
output VIRTUAL1
off
output eDP1
gamma 1.0:1.0:0.909
mode 1368x768
pos 0x0
primary
rate 59.88
output HDMI1
gamma 1.0:1.0:0.909
mode 1360x768
pos 0x0
rate 60.37

View File

@ -0,0 +1,2 @@
HDMI1 00ffffffffffff007fff00900f0000000112010380a05a780a01c1a057479827124c4c21080031404540614081800101010101010101982150b051001b304070360040846300001e4c1d007251d01e206e28550040846300001e000000fc004c4344545631360a2020202020000000fd00303e0e440f000a2020202020200199020323704f01020304050607101112131415161f230907078301000066030c00200080011d80d0721c1620102c258040846300009e011d8018711c1620582c2500408463000098011d00bc52d01e20b828554040846300001e023a80d072382d40102c458040846300001e023a801871382d40582c450040846300001e0000f8
eDP1 00ffffffffffff000610f09c0000000011160104951d127802ef05975754922722505400000001010101010101010101010101010101b922a0a050841a30302036001eb300000018000000100000000000000000000000000000000000fe004c534e31333342543031413032000000fc00436f6c6f72204c43440a2020200009

View File

@ -0,0 +1,19 @@
output DP1
off
output DP2
off
output HDMI2
off
output VIRTUAL1
off
output eDP1
gamma 1.0:1.0:0.909
mode 1368x768
pos 0x0
primary
rate 59.88
output HDMI1
gamma 1.0:1.0:0.909
mode 1366x768
pos 2x0
rate 60.00

View File

@ -0,0 +1,2 @@
HDMI1 00ffffffffffff000d0430000100000001170103808b4e782a501fa359499724bb4f53210800818081c08100d1c0617c81fc01010101023a801871382d40582c450072105300001e662150b051001b304070360072105300001e000000fc00434855440a2020202020202020000000fd00174c0f501e000a202020202020019202032ef25101020304050790121314169f202206111523091707830100006f030c002000b83c20006201020300001622569e510031303e90a500721053000018023a80d072382d40102c458072105300001e023a801871382d405828450072105300001e0e1f008051001e305080370072105300001c000000000000000000e5
eDP1 00ffffffffffff000610f09c0000000011160104951d127802ef05975754922722505400000001010101010101010101010101010101b922a0a050841a30302036001eb300000018000000100000000000000000000000000000000000fe004c534e31333342543031413032000000fc00436f6c6f72204c43440a2020200009

View File

@ -0,0 +1,17 @@
output HDMI1
off
output VIRTUAL1
off
output DP2
crtc 1
gamma 1.0:1.0:0.909
mode 1920x1080
pos 0x0
rate 60.00
output DP1
crtc 0
gamma 1.0:1.0:0.909
mode 2560x1080
pos 1920x0
primary
rate 60.00

View File

@ -0,0 +1,2 @@
DP1 00ffffffffffff001e6df1594a940700081c010380431c78eaca95a6554ea1260f5054a54b80714f818081c0a9c0b3000101010101017e4800e0a0381f4040403a00a11c21000018023a801871382d40582c4500a11c2100001e000000fc004c4720554c545241574944450a000000fd00384b1e5a18000a20202020202001ac02031cf1499004031412051f0113230907078301000065030c001000023a801871382d40582c450056512100001e011d8018711c1620582c250056512100009e011d007251d01e206e28550056512100001e8c0ad08a20e02d10103e9600565121000018000000ff003830384e545954454c3731340a00000000000000000077
DP2 00ffffffffffff004c2d2c0d42335030201c010380341d782a5295a556549d250e5054bb8c00b30081c0810081809500a9c001010101023a801871382d40582c450009252100001e000000fd0032481e5111000a202020202020000000fc00433234463339300a2020202020000000ff004854514b3830313635300a2020017b02031af14690041f131313230904078301000066030c00100080011d00bc52d01e20b828554009252100001e011d007251d01e206e285500092521000018011d007251d01e206e285500092521000018000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060

View File

@ -0,0 +1,19 @@
output DP2
off
output HDMI1
off
output HDMI2
off
output VIRTUAL1
off
output DP1
gamma 1.0:0.769:0.625
mode 1920x1080
pos 0x0
rate 60.00
output eDP1
gamma 1.0:0.769:0.625
mode 1440x900
pos 1920x180
primary
rate 60.00

View File

@ -0,0 +1,2 @@
DP1 00ffffffffffff004c2d2d0d42335030201c01030e341d782a5295a556549d250e5054bb8c00b30081c0810081809500a9c001010101023a801871382d40582c450009252100001e000000fd0038481e5111000a202020202020000000fc00433234463339300a2020202020000000ff004854514b3830313635300a202000e7
eDP1 00ffffffffffff000610f09c0000000011160104951d127802ef05975754922722505400000001010101010101010101010101010101b922a0a050841a30302036001eb300000018000000100000000000000000000000000000000000fe004c534e31333342543031413032000000fc00436f6c6f72204c43440a2020200009

View File

@ -0,0 +1,16 @@
output DP1
off
output DP2
off
output HDMI1
off
output HDMI2
off
output VIRTUAL1
off
output eDP1
gamma 1.0:1.0:0.909
mode 1440x900
pos 0x0
primary
rate 60.00

View File

@ -0,0 +1 @@
eDP1 00ffffffffffff000610f09c0000000011160104951d127802ef05975754922722505400000001010101010101010101010101010101b922a0a050841a30302036001eb300000018000000100000000000000000000000000000000000fe004c534e31333342543031413032000000fc00436f6c6f72204c43440a2020200009

View File

@ -0,0 +1,15 @@
output HDMI1
off
output VIRTUAL1
off
output DP2
gamma 1.0:1.0:0.909
mode 1920x1080
pos 0x0
rate 60.00
output DP1
gamma 1.0:1.0:0.909
mode 2560x1080
pos 1920x0
primary
rate 60.00

View File

@ -0,0 +1,2 @@
DP1 00ffffffffffff001e6df1594a940700081c010380431c78eaca95a6554ea1260f5054a54b80714f818081c0a9c0b3000101010101017e4800e0a0381f4040403a00a11c21000018023a801871382d40582c4500a11c2100001e000000fc004c4720554c545241574944450a000000fd00384b1e5a18000a20202020202001ac02031cf1499004031412051f0113230907078301000065030c002000023a801871382d40582c450056512100001e011d8018711c1620582c250056512100009e011d007251d01e206e28550056512100001e8c0ad08a20e02d10103e9600565121000018000000ff003830384e545954454c3731340a00000000000000000067
DP2 00ffffffffffff004c2d2d0d42335030201c010380341d782a5295a556549d250e5054bb8c00b30081c0810081809500a9c001010101023a801871382d40582c450009252100001e000000fd0038481e5111000a202020202020000000fc00433234463339300a2020202020000000ff004854514b3830313635300a2020017402031101411067030c001000003ce2000f023a801871382d40582c45006d552100001e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000031

View File

@ -0,0 +1,4 @@
#!/bin/sh
sleep 2
nitrogen --restore

View File

@ -0,0 +1,15 @@
output DP1
off
output VIRTUAL1
off
output DP2
gamma 1.0:1.0:0.909
mode 1920x1200
pos 1920x0
rate 59.95
output eDP1
gamma 1.0:1.0:0.909
mode 1920x1080
pos 0x120
primary
rate 60.00

View File

@ -0,0 +1,2 @@
DP2 00ffffffffffff0010acbaa055354b31091c010380342078220495a9554d9d26105054a54b00714f8180a940d1c0d100010101010101283c80a070b023403020360006442100001e000000ff004635474a32383252314b35550a000000fc0044454c4c2055323431350a2020000000fd00313d1e5311000a2020202020200177020322c14f9005040302071601141f12132021222309070765030c00100083010000023a801871382d40582c450006442100001e011d8018711c1620582c250006442100009e011d007251d01e206e28550006442100001e8c0ad08a20e02d10103e9600064421000018000000000000000000000000000000000000000000b2
eDP1 00ffffffffffff004d10841400000000281b0104a51d11780ede50a3544c99260f505400000001010101010101010101010101010101ac3780a070383e403020350026a510000018892c80a070383e403020350026a510000018000000fe005754315233814c513133334d31000000000002410328001200000b010a20200001

View File

@ -1,19 +0,0 @@
[:0.0]
file=/home/nemo/projects/personal/avatars/wallpaper/1920x1080.jpg
mode=4
bgcolor=#000000
[xin_0]
file=/home/nemo/projects/personal/avatars/wallpaper/1920x1080.jpg
mode=4
bgcolor=#000000
[xin_1]
file=/home/nemo/Pictures/korra-1920x1080.jpg
mode=4
bgcolor=#000000
[xin_2]
file=/home/nemo/Pictures/659972.jpg
mode=4
bgcolor=#000000

View File

@ -1,10 +0,0 @@
[geometry]
posx=3850
posy=535
sizex=1900
sizey=515
[nitrogen]
view=icon
icon_caps=false
dirs=/home/nemo/projects/personal/avatars/wallpaper;/home/nemo/Pictures;

View File

@ -0,0 +1,2 @@
#!/bin/sh
xrandr --output VIRTUAL1 --off --output eDP1 --primary --mode 1280x800 --pos 0x0 --rotate normal --output DP1 --off --output HDMI2 --off --output HDMI1 --mode 1280x800 --pos 0x0 --rotate normal --output DP2 --off

View File

@ -0,0 +1,7 @@
#!/bin/sh
xrandr \
--output HDMI2 --mode 2560x1080 --pos 1920x0 --rotate normal \
--output HDMI1 --off \
--output DP1 --mode 1920x1080 --pos 0x0 --rotate normal \
--output eDP1 --off \
--output VIRTUAL1 --off

View File

@ -0,0 +1,2 @@
#!/bin/sh
xrandr --output HDMI2 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI1 --off --output DP1 --mode 1600x900 --pos 1920x0 --rotate normal --output eDP1 --off --output VIRTUAL1 --off

View File

@ -0,0 +1,2 @@
#!/bin/sh
xrandr --output VIRTUAL1 --off --output eDP1 --primary --mode 1440x900 --pos 1920x0 --rotate normal --output DP1 --off --output HDMI2 --off --output HDMI1 --off --output DP1 --mode 1920x1080 --pos 0x0

View File

@ -1,2 +1,4 @@
#!/bin/sh
xrandr --output VIRTUAL1 --off --output eDP1 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI2 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI1 --off --output VGA1 --off --output DP1 --mode 1600x900 --rotate normal --pos 3840x0
MONITOR=${1:-DP1}
xrandr --output eDP1 --primary --mode 1440x900 --pos 0x300 --rotate normal \
--output $MONITOR --mode 1920x1200 --pos 1440x0 --rotate normal

View File

@ -0,0 +1,2 @@
#!/bin/sh
xrandr --output HDMI2 --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI1 --off --output DP1 --off --output eDP1 --primary --mode 1920x1080 --pos 1920x0 --rotate normal --output VIRTUAL1 --off

View File

@ -0,0 +1,2 @@
#!/bin/sh
xrandr --output VIRTUAL1 --off --output eDP1 --primary --mode 1368x768 --pos 0x0 --rotate normal --output DP1 --off --output HDMI2 --off --output HDMI1 --mode 1366x768 --pos 0x0 --rotate normal --output DP2 --off

View File

@ -0,0 +1,2 @@
#!/bin/sh
xrandr --output VIRTUAL1 --off --output eDP1 --primary --mode 1368x768 --pos 0x0 --rotate normal --output DP1 --off --output HDMI2 --off --output HDMI1 --mode 1360x768 --pos 0x0 --rotate normal --output DP2 --off

View File

@ -1,2 +1,2 @@
#!/bin/sh
xrandr --output VIRTUAL1 --off --output eDP1 --mode 1920x1080 --pos 968x0 --rotate normal --output DP1 --off --output HDMI2 --off --output HDMI1 --off --output VGA1 --off
xrandr --output VIRTUAL1 --off --output eDP1 --primary --mode 1440x900 --pos 0x0 --rotate normal --output DP1 --off --output DP1-1 --off --output HDMI2 --off --output HDMI1 --off --output DP1-8 --off --output DP2 --off

View File

@ -0,0 +1,2 @@
#!/bin/sh
xrandr --output eDP1 --mode 1440x900 --rotate normal --output DP1-1 --off --output DP1 --off --output DP1-8 off --output HDMI2 --off

View File

@ -1,4 +1,2 @@
#!/bin/sh
xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
xrandr --addmode DP1 1600x900_60.00
xrandr --output VIRTUAL1 --off --output eDP1 --mode 1920x1080 --pos 1600x360 --rotate normal --output DP1 --mode 1600x900_60.00 --pos 0x0 --rotate normal --output HDMI2 --off --output HDMI1 --off --output VGA1 --off
xrandr --output VIRTUAL1 --off --output eDP1 --primary --mode 1440x900 --pos 0x300 --rotate normal --output DP1 --mode 1920x1200 --pos 1440x0 --rotate normal --output HDMI2 --off --output HDMI1 --off --output DP2 --off

View File

@ -2,25 +2,25 @@
#timestamping = on
# Do not go up in the directory structure when downloading recursively
no_parent = on
# no_parent = on
# Wait 60 seconds before timing out. This applies to all timeouts: DNS, connect and read. (The default read timeout is 15 minutes!)
timeout = 60
timeout = 3
# Retry a few times when a download fails, but dont overdo it. (The default is 20!)
tries = 3
tries = 1
# Retry even when the connection was refused
retry_connrefused = on
retry_connrefused = off
# Use the last component of a redirection URL for the local file name
trust_server_names = on
# Follow FTP links from HTML documents by default
follow_ftp = on
# follow_ftp = on
# Add a `.html` extension to `text/html` or `application/xhtml+xml` files that lack one, or a `.css` extension to `text/css` files that lack one
adjust_extension = on
#adjust_extension = on
# Use UTF-8 as the default system encoding
# Disabled as it makes `wget` builds that dont support this feature unusable.
@ -32,7 +32,7 @@ adjust_extension = on
robots = off
# Print the HTTP and FTP server responses
#server_response = off
server_response = off
# Disguise as IE 9 on Windows 7
user_agent = Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
user_agent = Mozilla/Gecko/Firefox/58.0
content_disposition = on

View File

@ -0,0 +1,4 @@
<alias>
<family>monospace</family>
<prefer><family>Input Mono</family></prefer>
</alias>

View File

@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Use Google Emojis -->
<match target="pattern">
<test qual="any" name="family"><string>Segoe UI Emoji</string></test>
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
</match>
<alias binding="weak">
<family>sans-serif</family>
<prefer>
<family>emoji</family>
</prefer>
</alias>
<alias binding="weak">
<family>serif</family>
<prefer>
<family>emoji</family>
</prefer>
</alias>
<alias binding="weak">
<family>monospace</family>
<prefer>
<family>emoji</family>
</prefer>
</alias>
</fontconfig>

View File

@ -0,0 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- Generated by Font Manager. Do NOT edit this file. -->
<fontconfig>
<dir>/home/nemo/.fonts</dir>
</fontconfig>

View File

@ -10,6 +10,18 @@
<family>Droid Sans Mono</family>
<prefer><family>PowerlineSymbols</family></prefer>
</alias>
<alias>
<family>Droid Sans Mono Slashed</family>
<prefer><family>PowerlineSymbols</family></prefer>
</alias>
<alias>
<family>Droid Sans Mono Dotted</family>
<prefer><family>PowerlineSymbols</family></prefer>
</alias>
<alias>
<family>DejaVu Sans Mono</family>
<prefer><family>PowerlineSymbols</family></prefer>
</alias>
<alias>
<family>DejaVu Sans Mono</family>
<prefer><family>PowerlineSymbols</family></prefer>
@ -66,4 +78,28 @@
<family>Ubuntu Mono</family>
<prefer><family>PowerlineSymbols</family></prefer>
</alias>
<alias>
<family>Meslo LG L</family>
<prefer><family>PowerlineSymbols</family></prefer>
</alias>
<alias>
<family>Meslo LG L DZ</family>
<prefer><family>PowerlineSymbols</family></prefer>
</alias>
<alias>
<family>Meslo LG M</family>
<prefer><family>PowerlineSymbols</family></prefer>
</alias>
<alias>
<family>Meslo LG M DZ</family>
<prefer><family>PowerlineSymbols</family></prefer>
</alias>
<alias>
<family>Meslo LG S</family>
<prefer><family>PowerlineSymbols</family></prefer>
</alias>
<alias>
<family>Meslo LG S DZ</family>
<prefer><family>PowerlineSymbols</family></prefer>
</alias>
</fontconfig>

View File

@ -0,0 +1,22 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- Generated by Font Manager. Do NOT edit this file. -->
<fontconfig>
<match target="font">
<edit name="hintstyle" mode="assign" binding="same">
<int>1</int>
</edit>
<edit name="antialias" mode="assign" binding="same">
<bool>true</bool>
</edit>
<edit name="hinting" mode="assign" binding="same">
<bool>true</bool>
</edit>
<edit name="autohint" mode="assign" binding="same">
<bool>true</bool>
</edit>
<edit name="embeddedbitmap" mode="assign" binding="same">
<bool>false</bool>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- Generated by Font Manager. Do NOT edit this file. -->
<fontconfig>
<match target="font">
<edit name="rgba" mode="assign" binding="same">
<int>1</int>
</edit>
<edit name="lcdfilter" mode="assign" binding="same">
<int>1</int>
</edit>
<edit name="scale" mode="assign" binding="same">
<double>1.0</double>
</edit>
<edit name="dpi" mode="assign" binding="same">
<double>120.0</double>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<selectfont>
<acceptfont>
<pattern>
<patelt name="family"><string>terminess powerline</string></patelt>
</pattern>
</acceptfont>
</selectfont>
</fontconfig>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match>
<test name="prgname">
<string>firefox</string>
</test>
<edit name="family" mode="prepend" binding="weak">
<string>Noto Color Emoji</string>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintslight</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="antialias" >
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
</fontconfig>

View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- Generated by Font Manager. Do NOT edit this file. -->
<fontconfig>
<selectfont>
<rejectfont/>
</selectfont>
</fontconfig>

View File

@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- aliases -->
<alias>
<family>monospace</family>
<prefer><family>Input Mono</family></prefer>
</alias>
</fontconfig>

View File

@ -0,0 +1,12 @@
<Options game="DoorKickers" build="1.1.5" version="4">
<!--RECOMMENDED resolutions (16:9 format): 2560x1440, 2048x1152, 1920x1080, 1600x900, 1366x768, 1280x720-->
<!--More or less recommended resolutions (16:10 format): 2560x1600, 1920x1200, 1680x1050, 1440x900, 1280x800-->
<!--Note: The game will work in ANY resolution you set, but it won't look as intended.-->
<!--mode=0 is windowed, mode=1 is fullscreen windowed, mode=2 is fulscreen-->
<Video width="1920" height="1080" mode="2" stretchToFit="1" maxFPS="60" vsync="false" monitor="3" gore="2" skipLogo="true"/>
<Sound masterVolume="1" musicVolume="1" gameVolume="1" ambientalVolume="1" dynamicReverb="1"/>
<Game scrollSpeed="0.1" allowZoomPan="1" previewLOS="1" showSoundsRange="1" showLoadingScreens="1" coloredPaths="1" keepPrevPlan="0" invertHUD="0"/>
<DevMode value="false" useRandomMapPool="false" fullDebugOutput="false"/>
<KHGCloud uniqueId=""/>
<Language value="English"/>
</Options>

View File

@ -0,0 +1,64 @@
set mainfont {sans 9}
set textfont {monospace 9}
set uifont {sans 9 bold}
set tabstop 8
set findmergefiles 0
set maxgraphpct 50
set maxwidth 16
set cmitmode tree
set wrapcomment none
set autoselect 1
set autosellen 40
set showneartags 1
set maxrefs 20
set visiblerefs {"master"}
set hideremotes 0
set showlocalchanges 1
set datetimeformat {%Y-%m-%d %H:%M:%S}
set limitdiffs 1
set uicolor grey85
set want_ttk 1
set bgcolor white
set fgcolor black
set uifgcolor black
set uifgdisabledcolor #999
set colors {"#00ff00" red blue magenta darkgrey brown orange}
set diffcolors {"#c30000" "#009800" blue}
set mergecolors {red blue "#00ff00" purple brown "#009090" magenta "#808000" "#009000" "#ff0080" cyan "#b07070" "#70b0f0" "#70f0b0" "#f0b070" "#ff70b0"}
set markbgcolor #e0e0ff
set diffcontext 3
set selectbgcolor gray85
set foundbgcolor yellow
set currentsearchhitbgcolor orange
set extdifftool meld
set perfile_attrs 0
set headbgcolor #00ff00
set headfgcolor black
set headoutlinecolor black
set remotebgcolor #ffddaa
set tagbgcolor yellow
set tagfgcolor black
set tagoutlinecolor black
set reflinecolor black
set filesepbgcolor #aaaaaa
set filesepfgcolor black
set linehoverbgcolor #ffff80
set linehoverfgcolor black
set linehoveroutlinecolor black
set mainheadcirclecolor yellow
set workingfilescirclecolor red
set indexcirclecolor #00ff00
set circlecolors {white blue gray blue blue}
set linkfgcolor blue
set circleoutlinecolor black
set diffbgcolors {"#fff3f3" "#f0fff0"}
set web_browser xdg-open
set geometry(main) 1303x960+583+34
set geometry(state) normal
set geometry(topwidth) 1303
set geometry(topheight) 164
set geometry(pwsash0) "531 1"
set geometry(pwsash1) "796 1"
set geometry(botwidth) 858
set geometry(botheight) 791
set permviews {}

View File

@ -0,0 +1,10 @@
[Unit]
Description=Automatically does git push and pull on a number of repos
[Service]
Type=simple
ExecStart=/home/nemo/projects/scripts/syncrepos
Nice=19
[Install]
WantedBy=autosync-repos.target

View File

@ -0,0 +1,9 @@
[Unit]
Description=Automatically does git push and pull on a number of repos
[Timer]
OnBootSec=1min
OnUnitActiveSec=15min
[Install]
WantedBy=timers.target

View File

@ -18,7 +18,7 @@ export git_setup_aliases="yes"
# Git Index Config
# ----------------------------------------------
# Repos will be automatically added from this directory.
export GIT_REPO_DIR="$HOME/code"
export GIT_REPO_DIR="$HOME/projects"
# Add the full paths of any extra repos to GIT_REPOS, separated with ':'
# e.g. "/opt/rails/project:/opt/rails/another project:$HOME/other/repo"
export GIT_REPOS=""
@ -26,7 +26,6 @@ export git_status_command="git_status_shortcuts"
# Alias
git_index_alias="c" # Switch to a repo in the (c)ode directory
# Git Aliases
# ----------------------------------------------
git_alias="g"
@ -111,4 +110,4 @@ git_commit_all_with_ci_skip_keys="\C-xv" # CTRL+x, v (Appends [ci skip] to c
# Expand numbered args for common shell commands
shell_command_wrapping_enabled="true"
# Here you can tweak the list of wrapped commands.
scmb_wrapped_shell_commands="vim emacs gedit cat rm cp mv ln cd"
scmb_wrapped_shell_commands="vim emacs gedit cat rm cp mv ln cd bat glow"

View File

@ -1,9 +1,11 @@
[user]
name = Abhay Rana
name = Nemo
email = me@captnemo.in
signingkey = B8963685
signingkey = 468F9102AB8BF8C959C2F9A4F94EA74A4EA9EB52
[github]
user = captn3m0
[alias]
rod = rebase origin/development
rom = rebase origin/master
@ -17,28 +19,55 @@
fo = fetch origin
co = checkout
ci = commit
from = "! git fetch origin; git rebase origin/master"
frogh = "! git fetch origin; git rebase origin/gh-pages"
frum = "! git fetch upstream; git rebase upstream/master"
pushall = !git remote | xargs -L1 git push --all
[rerere]
enabled = true
[color]
branch = auto
diff = auto
status = auto
ui = true
ui = true
[alias]
l50 = "!git log --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-50s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, $3, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$4), $5, $6 }' | less -R"
l80 = "!git log --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m \\033[32m%s\\033[0m %-80s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, $3, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$4), $5, $6 }' | less -R"
lg50 = "!git log --graph --color=always --abbrev-commit --date=relative --pretty=format:'%x00%h%x00%s%x00%cd%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m %-50s \\033[32m%14s\\033[0m \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }' | less -R"
lg80 = "!git log --graph --color=always --abbrev-commit --date=relative --pretty=format:'%x00%h%x00%s%x00%cd%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m %-80s \\033[32m%14s\\033[0m \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }' | less -R"
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(blue)(%an <%ae>)%Creset' --abbrev-commit --date=relative
hooks = !~/.githooks/bin/githooks
[help]
autocorrect = 10
[push]
default = current
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[core]
# https://github.com/so-fancy/diff-so-fancy
pager = diff-so-fancy | less --tabs=4 -RFX
pager = diff-so-fancy | less --tabs=4 -RFX
preloadindex = true
quotepath = false
[credential]
helper = /usr/bin/pass-git-helper
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[diff-so-fancy]
useUnicodeRuler = false
[init]
defaultBranch = main

View File

@ -1,7 +1,19 @@
---
~/projects/work/razorpay:
name: Nemo
email: nemo@razorpay.com
name: Nemo
email: nemo@razorpay.com
~/projects/personal:
name: Nemo
email: me@captnemo.in
name: Nemo
email: commits@captnemo.in
# AUR packages
~/projects/personal/aur:
name: Nemo
email: archlinux@captnemo.in
~/projects/personal/shauryaa:
name: Abhishek
email: mama@shauryaa.in
# This is a Google Project, so requires a
# email that I have in my Google Account
~/projects/personal/kapitan:
Name: Abhay Rana
email: google@captnemo.in

129
files/git/.scmbrc Normal file
View File

@ -0,0 +1,129 @@
#
# Git File Shortcuts Config
# ----------------------------------------------
# - Set your preferred prefix for env variable file shortcuts.
# (I chose 'e' because it is easy to slide your finger to it from '$'.)
export git_env_char="e"
# - Max changed files before reverting to 'git status'. git_status_shortcuts() will be slower for lots of changed files.
export gs_max_changes="150"
# - When using the git_add_shorcuts() command, automatically invoke 'git rm' to remove deleted files?
export ga_auto_remove="yes"
# - Set the following option to 'no' if you want to use your existing git aliases
# instead of overwriting them.
# Note: Bash tab completion will not be automatically set up for your aliases if you disable this option.
export git_setup_aliases="yes"
# Git Index Config
# ----------------------------------------------
# Repos will be automatically added from this directory.
export GIT_REPO_DIR="$HOME/projects/personal"
# Add the full paths of any extra repos to GIT_REPOS, separated with ':'
# e.g. "/opt/rails/project:/opt/rails/another project:$HOME/other/repo"
export GIT_REPOS=""
export git_status_command="git_status_shortcuts"
# Alias
git_index_alias="c" # Switch to a repo in the (c)ode directory
# Git Aliases
# ----------------------------------------------
git_alias="g"
# 1. 'SCM Breeze' functions
git_status_shortcuts_alias="gs"
git_add_shortcuts_alias="ga"
exec_scmb_expand_args_alias="ge"
git_show_files_alias="gsf"
git_commit_all_alias="gca"
git_grep_shortcuts_alias="gtrep"
# 2. Commands that handle paths (with shortcut args expanded)
git_checkout_alias="gco"
git_checkout_branch_alias="gcb"
git_commit_alias="gc"
git_commit_verbose_alias="gcv"
git_reset_alias="grs"
git_reset_hard_alias="grsh"
git_rm_alias="grm"
git_blame_alias="gbl"
git_diff_alias="gd"
git_diff_no_whitespace_alias="gdnw"
git_diff_file_alias="gdf"
git_diff_word_alias="gdw"
git_diff_cached_alias="gdc"
git_difftool_alias="gdt"
git_mergetool_alias="gmt"
# 3. Standard commands
git_clone_alias="gcl"
git_fetch_alias="gf"
git_fetch_all_alias="gfa"
git_fetch_and_rebase_alias="gfr"
git_pull_alias="gpl"
git_pull_rebase_alias="gplr"
git_push_alias="gps"
git_push_force_alias="gpsf"
git_pull_then_push_alias="gpls"
git_status_original_alias="gst"
git_status_short_alias="gss"
git_clean_alias="gce"
git_clean_force_alias="gcef"
git_add_all_alias="gaa"
git_add_patch_alias="gap"
git_add_updated_alias="gau"
git_commit_amend_alias="gcm"
git_commit_amend_no_msg_alias="gcmh"
git_commit_no_msg_alias="gch"
git_remote_alias="gr"
git_branch_alias="gb"
git_branch_all_alias="gba"
git_branch_move_alias="gbm"
git_branch_delete_alias="gbd"
git_branch_delete_force_alias="gbD"
git_rebase_alias="grb"
git_rebase_interactive_alias="grbi"
git_rebase_alias_continue="grbc"
git_rebase_alias_abort="grba"
git_reset_last_commit="grsl"
git_merge_alias="gm"
git_merge_no_fast_forward_alias="gmnff"
git_merge_only_fast_forward_alias="gmff"
git_cherry_pick_alias="gcp"
git_log_alias="gl"
git_log_all_alias="gla"
git_log_stat_alias="glst"
git_log_graph_alias="glg"
git_show_alias="gsh"
git_show_summary="gsm" # (gss taken by git status short)
git_stash_alias="gash"
git_stash_apply_alias="gasha"
git_stash_pop_alias="gashp"
git_stash_list_alias="gashl"
git_tag_alias="gt"
git_submodule_update_alias="gsu"
git_submodule_update_rec_alias="gsur"
git_top_level_alias="gtop"
git_whatchanged_alias="gwc"
git_apply_alias="gapp"
# Hub aliases (https://github.com/github/hub)
git_pull_request_alias="gpr"
# Git Keyboard Shortcuts
# ----------------------------------------------
# Keyboard shortcuts are on by default. Set this to 'false' to disable them.
git_keyboard_shortcuts_enabled="true"
git_commit_all_keys="\C-x " # CTRL+x, SPACE
git_add_and_commit_keys="\C-xc" # CTRL+x, c
git_commit_all_with_ci_skip_keys="\C-xv" # CTRL+x, v (Appends [ci skip] to message)
git_add_and_amend_commit_keys="\C-xz" # CTRL+x, z
# Shell Command Wrapping
# ----------------------------------------------
# Expand numbered args for common shell commands
shell_command_wrapping_enabled="true"
# Here you can tweak the list of wrapped commands.
scmb_wrapped_shell_commands="vim emacs gedit cat rm cp mv ln cd"
# Add numbered shortcuts to output of ls -l, just like 'git status'
shell_ls_aliases_enabled="true"

View File

@ -0,0 +1 @@
/usr/lib/systemd/user/gpg-agent-browser.socket

View File

@ -0,0 +1 @@
/usr/lib/systemd/user/gpg-agent-extra.socket

View File

@ -0,0 +1 @@
/usr/lib/systemd/user/gpg-agent-ssh.socket

View File

@ -0,0 +1 @@
/usr/lib/systemd/user/gpg-agent.socket

1
files/gtk/.config/gtk-2.0/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
gtkfilechooser.ini

View File

@ -0,0 +1,7 @@
/* Remove dotted lines from GTK+ 3 applications */
undershoot.top,
undershoot.right,
undershoot.bottom,
undershoot.left {
background-image: none;
}

View File

View File

@ -1,235 +1,87 @@
#################################
#
# Backend
#
#################################
# Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver.
backend = "glx";
#################################
#
# GLX backend
#
#################################
glx-no-stencil = true;
# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
# but a 20% increase when only 1/4 is.
# My tests on nouveau show terrible slowdown.
# Useful with --glx-swap-method, as well.
glx-copy-from-front = false;
# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
# May break VSync and is not available on some drivers.
# Overrides --glx-copy-from-front.
# glx-use-copysubbuffermesa = true;
# GLX backend: Avoid rebinding pixmap on window damage.
# Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe).
# Recommended if it works.
# glx-no-rebind-pixmap = true;
# GLX backend: GLX buffer swap method we assume.
# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
# undefined is the slowest and the safest, and the default value.
# copy is fastest, but may fail on some drivers,
# 2-6 are gradually slower but safer (6 is still faster than 0).
# Usually, double buffer means 2, triple buffer means 3.
# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
# Useless with --glx-use-copysubbuffermesa.
# Partially breaks --resize-damage.
# Defaults to undefined.
glx-swap-method = "undefined";
#################################
#
# Shadows
#
#################################
# Enabled client-side shadows on windows.
shadow = true;
# Don't draw shadows on DND windows.
no-dnd-shadow = true;
# Avoid drawing shadows on dock/panel windows.
no-dock-shadow = false;
# Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows.
clear-shadow = true;
# The blur radius for shadows. (default 12)
shadow-radius = 3;
# The left offset for shadows. (default -15)
shadow-offset-x = -5;
# The top offset for shadows. (default -15)
shadow-offset-y = -5;
# The translucency for shadows. (default .75)
shadow-opacity = 0.85;
# Set if you want different colour shadows
shadow-red = 0.03;
shadow-green = 0.03;
shadow-blue = 0.04;
# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
# Shadow
shadow = false
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
log-level = "warn";
# log-file = "/path/to/your/log/file";
# shadow-opacity = 0.7;
# shadow-red = 0.0;
# shadow-green = 0.0;
# shadow-blue = 0.0;
shadow-exclude = [
# "! name~=''",
# "name = 'Notification'",
# "name = 'Plank'",
# "name = 'Docky'",
# "name = 'Kupfer'",
# "name = 'xfce4-notifyd'",
# "name *= 'VLC'",
# "name *= 'compton'",
# "name *= 'Chromium'",
# "name *= 'Chrome'",
# "name *= 'Firefox'",
# "class_g = 'Conky'",
# "class_g = 'Kupfer'",
# "class_g = 'Synapse'",
# "class_g ?= 'Notify-osd'",
# "class_g ?= 'Cairo-dock'",
# "class_g ?= 'Xfce4-notifyd'",
# "class_g ?= 'Xfce4-power-manager'"
"name = 'poniesbox'"
"name = 'Notification'",
"class_g = 'Conky'",
"class_g ?= 'Notify-osd'",
"class_g = 'Cairo-clock'",
"class_g = 'Firefox Beta'",
"class_g = 'Firefox'",
"_GTK_FRAME_EXTENTS@:c"
];
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
shadow-ignore-shaped = false;
# shadow-exclude = "n:e:Notification";
# shadow-exclude-reg = "x10+0+0";
# xinerama-shadow-crop = true;
#################################
#
# Opacity
#
#################################
menu-opacity = 1;
inactive-opacity = 0.7;
inactive-opacity = 0.5;
active-opacity = 1.0;
frame-opacity = 0.7;
frame-opacity = 1.0;
inactive-opacity-override = false;
alpha-step = 0.06;
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
#blur-kern = "7,7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
#blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
##blur-kern = "3,3,1,1,1,1,1,1,1,1"
blur-background = true;
# Blur background of opaque windows with transparent frames as well.
blur-background-frame = false;
# Do not let blur radius adjust based on window opacity.
blur-background-fixed = false;
# inactive-dim = 0.2;
# inactive-dim-fixed = true;
# blur-background = true;
# blur-background-frame = true;
blur-kern = "3x3box";
# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
# blur-background-fixed = true;
blur-background-exclude = [
"window_type = 'dock'",
"window_type = 'desktop'"
"window_type = 'desktop'",
"_GTK_FRAME_EXTENTS@:c"
];
# opacity-rule = [ "80:class_g = 'URxvt'" ];
#################################
#
# Fading
#
#################################
# Fade windows during opacity changes.
fading = true;
# The time between steps in a fade in milliseconds. (default 10).
fade-delta = 4;
# Opacity change between steps while fading in. (default 0.028).
fade-in-step = 0.03;
# Opacity change between steps while fading out. (default 0.03).
fade-out-step = 0.03;
# Fade windows in/out when opening/closing
fading = false;
fade-delta = 15;
fade-in-step = 0.05;
fade-out-step = 0.05;
# no-fading-openclose = true;
# no-fading-destroyed-argb = true;
fade-exclude = [ ];
# Specify a list of conditions of windows that should not be faded.
fade-exclude = [
"name = 'poniesbox'"
];
#################################
#
# Other
#
#################################
# Try to detect WM windows and mark them as active.
backend = "xr_glx_hybrid";
mark-wmwin-focused = true;
# Mark all non-WM but override-redirect windows active (e.g. menus).
mark-ovredir-focused = true;
# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
# Usually more reliable but depends on a EWMH-compliant WM.
use-ewmh-active-win = true;
# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
# use-ewmh-active-win = true;
detect-rounded-corners = true;
# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
# This prevents opacity being ignored for some apps.
# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
detect-client-opacity = true;
# Specify refresh rate of the screen.
# If not specified or 0, compton will try detecting this with X RandR extension.
refresh-rate = 60;
# Set VSync method. VSync methods currently available:
# none: No VSync
# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers.
# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers.
# opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers.
# opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesnt have the effect of --sw-opti unlike other methods. Experimental.
# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use.
# (Note some VSync methods may not be enabled at compile time.)
vsync = "opengl-swc";
# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
# Reported to have no effect, though.
dbe = false;
# Painting on X Composite overlay window. Recommended.
paint-on-overlay = true;
# Limit compton to repaint at most once every 1 / refresh_rate second to boost performance.
# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
# unless you wish to specify a lower refresh rate than the actual value.
sw-opti = false;
# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
# Known to cause flickering when redirecting/unredirecting windows.
# paint-on-overlay may make the flickering less obvious.
unredir-if-possible = true;
# Specify a list of conditions of windows that should always be considered focused.
focus-exclude = [ ];
# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
refresh-rate = 0;
vsync = true;
# sw-opti = true;
# Fixes flicker
unredir-if-possible = false;
# unredir-if-possible-delay = 5000;
# unredir-if-possible-exclude = [ ];
focus-exclude = [ "class_g = 'Cairo-clock'" ];
detect-transient = true;
# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
detect-client-leader = true;
invert-color-include = [ ];
# resize-damage = 1;
# GLX backend
# glx-no-stencil = true;
# glx-no-rebind-pixmap = true;
# xrender-sync-fence = true;
use-damage = true;
#################################
#
# Window type settings
#
#################################
wintypes:
{
tooltip =
{
# fade: Fade the particular type of windows.
fade = true;
# shadow: Give those windows shadow
shadow = false;
# opacity: Default opacity for the type of windows.
opacity = 0.85;
# focus: Whether to always consider windows of this type focused.
focus = true;
};
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
dock = { shadow = false; }
dnd = { shadow = false; }
popup_menu = { opacity = 1; }
dropdown_menu = { opacity = 1; }
};

View File

@ -0,0 +1,138 @@
[global]
font = Input Sans Narrow 12
markup = yes
plain_text = no
format = "<b>%s</b>\n%b"
sort = no
indicate_hidden = yes
alignment = right
bounce_freq = 1
show_age_threshold = 60;
word_wrap = yes
geometry = "500x50-15+49"
# Shrink window if it's smaller than the width. Will be ignored if
# width is 0.
shrink = no
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing windowmanager is
# present (e.g. xcompmgr, compiz, etc.).
transparency = 5
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
idle_threshold = 20
# Which monitor should the notifications be displayed on.
# This picks the one with keyboard focus
follow = keyboard
# Should a notification popped up from history be sticky or timeout
# as if it would normally do.
sticky_history = yes
# Maximum amount of notifications kept in history
history_length = 15
# Display indicators for URLs (U) and actions (A).
show_indicators = yes
# The height of a single line. If the height is smaller than the
# font height, it will get raised to the font height.
# This adds empty space above and under the text.
line_height = 3
notification_height = 80
# Draw a line of "separatpr_height" pixel height between two
# notifications.
# Set to 0 to disable.
separator_height = 5;
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background;
# * foreground: use the same color as the foreground;
# * frame: use the same color as the frame;
# * anything else will be interpreted as a X color.
separator_color = auto
# Padding between text and separator.
padding = 10
# Horizontal padding.
horizontal_padding = 6
frame_width = 2
# Hide duplicate's count and stack them
stack_duplicates = yes
hide_duplicates_count = yes
# Align icons left/right/off
icon_position = off
max_icon_size = 80
# Paths to default icons.
icon_path = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/
notification_limit = 10
### Progress bar ###
# Turn on the progess bar. It appears when a progress hint is passed with
# for example dunstify -h int:value:12
progress_bar = true
# Set the progress bar height. This includes the frame, so make sure
# it's at least twice as big as the frame width.
progress_bar_height = 10
# Set the frame width of the progress bar
progress_bar_frame_width = 1
# Set the minimum width for the progress bar
progress_bar_min_width = 150
# Set the maximum width for the progress bar
progress_bar_max_width = 300
# Show how many messages are currently hidden (because of
# notification_limit).
indicate_hidden = yes
# Context menu.
[shortcuts]
close = mod4+x
close_all = mod4+n
history = mod4+backslash
context = ctrl+shift+period
[urgency_low]
frame_color = "#2c3e50"
foreground = "#ecf0f1"
background = "#95a5a6"
timeout = 4
[urgency_normal]
frame_color = "#95a5a6"
foreground = "#34495e"
background = "#ecf0f1"
timeout = 6
[urgency_critical]
frame_color = "#e74c3c"
foreground = "#ecf0f1"
background = "#e74c3c"
timeout = 20
[fullscreen_delay_everything]
fullscreen = delay
[fullscreen_show_critical]
msg_urgency = critical
fullscreen = show

View File

@ -0,0 +1,153 @@
# i3blocks config file
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# command
# full_text
# instance
# interval
# label
# min_width
# name
# separator
# separator_block_width
# short_text
# signal
# urgent
# Global properties
#
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
# Change $SCRIPT_DIR to the location of your scripts!
command=/home/nemo/.config/i3blocks/$BLOCK_NAME/$BLOCK_NAME
separator_block_width=15
markup=none
#[wifi]
#label=wifi:
#align=left
#interval=5
[pomodoro]
command=/home/nemo/projects/go/bin/openpomodoro-cli status
interval=1
color=#e74c3c
[weather]
command=curl -Ss 'https://wttr.in/Bangalore?0&T&Q' | cut -c 16- | head -2 | xargs echo
# Every 5 minutes
interval=300
color=#A4C2F4
[ip]
command=ip address show dev wlan0 | grep inet | head -n1 | cut -d ' ' -f 6
interval=3600
color=#91E78B
#[volume]
#LABEL=♪
#interval=once
#signal=10
# I rarely run out of memory, so this is commented
#[memory]
#separator=|
#interval=30
[dunst]
interval=once
format=json
markup=pango
# Shows disk space remaining in /home
[disk]
interval=30
label=Disk
[bandwidth2]
interval=persist
markup=pango
LABEL=
interval=60
[cpu_usage2]
markup=pango
interval=persist
min_width=CPU 100.00%
REFRESH_TIME=1
LABEL=CPU
WARN_PERCENT=50
CRIT_PERCENT=80
DECIMALS=2
[load_average]
label=🗠
interval=10
# Battery indicator
#
# The battery instance defaults to 0.
#[battery]
#label=BAT
#label=⚡
#interval=30
# Generic media player support
#
# This displays "ARTIST - SONG" if a music is playing.
# Supported players are: spotify, vlc, audacious, xmms2, mplayer, and others.
[mediaplayer]
instance=%any
interval=5
signal=10
[nm-vpn]
interval=20
[rofi-calendar]
interval=30
LABEL=
FONT=Monospace 10
[time]
command=date '+%H:%M'
interval=60
[temperature]
interval=10
T_WARN=85
T_CRIT=90
SENSOR_CHIP=coretemp-isa-0000
interval=2
[monitor_manager]
interval=once
SHOW_ON_OFF=1
SHOW_NAMES=0
SHOW_PRIMARY=0
SHOW_MODE=1
SHOW_BLANKED=0
SHOW_DUPLICATE=0
SHOW_ROTATION=0
SHOW_REFLECTION=0
SHOW_BRIGHTNESS=0
SHOW_BRIGHTNESS_VALUE=0
SHOW_UP_DOWN=0
FONT_FAMILY=DejaVu Sans Mono
FONT_SIZE=12
CLOSE_TO_BOUNDARY_BUFFER=30
[i3volume]
label=
command=~/i3-volume/volume output i3blocks
interval=once
signal=10
color=#b8bb26
separator_block_width=10
markup=pango

View File

@ -1,6 +1,3 @@
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
@ -12,16 +9,17 @@ general {
}
#order += "ipv6"
order += "external_script cmus"
order += "disk /home"
#order += "external_script cmus"
order += "disk /home/nemo"
order += "disk /"
order += "bluetooth"
#order += "weather_yahoo"
#order += "run_watch DHCP"
#order += "run_watch VPN"
order += "wireless _first_"
#order += "ethernet _first_"
order += "battery_level"
# order += "load"
#order += "battery_level"
order += "load"
order += "tztime local"
wireless _first_ {
@ -35,23 +33,14 @@ ethernet _first_ {
format_down = "E: down"
}
battery_level{
color_bad = "#ECF0F1"
color_charging = "#FCE94F"
color = "#FCE94F"
color_degraded = "#2ECC71"
color_good = "#2ECC71"
format = "⚡ {}"
mode = "text"
}
external_script "cmus" {
# Refresh every 5 seconds
cache_timeout = 5
format = "► {output}"
color = "#E67E22"
script_path = "~/projects/scripts/get-current-track.sh"
}
#external_script "cmus" {
# # Refresh every 5 seconds
# cache_timeout = 5
# format = "► {output}"
# color = "#E67E22"
# script_path = "python /home/nemo/projects/scripts/get_current_track.py"
#}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
@ -62,7 +51,7 @@ run_watch VPN {
}
tztime local {
format = "%Y-%m-%d %H:%M:%S"
format = "%d/%m %H:%M:%S"
}
load {
@ -73,17 +62,21 @@ disk "/home" {
format = "%avail"
}
weather_yahoo {
city_code = "INKA0686"
disk "/" {
format = "%avail"
}
bluetooth {
format = "{name}"
format_no_conn = ""
format_prefix = "ß "
format_no_conn_prefix = ""
}
#weather_yahoo {
# city_code = "INKA0686"
#}
pomodoro {
#bluetooth {
# format = "{name}"
# format_no_conn = ""
# format_prefix = "ß "
# format_no_conn_prefix = ""
#}
#pomodoro {
}
#}

View File

@ -0,0 +1,7 @@
configuration {
modi: "window,drun,combi";
font: "Input Mono 10";
combi-modi: "window,drun";
}
@theme "/usr/share/rofi/themes/paper-float.rasi"
@import "/usr/share/rofi/themes/gruvbox-light.rasi"

View File

@ -0,0 +1,329 @@
# sway config file
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
include /etc/sway/config.d/*
exec systemctl --user import-environment SSH_AUTH_SOCK
exec dbus-update-activation-environment --systemd SSH_AUTH_SOCK
# I use the Super key on my laptop for i3
set $mod Mod4
# 4 named workspaces
set $WS1 1:
set $WS2 2:
set $WS3 3:
set $WS4 4:
# Startup items that don't have their windows
exec gammastep
exec yubikey-touch-detector --libnotify
# This ensures that GTK changes are applied immediately
exec xfsettingsd --replace --no-daemon
# execute ibus XIM server.
exec ibus-daemon --replace --xim
# Launch the VPN app, but turn it off
exec riseup-vpn-git --start-vpn off
# Launch easyeffects
exec easyeffects --hide-window
## Press Ctrl+C twice to search a word
## Dictionaries are kept in ~/Documents/Dictionaries
exec --no-startup-id goldendict
# For ArchLinux
exec --no-startup-id connman-gtk
exec --no-startup-id /usr/sbin/hackertray --firefox auto --comments/usr/sbin/hackertray
# For Ubuntu
exec --no-startup-id nm-applet
exec --no-startup-id aa-notify -p -s 1 -w 60 -f /var/log/audit/audit.log
exec --no-startup-id autorandr --change
input * {
#xkb_layout = "in(eng),in(hin-wx),in(hin-kagapa)"
# Caps Lock = Hyper_L
xkb_options "grp_led:caps,caps:hyper,compose:ralt"
}
# Quick switching between workspace is disabled
# Just leads to confusion
workspace_auto_back_and_forth no
# I am still learning splitting properly
workspace_layout default
hide_edge_borders both
# Still playing around with this
font pango:Cantarell 10,Fira Sans 8,Dejavu Sans,FontAwesome 9
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return split v; exec alacritty
bindsym $mod+Shift+Return split h; exec alacritty
bindsym $mod+Shift+f exec killall firefox;
# Snippy for quick text
# https://gist.github.com/coderofsalvation/46549e3788ade2f3a938
bindsym $mod+grave exec snippy.sh
# This one because of a 60% keyboard
bindsym $mod+Escape exec snippy.sh
bindsym $mod+z exec fsearch
bindsym $mod+Hyper_L exec wofi --show drun -icon-theme "Papirus" -show-icons -font "Cantarell 14"
# TODO: Window switch does not work
bindsym --release Hyper_L exec wofi --show window -icon-theme "Papirus" -show-icons -font "Cantarell 14"
bindsym $mod+F8 exec nemo --no-desktop
# kill focused window
bindsym $mod+Shift+q kill
# keyboard backlight, for Mac
# increase/decrease keyboard brightness
# TODO: Switch to wayland?
#bindsym XF86KbdBrightnessUp exec /home/nemo/projects/scripts/backlight up
#bindsym XF86KbdBrightnessDown exec /home/nemo/projects/scripts/backlight down
# Setup wallpapers
exec swaybg --output "Samsung Electric Company C24F390 HTQK801650" --mode fit --image /home/nemo/Pictures/wallpapers/personal/zurich.jpg \
--output "HDMI-A-1" --mode stretch --image /home/nemo/Pictures/wallpapers/personal/titlis.jpg
# Notifications
exec swaync
# Toggle control center
bindsym $mod+Shift+n exec swaync-client -t -sw
# Lock Related
exec swayidle -w \
timeout 1800 'swaylock -f' \
timeout 2000 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -f' \
lock 'swaylock -f' \
unlock 'killall -s SIGUSR1 swaylock' \
idlehint 1800
exec swayidle -w timeout 10 \
'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' resume 'swaymsg "output * dpms on"'
bindsym $mod+l exec "killall -s SIGUSR1 swayidle"
## And manual locking as well
## TODO: Get this working
# bindsym $mod+l exec loginctl lock-session
# Print screen
bindsym Print exec flameshot gui
bindsym $mod+I exec grimshot copy area
bindsym Ctrl+Print exec flameshot screen
bindsym Ctrl+$mod+I exec grimshot save area
bindsym $mod+P exec /home/nemo/projects/scripts/wofipass --type
# focus
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# Switching to a different workspace
bindsym $mod+Ctrl+Left workspace prev_on_output
bindsym $mod+Ctrl+Right workspace next_on_output
# split in horizontal orientation
bindsym $mod+h split h; exec wofi --show drun
# split in vertical orientation
bindsym $mod+v split v; exec wofi --show drun
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# switch to workspace
bindsym $mod+1 workspace $WS1
bindsym $mod+2 workspace $WS2
bindsym $mod+3 workspace $WS3
bindsym $mod+4 workspace $WS4
bindsym $mod+5 workspace 5
bindsym $mod+6 workspace 6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $WS1
bindsym $mod+Shift+2 move container to workspace $WS2
bindsym $mod+Shift+3 move container to workspace $WS3
bindsym $mod+Shift+4 move container to workspace $WS4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
# rename a workspace
bindsym $mod+ctrl+r exec i3-input -F 'rename workspace to "%s"' -P 'New name: '
# reload the configuration file
bindsym $mod+Shift+c reload
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
#bindsym button 6 exec "notify-send 123"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# backlight support
bindsym XF86MonBrightnessUp exec xbacklight -inc 10
bindsym XF86MonBrightnessDown exec xbacklight -dec 10
## Volume control
# pulseaudio-utils settings
#
# Symbolic name for sink (numeric index not supported)
# Recommended: comment out this setting and omit the -s option to use default sink
# List sink names: pacmd list-sinks | awk -F "[<>]" '/^\s+name: <.*>/{print $2}'
#set $sinkname alsa_output.pci-0000_00_1b.0.analog-stereo
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer --increase 2 && notify-send `pamixer --get-volume` -t 200 -e
bindsym XF86AudioLowerVolume exec --no-startup-id pamixer --decrease 2 && notify-send `pamixer --get-volume` -t 200 -e
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
# Window assignments
for_window [class="Wine"] floating enable
for_window [class="Blueberry.py"] floating enable
for_window [class="Transmission-gtk"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [window_role="bubble"] floating enable
for_window [class="xpad"] floating enable
for_window [class="Zeal"] floating enable
for_window [class="Pavucontrol"] floating enable resize 940 600
for_window [class="Connman-gtk"] floating enable resize 800 420
for_window [class="Firefox" instance="Browser"] floating enable
for_window [class="Firefox Beta" instance="Browser"] floating enable
for_window [class="Fsearch"] floating enable
for_window [class="Com.github.parnold-x.nasc"] floating enable 800 420
for_window [class="xpad" window_role="info-"] move scratchpad
for_window [class="Com.github.parnold-x.nasc"] move scratchpad
for_window [class="Blueman-manager"] floating enable resize 640 600
# Sticky Notepad
exec --no-startup-id xpad
# Sticky math app
exec --no-startup-id GTK_THEME=Ambiance com.github.parnold-x.nasc
bindsym $mod+F1 [class="xpad" instance="xpad"] scratchpad show
# Only for Nasc
bindsym $mod+F3 [class="Com.github.parnold-x.nasc"] scratchpad show
# Go through all windows
# Scratchpad
bindsym $mod+shift+minus move scratchpad
bindsym $mod+minus scratchpad show
# gaps are native in sway
for_window [class="^.*"] border pixel 0
gaps inner 10
gaps outer 5
smart_gaps on
smart_borders on
bar {
font xft:Cantarell, FontAwesome 11
status_command i3blocks
colors {
separator #657b83
background #002b36
statusline #fdf6e3
focused_workspace #fdf6e3 #859900 #fdf6e3
active_workspace #fdf6e3 #6c71c4 #fdf6e3
inactive_workspace #586e75 #93a1a1 #002b36
urgent_workspace #d33682 #d33682 #fdf6e3
}
}
# Multi monitor
bindsym $mod+shift+a move workspace to output left
bindsym $mod+shift+s move workspace to output right
# class border backgr. text indicator
client.focused #859900 #859900 #fdf6e3 #2e9ef4
client.focused_inactive #268bd2 #268bd2 #fdf6e3 #484e50
client.unfocused #333333 #93a1a1 #fdf6e3 #292d2e
exec_always --no-startup-id kitti3 -p TL
# https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland/#setting-values-in-gsettings
exec_always import-gsettings
bindsym $mod+n nop kitti3
output 'Samsung Electric Company C24F390 HTQK801650' position 0 0
output 'LG Electronics LG ULTRAWIDE 0x0000974A' position 1920 0
for_window [app_id="flameshot"] border pixel 0, floating enable, fullscreen disable, move absolute position 0 0
for_window [app_id="signal"] floating enable

View File

@ -0,0 +1,20 @@
# Generated by nwg-displays on 2024-02-23 at 17:21:41. Do not edit manually.
output "HDMI-A-1" {
mode 2560x1080@60.0Hz
pos 1920 0
transform normal
scale 1.0
scale_filter nearest
adaptive_sync off
dpms on
}
output "DP-1" {
mode 1920x1080@60.0Hz
pos 0 0
transform normal
scale 1.0
scale_filter nearest
adaptive_sync off
dpms on
}

View File

@ -2,34 +2,62 @@
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# I use the ubuntu key on my laptop for i3
# I use the Super key on my laptop for i3
set $mod Mod4
# 4 named workspaces
set $WS1 1:
set $WS2 2:
set $WS3 3:
set $WS3 3:
set $WS4 4:
# Startup items that don't have their windows
exec --no-startup-id nitrogen --restore
exec --no-startup-id volumeicon
exec --no-startup-id redshift-gtk
exec --no-startup-id compton --config ~/.compton.conf
exec --no-startup-id nm-applet
#terminal
exec urxvtd -q -f -o
exec --no-startup-id redshift-gtk
exec yubikey-touch-detector --libnotify
# This ensures that GTK changes are applied immediately
exec xfsettingsd --replace --no-daemon
# execute ibus XIM server.
exec ibus-daemon --replace --xim
# Launch the VPN app, but turn it off
exec riseup-vpn-git --start-vpn off
# Launch easyeffects
exec easyeffects --hide-window
## Press Ctrl+C twice to search a word
## Dictionaries are kept in ~/Documents/Dictionaries
exec --no-startup-id goldendict
# For ArchLinux
exec --no-startup-id connman-gtk
exec --no-startup-id /usr/sbin/hackertray --firefox auto --comments/usr/sbin/hackertray
# For Ubuntu
exec --no-startup-id nm-applet
exec --no-startup-id aa-notify -p -s 1 -w 60 -f /var/log/audit/audit.log
exec --no-startup-id autorandr --change
# Caps Lock = Hyper_L
exec setxkbmap -option ctrl:nocaps
exec xmodmap -e 'clear lock'
exec xmodmap -e 'keycode 66 = Hyper_L'
# Set default backlight
exec xbacklight -set 15
# Code Workspace
exec i3-msg "workspace $WS1; exec cwdterm.sh"
exec i3-msg "workspace $WS1; exec subl3"
exec i3-msg "workspace $WS1; exec subl"
# Web workspace
exec i3-msg "workspace $WS2; exec google-chrome-unstable"
# Web workspace (Run both, depending on the system I'm on)
exec i3-msg "workspace $WS2; exec firefox"
# Startup figure out monitors
exec autorandr -c home
# Quick switching between workspace is disabled
# Just leads to confusion
@ -40,67 +68,66 @@ workspace_layout default
hide_edge_borders both
# Still playing around with this
font pango:DejaVu Sans, FontAwesome 9
font pango:Cantarell 10,Fira Sans 8,Dejavu Sans,FontAwesome 9
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return split v; exec cwdterm.sh
bindsym $mod+Shift+Return split h; exec cwdterm.sh
# Split terminals using byobu shortcuts
bindsym Shift+F2 split v; exec cwdterm.sh
bindsym Ctrl+F2 split h; exec cwdterm.sh
bindsym $mod+Return split v; exec foot
bindsym $mod+Shift+Return split h; exec foot
bindsym $mod+Shift+f exec killall firefox;
# Snippy for quick text
# https://gist.github.com/coderofsalvation/46549e3788ade2f3a938
bindsym $mod+grave exec snippy.sh
# This one because of a 60% keyboard
bindsym $mod+Escape exec snippy.sh
bindsym $mod+z exec fsearch
bindsym $mod+Hyper_L exec rofi -show drun -icon-theme "Papirus" -show-icons -font "Input Sans 12"
bindsym --release Hyper_L exec rofi -show window -icon-theme "Papirus" -show-icons -font "Input Sans 12"
bindsym $mod+F8 exec pcmanfm
# kill focused window
bindsym $mod+Shift+q kill
#### Lock screen config #####
# Use i3lock as screensaver (works on suspend)
exec --no-startup-id "xss-lock /home/nemo/projects/scripts/i3lock.sh > /home/nemo/projects/scripts/xss-lock.log"
# keyboard backlight, for Mac
# increase/decrease keyboard brightness
bindsym XF86KbdBrightnessUp exec /home/nemo/projects/scripts/backlight up
bindsym XF86KbdBrightnessDown exec /home/nemo/projects/scripts/backlight down
# Autolock screen after 2 minutes
exec --no-startup-id "xautolock -corners -000 -detectsleep -time 2 -locker /home/nemo/projects/scripts/i3lock.sh > /home/nemo/logs/i3/xautolock.log"
# dunst for notifications
exec "dunst"
# Win+L
bindsym $mod+l exec --no-startup-id xautolock -locknow
# Lock Related
## Setup a new lock screen on every boot
exec "betterlockscreen --fx dim -u /home/nemo/Pictures/wallpapers/"
# start dmenu (I actually have dmenu2 installed)
bindsym $mod+d exec dmenu_run -i -o 0.1
## Run xss-lock for handling suspend + session locks
exec xss-lock -l -- betterlockscreen -l dim
# For starting applications with a .desktop entry
bindsym $mod+shift+d exec --no-startup-id i3-dmenu-desktop
## And manual locking as well
bindsym $mod+l exec loginctl lock-session
# Print screen
set $screenshot_file '/home/nemo/Desktop/Screenshots/%Y-%m-%d_%H-%M-$wx$h.png'
bindsym Print exec escrotum --select --selection-delay 300 $screenshot_file
bindsym Shift+Print exec escrotum --clipboard --select --selection-delay 300 $screenshot_file
bindsym Ctrl+Print exec scrot --focused --count --delay 0.5 --quality 80 --silent $screenshot_file
bindsym Print exec flameshot gui
bindsym $mod+I exec flameshot gui
# change focus
bindsym $mod+j focus left
# bindsym $mod+k focus down
# bindsym $mod+l focus up I use this for lock screen
bindsym $mod+semicolon focus right
bindsym Ctrl+Print exec flameshot screen
bindsym Ctrl+$mod+I exec flameshot screen
# alternatively, you can use the cursor keys:
bindsym $mod+P exec passmenu --type -fn "Input Mono" -nb "#002b36" -nf "white" -sf "#fdf6e3"
# focus
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
@ -161,7 +188,7 @@ bindsym $mod+Shift+9 move container to workspace 9
bindsym $mod+Shift+0 move container to workspace 10
# rename a workspace
# bindsym $mod+ctrl+r exec i3-input -F 'rename workspace to "%s"' -P 'New name: '
bindsym $mod+ctrl+r exec i3-input -F 'rename workspace to "%s"' -P 'New name: '
# reload the configuration file
bindsym $mod+Shift+c reload
@ -172,6 +199,7 @@ bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
#bindsym button 6 exec "notify-send 123"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
@ -202,57 +230,95 @@ bindsym $mod+r mode "resize"
bindsym XF86MonBrightnessUp exec xbacklight -inc 10
bindsym XF86MonBrightnessDown exec xbacklight -dec 10
# volumeicon cannot seem to unmute it
bindsym XF86AudioMute exec amixer -D pulse set Master toggle
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
workspace_buttons yes
status_command py3status -c ~/.config/i3status/config
colors {
separator #888888
background #333333
statusline #FFFFFF
focused_workspace #4E9C00 #4E9C00 #FFFFFF
active_workspace #333333 #333333 #FFFFFF
inactive_workspace #333333 #333333 #888888
urgent_workspace #C20000 #C20000 #FFFFFF
}
}
# https://github.com/vivien/i3blocks-contrib/tree/master/volume#usage
# Review the lines below and append to ~/.config/i3/config
## Volume control
# Path to volume control, without trailing slash
set $volumepath ~/i3-volume
# Amount to increase/decrease volume as a percentage
set $volumestep 5
# pulseaudio-utils settings
#
# Symbolic name for sink (numeric index not supported)
# Recommended: comment out this setting and omit the -s option to use default sink
# List sink names: pacmd list-sinks | awk -F "[<>]" '/^\s+name: <.*>/{print $2}'
#set $sinkname alsa_output.pci-0000_00_1b.0.analog-stereo
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer --increase 2 && notify-send `pamixer --get-volume` -t 200
bindsym XF86AudioLowerVolume exec --no-startup-id pamixer --decrease 2 && notify-send `pamixer --get-volume` -t 200
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
# Window assignments
for_window [class="Wine"] floating enable
for_window [class="Blueberry.py"] floating enable
for_window [class="Transmission-gtk"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [window_role="bubble"] floating enable
for_window [class="xpad"] floating enable
for_window [class="Zeal"] floating enable
for_window [class="Pavucontrol"] floating enable resize 940 600
for_window [class="Connman-gtk"] floating enable resize 800 420
for_window [class="Firefox" instance="Browser"] floating enable
for_window [class="Firefox Beta" instance="Browser"] floating enable
for_window [class="Fsearch"] floating enable
for_window [class="Com.github.parnold-x.nasc"] floating enable 800 420
for_window [class="xpad" window_role="info-"] move scratchpad
for_window [class="Com.github.parnold-x.nasc"] move scratchpad
for_window [class="Blueman-manager"] floating enable resize 640 600
# Sticky Notepad
exec --no-startup-id xpad
bindsym F1 [class="xpad" instance="xpad"] scratchpad show
bindsym F2 [class="^(?!xpad$)"] scratchpad show
# Sticky math app
exec --no-startup-id GTK_THEME=Ambiance com.github.parnold-x.nasc
bindsym $mod+F1 [class="xpad" instance="xpad"] scratchpad show
# Only for Nasc
bindsym $mod+F3 [class="Com.github.parnold-x.nasc"] scratchpad show
# Go through all windows
# Scratchpad
bindsym $mod+shift+z move scratchpad
bindsym $mod+shift+minus move scratchpad
bindsym $mod+minus scratchpad show
# i3 gaps
for_window [class="^.*"] border pixel 0
gaps inner 10
gaps outer 0
gaps outer 5
smart_gaps on
smart_borders on
bar {
font xft:Cantarell, FontAwesome 11
status_command i3blocks
colors {
separator #657b83
background #002b36
statusline #fdf6e3
focused_workspace #fdf6e3 #859900 #fdf6e3
active_workspace #fdf6e3 #6c71c4 #fdf6e3
inactive_workspace #586e75 #93a1a1 #002b36
urgent_workspace #d33682 #d33682 #fdf6e3
}
}
# Multi monitor
bindsym $mod+shift+a move workspace to output left
bindsym $mod+shift+s move workspace to output right
bindsym $mod+shift+w move workspace to output up
bindsym $mod+shift+x move workspace to output down
bindsym XF86Display exec arandr
bindsym XF86Display exec autorandr
bindsym $mod+F9 exec autorandr
client.focused #4E9C00 #4E9C00 #FFFFFF #FFFFFF
client.focused_inactive #1B3600 #1B3600 #888888 #FFFFFF
client.unfocused #333333 #333333 #888888 #FFFFFF
client.urgent #C20000 #C20000 #FFFFFF #FFFFFF
# class border backgr. text indicator
client.focused #859900 #859900 #fdf6e3 #2e9ef4
client.focused_inactive #268bd2 #268bd2 #fdf6e3 #484e50
client.unfocused #333333 #93a1a1 #fdf6e3 #292d2e
exec_always --no-startup-id kitti3 -p TL
bindsym $mod+n nop kitti3

406
files/irc/.irssi/config Normal file
View File

@ -0,0 +1,406 @@
servers = (
{ address = "irc.dal.net"; chatnet = "DALnet"; port = "6667"; },
{
address = "ssl.efnet.org";
chatnet = "EFNet";
port = "9999";
use_tls = "yes";
},
{
address = "irc.esper.net";
chatnet = "EsperNet";
port = "6697";
use_tls = "yes";
tls_verify = "yes";
},
{
address = "chat.freenode.net";
chatnet = "Freenode";
port = "6697";
use_tls = "yes";
tls_verify = "yes";
},
{
address = "irc.gamesurge.net";
chatnet = "GameSurge";
port = "6667";
},
{
address = "eu.irc6.net";
chatnet = "IRCnet";
port = "6667";
use_tls = "yes";
},
{ address = "open.ircnet.net"; chatnet = "IRCnet"; port = "6667"; },
{
address = "irc.ircsource.net";
chatnet = "IRCSource";
port = "6667";
},
{ address = "irc.netfuze.net"; chatnet = "NetFuze"; port = "6667"; },
{
address = "irc.oftc.net";
chatnet = "OFTC";
port = "6697";
use_tls = "yes";
tls_verify = "yes";
},
{
address = "irc.quakenet.org";
chatnet = "QuakeNet";
port = "6667";
},
{
address = "irc.rizon.net";
chatnet = "Rizon";
port = "6697";
use_tls = "yes";
tls_verify = "yes";
},
{ address = "silc.silcnet.org"; chatnet = "SILC"; port = "706"; },
{
address = "irc.undernet.org";
chatnet = "Undernet";
port = "6667";
}
);
chatnets = {
DALnet = {
type = "IRC";
max_kicks = "4";
max_msgs = "20";
max_whois = "30";
};
EFNet = {
type = "IRC";
max_kicks = "1";
max_msgs = "4";
max_whois = "1";
};
EsperNet = {
type = "IRC";
max_kicks = "1";
max_msgs = "4";
max_whois = "1";
};
Freenode = {
type = "IRC";
max_kicks = "1";
max_msgs = "4";
max_whois = "1";
};
GameSurge = {
type = "IRC";
max_kicks = "1";
max_msgs = "1";
max_whois = "1";
};
IRCnet = {
type = "IRC";
max_kicks = "1";
max_msgs = "1";
max_whois = "1";
};
IRCSource = {
type = "IRC";
max_kicks = "1";
max_msgs = "4";
max_whois = "1";
};
NetFuze = {
type = "IRC";
max_kicks = "1";
max_msgs = "1";
max_whois = "1";
};
OFTC = { type = "IRC"; max_kicks = "1"; max_msgs = "1"; max_whois = "1"; };
QuakeNet = {
type = "IRC";
max_kicks = "1";
max_msgs = "1";
max_whois = "1";
};
Rizon = {
type = "IRC";
max_kicks = "1";
max_msgs = "1";
max_whois = "1";
};
SILC = { type = "SILC"; };
Undernet = {
type = "IRC";
max_kicks = "1";
max_msgs = "1";
max_whois = "1";
};
};
channels = (
{ name = "#lobby"; chatnet = "EsperNet"; autojoin = "No"; },
{ name = "#freenode"; chatnet = "Freenode"; autojoin = "No"; },
{ name = "#irssi"; chatnet = "Freenode"; autojoin = "No"; },
{ name = "#gamesurge"; chatnet = "GameSurge"; autojoin = "No"; },
{ name = "#irssi"; chatnet = "IRCNet"; autojoin = "No"; },
{ name = "#ircsource"; chatnet = "IRCSource"; autojoin = "No"; },
{ name = "#netfuze"; chatnet = "NetFuze"; autojoin = "No"; },
{ name = "#oftc"; chatnet = "OFTC"; autojoin = "No"; },
{ name = "silc"; chatnet = "SILC"; autojoin = "No"; }
);
aliases = {
ATAG = "WINDOW SERVER";
ADDALLCHANS = "SCRIPT EXEC foreach my \\$channel (Irssi::channels()) { Irssi::command(\"CHANNEL ADD -auto \\$channel->{name} \\$channel->{server}->{tag} \\$channel->{key}\")\\;}";
B = "BAN";
BACK = "AWAY";
BANS = "BAN";
BYE = "QUIT";
C = "CLEAR";
CALC = "EXEC - if command -v bc >/dev/null 2>&1\\; then printf '%s=' '$*'\\; echo '$*' | bc -l\\; else echo bc was not found\\; fi";
CHAT = "DCC CHAT";
CUBES = "SCRIPT EXEC Irssi::active_win->print(\"%_bases\", MSGLEVEL_CLIENTCRAP) \\; Irssi::active_win->print( do { join '', map { \"%x0\\${_}0\\$_\" } '0'..'9','A'..'F' }, MSGLEVEL_NEVER | MSGLEVEL_CLIENTCRAP) \\; Irssi::active_win->print(\"%_cubes\", MSGLEVEL_CLIENTCRAP) \\; Irssi::active_win->print( do { my \\$y = \\$_*6 \\; join '', map { my \\$x = \\$_ \\; map { \"%x\\$x\\$_\\$x\\$_\" } @{['0'..'9','A'..'Z']}[\\$y .. \\$y+5] } 1..6 }, MSGLEVEL_NEVER | MSGLEVEL_CLIENTCRAP) for 0..5 \\; Irssi::active_win->print(\"%_grays\", MSGLEVEL_CLIENTCRAP) \\; Irssi::active_win->print( do { join '', map { \"%x7\\${_}7\\$_\" } 'A'..'X' }, MSGLEVEL_NEVER | MSGLEVEL_CLIENTCRAP) \\; Irssi::active_win->print(\"%_mIRC extended colours\", MSGLEVEL_CLIENTCRAP) \\; my \\$x \\; \\$x .= sprintf \"\00399,%02d%02d\",\\$_,\\$_ for 0..15 \\; Irssi::active_win->print(\\$x, MSGLEVEL_NEVER | MSGLEVEL_CLIENTCRAP) \\; for my \\$z (0..6) { my \\$x \\; \\$x .= sprintf \"\00399,%02d%02d\",\\$_,\\$_ for 16+(\\$z*12)..16+(\\$z*12)+11 \\; Irssi::active_win->print(\\$x, MSGLEVEL_NEVER | MSGLEVEL_CLIENTCRAP) }";
DATE = "TIME";
DEHIGHLIGHT = "DEHILIGHT";
DESCRIBE = "ACTION";
DHL = "DEHILIGHT";
EXEMPTLIST = "MODE $C +e";
EXIT = "QUIT";
GOTO = "SCROLLBACK GOTO";
HIGHLIGHT = "HILIGHT";
HL = "HILIGHT";
HOST = "USERHOST";
INVITELIST = "MODE $C +I";
J = "JOIN";
K = "KICK";
KB = "KICKBAN";
KN = "KNOCKOUT";
LAST = "LASTLOG";
LEAVE = "PART";
M = "MSG";
MUB = "UNBAN *";
N = "NAMES";
NMSG = "^MSG";
P = "PART";
Q = "QUERY";
RESET = "SET -default";
RUN = "SCRIPT LOAD";
SAY = "MSG *";
SB = "SCROLLBACK";
SBAR = "STATUSBAR";
SIGNOFF = "QUIT";
SV = "MSG * Irssi $J ($V) - http://www.irssi.org";
T = "TOPIC";
UB = "UNBAN";
UMODE = "MODE $N";
UNSET = "SET -clear";
W = "WHO";
WC = "WINDOW CLOSE";
WG = "WINDOW GOTO";
WJOIN = "JOIN -window";
WI = "WHOIS";
WII = "WHOIS $0 $0";
WL = "WINDOW LIST";
WN = "WINDOW NEW HIDDEN";
WQUERY = "QUERY -window";
WW = "WHOWAS";
1 = "WINDOW GOTO 1";
2 = "WINDOW GOTO 2";
3 = "WINDOW GOTO 3";
4 = "WINDOW GOTO 4";
5 = "WINDOW GOTO 5";
6 = "WINDOW GOTO 6";
7 = "WINDOW GOTO 7";
8 = "WINDOW GOTO 8";
9 = "WINDOW GOTO 9";
10 = "WINDOW GOTO 10";
11 = "WINDOW GOTO 11";
12 = "WINDOW GOTO 12";
13 = "WINDOW GOTO 13";
14 = "WINDOW GOTO 14";
15 = "WINDOW GOTO 15";
16 = "WINDOW GOTO 16";
17 = "WINDOW GOTO 17";
18 = "WINDOW GOTO 18";
19 = "WINDOW GOTO 19";
20 = "WINDOW GOTO 20";
21 = "WINDOW GOTO 21";
22 = "WINDOW GOTO 22";
23 = "WINDOW GOTO 23";
24 = "WINDOW GOTO 24";
25 = "WINDOW GOTO 25";
26 = "WINDOW GOTO 26";
27 = "WINDOW GOTO 27";
28 = "WINDOW GOTO 28";
29 = "WINDOW GOTO 29";
30 = "WINDOW GOTO 30";
31 = "WINDOW GOTO 31";
32 = "WINDOW GOTO 32";
33 = "WINDOW GOTO 33";
34 = "WINDOW GOTO 34";
35 = "WINDOW GOTO 35";
36 = "WINDOW GOTO 36";
37 = "WINDOW GOTO 37";
38 = "WINDOW GOTO 38";
39 = "WINDOW GOTO 39";
40 = "WINDOW GOTO 40";
41 = "WINDOW GOTO 41";
42 = "WINDOW GOTO 42";
43 = "WINDOW GOTO 43";
44 = "WINDOW GOTO 44";
45 = "WINDOW GOTO 45";
46 = "WINDOW GOTO 46";
47 = "WINDOW GOTO 47";
48 = "WINDOW GOTO 48";
49 = "WINDOW GOTO 49";
50 = "WINDOW GOTO 50";
51 = "WINDOW GOTO 51";
52 = "WINDOW GOTO 52";
53 = "WINDOW GOTO 53";
54 = "WINDOW GOTO 54";
55 = "WINDOW GOTO 55";
56 = "WINDOW GOTO 56";
57 = "WINDOW GOTO 57";
58 = "WINDOW GOTO 58";
59 = "WINDOW GOTO 59";
60 = "WINDOW GOTO 60";
61 = "WINDOW GOTO 61";
62 = "WINDOW GOTO 62";
63 = "WINDOW GOTO 63";
64 = "WINDOW GOTO 64";
65 = "WINDOW GOTO 65";
66 = "WINDOW GOTO 66";
67 = "WINDOW GOTO 67";
68 = "WINDOW GOTO 68";
69 = "WINDOW GOTO 69";
70 = "WINDOW GOTO 70";
71 = "WINDOW GOTO 71";
72 = "WINDOW GOTO 72";
73 = "WINDOW GOTO 73";
74 = "WINDOW GOTO 74";
75 = "WINDOW GOTO 75";
76 = "WINDOW GOTO 76";
77 = "WINDOW GOTO 77";
78 = "WINDOW GOTO 78";
79 = "WINDOW GOTO 79";
80 = "WINDOW GOTO 80";
81 = "WINDOW GOTO 81";
82 = "WINDOW GOTO 82";
83 = "WINDOW GOTO 83";
84 = "WINDOW GOTO 84";
85 = "WINDOW GOTO 85";
86 = "WINDOW GOTO 86";
87 = "WINDOW GOTO 87";
88 = "WINDOW GOTO 88";
89 = "WINDOW GOTO 89";
90 = "WINDOW GOTO 90";
91 = "WINDOW GOTO 91";
92 = "WINDOW GOTO 92";
93 = "WINDOW GOTO 93";
94 = "WINDOW GOTO 94";
95 = "WINDOW GOTO 95";
96 = "WINDOW GOTO 96";
97 = "WINDOW GOTO 97";
98 = "WINDOW GOTO 98";
99 = "WINDOW GOTO 99";
};
statusbar = {
items = {
barstart = "{sbstart}";
barend = "{sbend}";
topicbarstart = "{topicsbstart}";
topicbarend = "{topicsbend}";
time = "{sb $Z}";
user = "{sb {sbnickmode $cumode}$N{sbmode $usermode}{sbaway $A}}";
window = "{sb $winref:$tag/$itemname{sbmode $M}}";
window_empty = "{sb $winref{sbservertag $tag}}";
prompt = "{prompt $[.15]itemname}";
prompt_empty = "{prompt $winname}";
topic = " $topic";
topic_empty = " Irssi v$J - http://www.irssi.org";
lag = "{sb Lag: $0-}";
act = "{sb Act: $0-}";
more = "-- more --";
};
default = {
window = {
disabled = "no";
type = "window";
placement = "bottom";
position = "1";
visible = "active";
items = {
barstart = { priority = "100"; };
time = { };
user = { };
window = { };
window_empty = { };
lag = { priority = "-1"; };
act = { priority = "10"; };
more = { priority = "-1"; alignment = "right"; };
barend = { priority = "100"; alignment = "right"; };
};
};
window_inact = {
type = "window";
placement = "bottom";
position = "1";
visible = "inactive";
items = {
barstart = { priority = "100"; };
window = { };
window_empty = { };
more = { priority = "-1"; alignment = "right"; };
barend = { priority = "100"; alignment = "right"; };
};
};
prompt = {
type = "root";
placement = "bottom";
position = "100";
visible = "always";
items = {
prompt = { priority = "-1"; };
prompt_empty = { priority = "-1"; };
input = { priority = "10"; };
};
};
topic = {
type = "root";
placement = "top";
position = "1";
visible = "always";
items = {
topicbarstart = { priority = "100"; };
topic = { };
topic_empty = { };
topicbarend = { priority = "100"; alignment = "right"; };
};
};
};
};
settings = {
core = { real_name = "Nemo"; user_name = "nemo"; nick = "nemo"; };
"fe-text" = { actlist_sort = "refnum"; };
};

View File

@ -0,0 +1,139 @@
## Configuration file for CAVA. Default values are commented out. Use either ';' or '#' for commenting.
[general]
# Smoothing mode. Can be 'normal', 'scientific' or 'waves'. DEPRECATED as of 0.6.0
; mode = normal
# Accepts only non-negative values.
; framerate = 60
# 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off
# new as of 0.6.0 autosens of low values (dynamic range)
# 'overshoot' allows bars to overshoot (in % of terminal height) without initiating autosens. DEPRECATED as of 0.6.0
; autosens = 1
; overshoot = 20
# Manual sensitivity in %. Autosens must be turned off for this to take effect.
# 200 means double height. Accepts only non-negative values.
; sensitivity = 100
# The number of bars (0-200). 0 sets it to auto (fill up console).
# Bars' width and space between bars in number of characters.
; bars = 0
; bar_width = 2
; bar_spacing = 1
# Lower and higher cutoff frequencies for lowest and highest bars
# the bandwidth of the visualizer.
# Note: there is a minimum total bandwidth of 43Mhz x number of bars.
# Cava will automatically increase the higher cutoff if a too low band is specified.
; lower_cutoff_freq = 50
; higher_cutoff_freq = 10000
[input]
# Audio capturing method. Possible methods are: 'pulse', 'alsa' or 'fifo'.
# Defaults to 'pulse', 'alsa' or 'fifo', in that order, dependent on what support cava was built with.
#
# All input methods uses the same config variable 'source'
# to define where it should get the audio.
#
# For pulseaudio 'source' will be the source. Default: 'auto', which uses the monitor source of the default sink
# (all pulseaudio sinks(outputs) have 'monitor' sources(inputs) associated with them).
#
# For alsa 'source' will be the capture device.
# For fifo 'source' will be the path to fifo-file.
; method = pulse
; source = auto
; method = alsa
; source = hw:Loopback,1
; method = fifo
; source = /tmp/mpd.fifo
[output]
# Ouput method. Can be 'ncurses', 'noncurses' or 'raw'.
# 'noncurses' is for systems that does not suport ncurses.
# 'raw' is a 16 bit data stream of the bar heights that can be used to send to other applications.
# 'raw' defaults to 200 bars, which can be adjusted in the 'bars' option above.
; method = ncurses
# Visual channels. Can be 'stereo' or 'mono'.
# 'stereo' mirrors both channels with low frequencies in center.
# 'mono' averages both channels and outputs left to right lowest to highest frequencies.
; channels = stereo
# Raw output target. A fifo will be created if target does not exist.
; raw_target = /dev/stdout
# Raw data format. Can be 'binary' or 'ascii'.
; data_format = binary
# Binary bit format, can be '8bit' (0-255) or '16bit' (0-65530).
; bit_format = 16bit
# Ascii max value. In 'ascii' mode range will run from 0 to value specified here
; ascii_max_range = 1000
# Ascii delimiters. In ascii format each bar and frame is separated by a delimiters.
# Use decimal value in ascii table (i.e. 59 = ';' and 10 = '\n' (line feed)).
; bar_delimiter = 59
; frame_delimiter = 10
[color]
# Colors can be one of seven predefined: black, blue, cyan, green, magenta, red, white, yellow.
# Or defined by hex code '#xxxxxx' (hex code must be within ''). User defined colors requires a
# terminal that can change color definitions such as Gnome-terminal or rxvt.
; background = black
; foreground = cyan
# Gradient mode, only hex defined colors are supported, background must also be defined in hex
# or remain commented out. 1 = on, 0 = off. Warning: for certain terminal emulators cava will
# not able to restore color definitions on exit, simply restart your terminal to restore colors.
; gradient = 0
; gradient_color_1 = '#0099ff'
; gradient_color_2 = '#ff3399'
[smoothing]
# Percentage value for integral smoothing. Takes values from 0 - 100.
# Higher values means smoother, but less precise. 0 to disable.
; integral = 70
# Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable.
; monstercat = 1
; waves = 0;
# Set gravity percentage for "drop off". Higher values means bars will drop faster.
# Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off".
; gravity = 100
# In bar height, bars that would have been lower that this will not be drawn.
; ignore = 0
[eq]
# This one is tricky. You can have as much keys as you want.
# Remember to uncomment more then one key! More keys = more precision.
# Look at readme.md on github for further explanations and examples.
; 1 = 1 # bass
; 2 = 1
; 3 = 1 # midtone
; 4 = 1
; 5 = 1 # treble

View File

@ -0,0 +1 @@
# sub-font="Serif"sub-auto=fuzzy

View File

@ -0,0 +1,2 @@
[install]
# user = yes

View File

@ -1,10 +1,11 @@
; Global settings
[redshift]
temp-day=6200
temp-night=5500
temp-night=4000
transition=1
location-provider=manual
brightness-day=1.0
brightness-night=0.9
; The location provider and adjustment method settings
; are in their own sections.
[manual]

1
files/ruby/.bundle/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
cache/

15
files/ruby/.bundle/config Normal file
View File

@ -0,0 +1,15 @@
---
BUNDLE_PATH: "vendor/bundle"
# BUNDLE_GLOBAL_GEM_CACHE: "true"
BUNDLE_FORCE_RUBY_PLATFORM: "false"
BUNDLE_DEFAULT_INSTALL_USES_PATH: "false"
# BUNDLE_ALLOW_OFFLINE_INSTALL: "true"
BUNDLE_CACHE_ALL: "true"
BUNDLE_BUILD__NOKOGIRI: "--use-system-libraries"
BUNDLE_DISABLE_SHARED_GEMS: "true"
BUNDLE_GEM__COC: "true"
BUNDLE_GEM__TEST: "false"
BUNDLE_GEM__MIT: "false"
BUNDLE_JOBS: "4"
BUNDLE_GEM__CI: "github"
BUNDLE_GEM__RUBOCOP: "true"

View File

@ -1,2 +1,3 @@
install: --no-rdoc --no-ri
update: --no-rdoc --no-ri
update: --no-rdoc --no-ri
gem: --user-install

View File

@ -0,0 +1,7 @@
Copyright 2021 Abhay Rana
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Some files were not shown because too many files have changed in this diff Show More