Coder Social home page Coder Social logo

i3-setup's Introduction

i3-setup

This repository consists of my i3 files, Scripts and patches

To lock the screen on suspend

  1. Save the Scripts folder in your /home/%username/ directory.
  2. Modify the %i in user and path in "[email protected]" file in Scripts.
  3. Move the [email protected] in /etc/systemd/system.
  4. Make it executable
$ chmod +x [email protected]
  1. Then enable it for your user.
$ systemctl enable lock@<username>.service

This should do the trick.

To show low battery alert

  1. Install feh by:
sudo apt-get install feh
  1. Make the batter-low.sh script executable by
chmod +x battery-low.sh
  1. Edit the config file to run the script on every reload
exec_always /home/shisui/Scripts/battery-low.sh

To setup the brightness settings head over to

https://github.com/jappeace/brightnessctl

To remove screen tearing

1.Install compton by :

sudo apt install compton
  1. Edit ~/.config/compton.conf or wherever you keep your config files
# basic configuration
backend = "glx";
vsync = "opengl-swc";

glx-copy-from-front = true;
glx-swap-method = 2;
xrender-sync = true;
xrender-sync-fence = true;

# transparancy settings for i3
opacity-rule = [
  "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];

or this variation

backend = "glx";
glx-no-stencil = true;
paint-on-overlay = true;
vsync = "opengl-swc";

Choose what is working for you. 3. Now you can start compton with that config file to test if it solves the problem for you:

compton --config ~/.config/compton.conf -b
  1. If that work for you, you can place it in your i3wm config file, so it will be loaded on startup –
exec --no-startup-id compton --config ~/.config/compton.conf -b

Adding live volume measurement in i3status

  1. Edit /etc/i3status.conf and add:
order += "volume master"
  1. Also add the volume function:
volume master {
        format = "♪: %volume"
        format_muted = "♪: muted (%volume)"
        device = "pulse"
}

i3-setup's People

Contributors

pawanw17 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.