Skip to content

Instantly share code, notes, and snippets.

View aRmanNM's full-sized avatar

Arman Naeimi aRmanNM

View GitHub Profile
@aRmanNM
aRmanNM / i3wm_additional_configs.md
Created August 19, 2026 20:09
my i3WM tweaks to improve productivity

my top i3WM config changes that helps with daily tasks. these i gathered from every corner of web. add these anywhere in your config file and log out and in to apply. enjoy 👌

# startup (edit: using exec_always to run on every i3 restart)
exec_always --no-startup-id setxkbmap -layout "us,ir" -option "grp:alt_shift_toggle"
exec_always --no-startup-id ~/.fehbg
exec --no-startup-id diodon

# brightness keys
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5%
@aRmanNM
aRmanNM / custom_block_for_i3_status_bar.md
Last active December 12, 2025 13:16
add custom block to i3 status bar (minimal with simple wrapper script)

copy i3status.conf file to your .config path (~/.config/i3status/config)

mkdir ~/.config/i3status
cp /etc/i3status.conf ~/.config/i3status/config

update config file to allow json output (also add your desired changes here):

@aRmanNM
aRmanNM / acer_laptop_linux.md
Last active January 24, 2025 13:53
Acer A515-57G Quanta Webcam 0x4033 Fix On Linux
  • install kernel header files and build tools
# debian
sudo apt install linux-headers-amd64 build-essential

# fedora (might not be accurate!)
sudo dnf install kernel-devel<kernel_version>
  • check current kernel version
@aRmanNM
aRmanNM / docker-compose.yml
Created December 23, 2022 08:40
grafana + prometheus + node_exporter
version: '3.8'
networks:
monitoring:
driver: bridge
volumes:
prometheus_data: {}
grafana_data: {}
@aRmanNM
aRmanNM / book-store-service.ts
Created April 5, 2021 07:23
Observable Data Service
@Injectable({
providedIn: 'root'
})
export class BookStoreService {
private _books = new BehaviorSubject<Book[]>([]);
public readonly books$: Observable<Book[]> = this._books.asObservable();
constructor(private bookBackend: BookBackendService) {
this.getBooks();
}