Code Monkey home page Code Monkey logo

dotfiles's Introduction

Hi ๐Ÿ‘‹, I'm Cristian!

A software engineer from Argentina ๐Ÿ‡ฆ๐Ÿ‡ท

cristianmiranda cristian-miranda-4a80b522


cristianmiranda

dotfiles's People

Contributors

cristianmiranda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dotfiles's Issues

๐Ÿ“ก mbp[bcm43602]: Fix wireless board on suspend

bumblebee-status: module.left-click through config file

Revert custom changes on bumblebee-status repo and use config file to handle left-click actions.
Also, do the following on all git submodules (including bumblebee-status):

git -C $SUBMODULE submodule sync --quiet --recursive
git submodule update --init --recursive $SUBMODULE

๐Ÿ‘จโ€๐ŸŽจ Themes ๐ŸŽจ

Things to modify when changing theme

  • i3 bar
  • bumblebee-status
  • Wallpaper
  • VS Code
  • IDEA
  • Webstorm
  • GTK 2.0
  • GTK 3.0
  • vim (theme & vim-airline)
  • terminator
  • Firefox
  • Stylus (Firefox addon)
  • Chromium
  • Rofi
  • bashtop
  • dunst

๐Ÿ˜ด [suspend/resume]: Add custom script

At the moment Power Manager is in charge of what happens when the lid gets closed/opened and sometimes when switching displays power gets cut off and the computer gets suspended.

TODO:

  • Replace Power Manager with a custom script that adds a delay (e.g: 30s or so) to give displays some time to turn on and therefore prevent the laptop to go to sleep.

Docs:

Listen to incoming libnotify notifications using DBus

Relace dunst scripting with a better and more solid approach using DBus notifications.

See https://askubuntu.com/questions/89279/listening-to-incoming-libnotify-notifications-using-dbus

import glib
import dbus
from dbus.mainloop.glib import DBusGMainLoop

def print_notification(bus, message):
  keys = ["app_name", "replaces_id", "app_icon", "summary",
          "body", "actions", "hints", "expire_timeout"]
  args = message.get_args_list()
  if len(args) == 8:
    notification = dict([(keys[i], args[i]) for i in range(8)])
    print notification["app_name"], notification["summary"], notification["body"]

loop = DBusGMainLoop(set_as_default=True)
session_bus = dbus.SessionBus()
session_bus.add_match_string("type='method_call',interface='org.freedesktop.Notifications',member='Notify',eavesdrop=true")
session_bus.add_message_filter(print_notification)

glib.MainLoop().run()

๐Ÿ bumblebee-status[modules]: dunst-count


image

TODO:

Relace dunst scripting with a better and more solid approach using DBus notifications.

See https://askubuntu.com/questions/89279/listening-to-incoming-libnotify-notifications-using-dbus

import glib
import dbus
from dbus.mainloop.glib import DBusGMainLoop

def print_notification(bus, message):
  keys = ["app_name", "replaces_id", "app_icon", "summary",
          "body", "actions", "hints", "expire_timeout"]
  args = message.get_args_list()
  if len(args) == 8:
    notification = dict([(keys[i], args[i]) for i in range(8)])
    print notification["app_name"], notification["summary"], notification["body"]

loop = DBusGMainLoop(set_as_default=True)
session_bus = dbus.SessionBus()
session_bus.add_match_string("type='method_call',interface='org.freedesktop.Notifications',member='Notify',eavesdrop=true")
session_bus.add_message_filter(print_notification)

glib.MainLoop().run()

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.