Skip to content

Instantly share code, notes, and snippets.

View luca-c-xcv's full-sized avatar
πŸ‘¨β€πŸ’»

π™»πšžπšŒπšŠ π™²πšŠπš—πšŽπšœπšœπšŠ luca-c-xcv

πŸ‘¨β€πŸ’»
View GitHub Profile
@luca-c-xcv
luca-c-xcv / config
Created March 12, 2025 15:05
i3wm Configuration for KDE - with max 3 monitor setup
#############
# VARIABLES #
#############
set $super Mod4
set $alt Mod1
# Define name for default screens
set $internal "eDP-1" "eDP-1-1"
set $external "HDMI2" "HDMI-0"
set $dockC "DVI-I-2-1" "DVI-I-1-1"
@luca-c-xcv
luca-c-xcv / .vimrc
Last active May 2, 2024 15:14
vimrc
" PLUGIN MANAGER -------------------------------------------- {{{
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
@luca-c-xcv
luca-c-xcv / 10-eth-wifiHandling.sh
Created March 23, 2023 18:44
Change WiFi's status based on Ethernet connection
#!/bin/bash
export LC_ALL=C
ETH_STATUS=$(nmcli device | grep -w "connected" | grep "ethernet")
function handler()
{
if [[ -n "$ETH_STATUS" ]]; then
nmcli radio wifi off
@luca-c-xcv
luca-c-xcv / Configurations.md
Last active March 4, 2023 15:28
Set Linux to work with a docking station

How to configure a docking station on Linux

⚠️ read the whole guide

My setup

Laptop

ThinkPad T590

  • CPU: Intel(R) Core(TM) i7-8565U
  • RAM: 16GiB
@luca-c-xcv
luca-c-xcv / rEFInd on Mac.md
Last active February 6, 2025 23:19
How to install and customize rEFInd boot manager on Mac

rEFInd on Macintosh

rEFInd is a fork of the rEFIt boot manager. Like rEFIt, rEFInd can auto-detect your installed EFI boot loaders and it presents a pretty GUI menu of boot options. rEFInd goes beyond rEFIt in that rEFInd better handles systems with many boot loaders, gives better control over the boot loader search process, and provides the ability for users to define their own boot loader entries.

Features

  • Support for EFI 1.x and UEFI 2.x computers
  • Support for Mac and PC platforms
  • Graphical and text-mode boot selector
  • Auto-detection of available EFI boot loaders
  • Directly launch Linux 3.3.0 and later kernels with EFI stub loader support
@luca-c-xcv
luca-c-xcv / Personal ufetch.md
Last active March 24, 2023 12:35
Personal ufetch

Customization of ufetch for my Ubuntu rice

@luca-c-xcv
luca-c-xcv / howto.md
Last active March 16, 2025 23:58
responsive Whatsapp Web

Responsive Whatsapp Web

Description

Whatsapp Web is a Whatsapp client with a frontend in HTML, CSS and JS. If you are using it in a browser or in a service collector and you want use it in a small window while maintaining a good levels of usability you can inject this CSS into your browser's tab or service.

Spec

Up to 900px wide the chat list is shown with the profile photos of the contacts, only if you hover over the list the message preview appears and the chat space occupies the remaining space. Above 900px the UI is the default interface.

How to set the monitors dimmer in Linux

Check the driver

Go to /sys/class/backlight and check if you have intel_backlight

Customizing settings

  1. add acpi_backlight=vendor to the end of GRUB_CMDLINE_LINUX_DEFAULT line

  2. create /etc/X11/xorg.conf.d/10-intel.conf file

@luca-c-xcv
luca-c-xcv / manabileDocker.md
Last active February 13, 2022 00:49
Manabile per Docker