+
Skip to content

shgninc/i3

 
 

Repository files navigation

i3

Dependencies on Debian 12

xcompmgr: composite manager for shadows and transparency
imagemagick: screenshot creator
xclip: clipboard manager for sending screenshot to clipboard
pulseaudio-utils: Sound system for POSTIX OSes qlipper: cliboard manager terminator: My lovly terminal

sudo apt install i3 xorg suckless-tools slim imagemagick \
                 qlipper pulseaudio-utils terminator galculator 
sudo cp slim/slim.conf /etc/slim/

Setup

feh-rand: same as feh but use a url to fetch random wallpapers. copy it to system PATH (/usr/local/bin).
i3lock-rand: lock i3 with random images from a path. copy it to system PATH.
i3config: my personal i3 config file. copy it to ~/.config/i3/config (Debian) or ~/.i3/config (Ubuntu).
volume: volume control script. copy it to /usr/local/bin.

custom shortcuts:

  • Super + Shift + f: execute mozilla firefox
  • Super + PrintScreen: create a screenshot and save it to Pictures/date.jpg
  • Super + Shift + PrintScreen: create a screenshot and send it to clipboard
  • Super + Esc: focus on child
  • Super + Space: change keyboard layout
    i3status.conf: custom i3 bar status. this file auto loaded if you copy it to ~/.i3status.conf
    Xresources: some custom config for better font rendering. copy it to ~/.Xresources and restart your X session.
    xorg.conf.d: this directory contains some config files for device input management like synaptic touchpad manager (tap to click, two finger tap to right click) and etc. copy this folder to /etc/X11/ and restart your X session.

Keyboard layout

Edit file /etc/default/keyboard:

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us,ir"
XKBVARIANT=""
XKBOPTIONS="grp:alt_shift_toggle"

BACKSPACE="guess"

And then, to deploy config just run

udevadm trigger --subsystem-match=input --action=change 

Touchpad Setting

If there is laptop and using touchpad, need to make a directory and a simple configuration file:

sudo mkdir -p /etc/X11/xorg.conf.d
sudo touch /etc/X11/xorg.conf.d/90-touchpad.conf

Then paste these lines in the file:

Section "InputClass"
        Identifier "touchpad"
        MatchIsTouchpad "on"
        Driver "libinput"
        Option "Tapping" "on"
EndSection

Thanks to Cody Craven

Sound Setting

The key code is XF86AudioMicMute which you can bind in you i3 config to mute the microphone. The command to mute the current default microphone should be

pactl set-source-mute @DEFAULT_SOURCE@ toggle

https://askubuntu.com/a/14083/25025

https://askubuntu.com/a/1249744/25025

https://forum.manjaro.org/t/muting-microphone-with-fn-f4-function-shortcuts-issue/121038/5

i3lock with clock

To isntall i3lock with showing clock refer to:

https://github.com/Lixxia/i3lock

See the i3lock home page.

Requirements

  • pkg-config
  • libxcb
  • libxcb-util
  • libpam-dev
  • libcairo-dev
  • libxcb-xinerama
  • libxcb-randr
  • libev
  • libx11-dev
  • libx11-xcb-dev
  • libxkbcommon >= 0.5.0
  • libxkbcommon-x11 >= 0.5.0

Building i3lock

We recommend you use the provided package from your distribution. Do not build i3lock unless you have a reason to do so.

First install the dependencies listed in requirements section, then run these commands (might need to be adapted to your OS):

autoreconf --force --install

rm -rf build/
mkdir -p build && cd build/

../configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --disable-sanitizers

make

Screenshots

Idle

Idle state

Key Press

On key press

i3lockmore

Thanks to https://github.com/SammysHP/i3lockmore, By this command we can lock the screen with some effects on i3lock background image.

i3lockmore --image-fill /home/picture/back.jpg

pptp configuration

PPTP_Client

About

my personal i3 window manager configs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.7%
  • CSS 9.8%
  • HTML 6.6%
  • Shell 0.9%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载