Lots of changes in curacao

This commit is contained in:
Geoffrey Frogeye 2018-10-08 23:52:53 +02:00
parent 4bf544c9be
commit 3d24d97d51
16 changed files with 46 additions and 21 deletions

3
config/autorandr/bg Normal file
View file

@ -0,0 +1,3 @@
# Derivate of these ones https://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-230622.png
https://geoffrey.frogeye.fr/files/backgrounds/VertBleu.png
# https://geoffrey.frogeye.fr/files/backgrounds/BleuVert.png

View file

@ -1,10 +1,26 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
# From https://stackoverflow.com/a/246128
# Relaunch the bars
# i3-msg exec ~/.config/polybar/launch.sh
# TODO Make something better with that
i3-msg exec ~/.config/lemonbar/launch.sh
# Resize background
feh --bg-fill ~/.config/i3/bg.jpg
BGDIR="$HOME/.cache/background"
mkdir -p "$BGDIR"
list="$DIR/bg"
url="$(cat "$list" | sed -e 's/#.*$//' -e 's/ \+$//' -e '/^$/d' | sort -R | head -1)"
hash="$(printf "$url" | md5sum | cut -f1 -d' ')"
filepath="$BGDIR/$hash"
if [ ! -e "$filepath" ]; then
wget -c "$url" -O "$filepath"
fi
feh --bg-fill "$filepath"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 KiB

View file

@ -38,8 +38,8 @@ bindsym $mod+z kill
bindsym button2 kill
bindsym $mod+c exec --no-startup-id rofi-pass --last-used
bindsym $mod+asterisk exec --no-startup-id rofi -modi ssh -show ssh
bindsym $mod+dollar exec --no-startup-id rofi -modi ssh -show ssh -ssh-command '{terminal} -e {ssh-client} {host} -t "sudo -s -E"'
bindsym $mod+plus exec --no-startup-id rofi -modi ssh -show ssh
bindsym $mod+ù exec --no-startup-id rofi -modi ssh -show ssh -ssh-command '{terminal} -e {ssh-client} {host} -t "sudo -s -E"'
bindsym $mod+Tab exec --no-startup-id rofi -modi window -show window
# start program launcher
@ -48,6 +48,7 @@ bindsym $mod+Shift+d exec --no-startup-id rofi -modi drun -show drun
# Start Applications
bindsym $mod+Return exec urxvtc
bindsym $mod+Shift+Return exec urxvt
bindsym $mod+p exec thunar
bindsym $mod+m exec qutebrowser --override-restore --backend=webengine
@ -64,8 +65,8 @@ bindsym $mod+F11 exec urxvtc -e 'pacmixer'
bindsym $mod+F12 exec urxvtc -e 'pacmixer'
#Brightness control
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 -time 0
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 -time 0
bindsym XF86MonBrightnessDown exec xbacklight -dec 5 -time 0
bindsym XF86MonBrightnessUp exec xbacklight -inc 5 -time 0
# Screenshots
bindsym Print exec scrot -ue 'mv $f ~/Screenshots/'

View file

@ -1,5 +1,4 @@
#!/usr/bin/env python3
from providers import *
# TODO If multiple screen, expand the sections and share them

View file

@ -223,6 +223,8 @@ class PulseaudioProvider(StatefulSection, ThreadedUpdater):
icon = ""
elif sink.port_active.name == "analog-output-speaker":
icon = "" if sink.mute else ""
elif sink.port_active.name == "headset-output":
icon = ''
else:
icon = "?"
vol = pulse.volume_get_all_chans(sink)
@ -265,7 +267,7 @@ class NetworkProviderSection(StatefulSection, Updater):
self.icon = ''
else:
self.icon = ''
elif self.iface.startswith('wlan') or self.iface.startswith('wlp'):
elif self.iface.startswith('wlan') or self.iface.startswith('wl'):
self.icon = ''
if self.showSsid:
cmd = ["iwgetid", self.iface, "--raw"]

View file

@ -10,7 +10,7 @@
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.
#
music_directory "~/Musique"
music_directory "~/Musiques"
#
# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use

View file

@ -83,7 +83,8 @@ config.bind('T', None)
import os
dirname = os.path.dirname(__file__)
filename = os.path.join(dirname, 'theme.py')
exec(open(filename).read())
with open(filename) as file:
exec(file.read())
# Uncomment this to still load settings configured via autoconfig.yml
config.load_autoconfig()

View file

@ -1 +0,0 @@
/usr/lib/systemd/user/offlineimap.service