Fix screenshot script, start to change font and update dunst conf

master
Quentin Duchemin 2021-11-24 14:38:08 +01:00
parent d8b21c61f5
commit 7205a5f7c8
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
7 changed files with 13 additions and 52 deletions

View File

@ -17,19 +17,9 @@
# will be ignored. # will be ignored.
follow = none follow = none
# The geometry of the window: width = 500
# [{width}]x{height}[+/-{x}+/-{y}] height = 100
# The geometry of the message window. offset = 10x50
# The height is measured in number of notifications everything else
# in pixels. If the width is omitted but the height is given
# ("-geometry x2"), the message window expands over the whole screen
# (dmenu-like). If width is 0, the window expands to the longest
# message displayed. A positive x is measured from the left, a
# negative from the right side of the screen. Y is measured from
# the top and down respectively.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "500x5-30+20"
# Show how many messages are currently hidden (because of geometry). # Show how many messages are currently hidden (because of geometry).
indicate_hidden = yes indicate_hidden = yes
@ -43,11 +33,6 @@
# present (e.g. xcompmgr, compiz, etc.). # present (e.g. xcompmgr, compiz, etc.).
transparency = 10 transparency = 10
# The height of the entire notification. If the height is smaller
# than the font height and padding combined, it will be raised
# to the font height and padding.
notification_height = 0
# Draw a line of "separator_height" pixel height between two # Draw a line of "separator_height" pixel height between two
# notifications. # notifications.
# Set to 0 to disable. # Set to 0 to disable.
@ -61,10 +46,10 @@
# Defines width in pixels of frame around the notification window. # Defines width in pixels of frame around the notification window.
# Set to 0 to disable. # Set to 0 to disable.
frame_width = 0 frame_width = 3
# Defines color of the frame around the notification window. # Defines color of the frame around the notification window.
frame_color = "#aaaaaa" frame_color = "#8EC07C"
# Define a color for the separator. # Define a color for the separator.
# possible values are: # possible values are:
@ -72,7 +57,7 @@
# * foreground: use the same color as the foreground; # * foreground: use the same color as the foreground;
# * frame: use the same color as the frame; # * frame: use the same color as the frame;
# * anything else will be interpreted as a X color. # * anything else will be interpreted as a X color.
separator_color = foreground separator_color = frame
# Sort messages by urgency. # Sort messages by urgency.
sort = yes sort = yes

View File

@ -10,7 +10,7 @@ set $resize_mode Resize — [←] [→] [↑] [↓]
set $film_mode Film Mode — [u]p [d]own set $film_mode Film Mode — [u]p [d]own
# font for window titles. # font for window titles.
font pango:Roboto, Bold 10 font Iosevka Term 11
# use Mouse+$mod to drag floating windows to their wanted position # use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod floating_modifier $mod

View File

@ -8,6 +8,7 @@ import time
import os import os
import requests import requests
import uuid import uuid
import urllib.parse
import json import json
import pyperclip import pyperclip
from config import SCREENSHOT_CONFIG from config import SCREENSHOT_CONFIG
@ -80,9 +81,8 @@ def login():
r = s.post(SCREENSHOT_CONFIG['base_url'] + '/api/Session::init') r = s.post(SCREENSHOT_CONFIG['base_url'] + '/api/Session::init')
# Set the CSRF token for the whole session # Set the CSRF token for the whole session
# Also replace base64 padding
s.headers.update({ s.headers.update({
'X-XSRF-TOKEN': r.cookies['XSRF-TOKEN'].replace('%3D', '') 'X-XSRF-TOKEN': urllib.parse.unquote(r.cookies['XSRF-TOKEN'])
}) })
r = s.post(SCREENSHOT_CONFIG['base_url'] + '/api/Session::login', data=data) r = s.post(SCREENSHOT_CONFIG['base_url'] + '/api/Session::login', data=data)

View File

@ -25,7 +25,7 @@ monitor = ${env:MONITOR:HDMI-0}
[bar/chostytopbar] [bar/chostytopbar]
inherit = bar/common inherit = bar/common
font-0 = NotoSans-Regular:size=10;2 font-0 = Iosevka Term:size=11:size=10;2
font-1 = MaterialIcons-Regular:size=11;4 font-1 = MaterialIcons-Regular:size=11;4
font-2 = Symbola:size=10;2 font-2 = Symbola:size=10;2
font-3 = Weather Icons:size=10;3 font-3 = Weather Icons:size=10;3
@ -62,7 +62,7 @@ padding-right = 5
module-margin-left = 6 module-margin-left = 6
module-margin-right = 6 module-margin-right = 6
font-0 = Roboto:size=10;2 font-0 = Iosevka Term:size=11;2
font-1 = Symbola:size=4;1 font-1 = Symbola:size=4;1
font-2 = Symbola:size=5;1 font-2 = Symbola:size=5;1
font-3 = MaterialIcons-Regular:size=11;4 font-3 = MaterialIcons-Regular:size=11;4

View File

@ -1,24 +0,0 @@
[redshift]
temp-day=6000
temp-night=5000
; Smooth
transition=1
; Brightness change between day and night
brightness-day=1.0
brightness-night=0.8
; Do not change Gamma correction at day, but compensate luminance loss at night
gamma-day=1.0
gamma-night=0.8
; /sys/class/backlight is empty :( And DDC/CI is not implemented by my monitors, so software adjustement... Less dynamic...
adjustment-method=randr
; Let's set Paris as main location to avoid random approximations
location-provider=manual
[manual]
lat=48.6
lon=2.3

2
.zshrc
View File

@ -114,7 +114,7 @@ alias pica_test='mkdir -p ~/sshfs/pica01-test && sshfs qduchemi@pica01-test.pica
eval "$(ssh-agent -s -t 3600)" &>/dev/null eval "$(ssh-agent -s -t 3600)" &>/dev/null
alias lt='ls -lath' alias lt='ls -lath'
export PATH=${PATH}:~/picasoft/pass:$HOME/go/bin/:$HOME/.local/bin export PATH=${PATH}:~/doc/picasoft/pass:$HOME/go/bin/:$HOME/.local/bin:/opt/feather:/opt/resolve/bin
source <(mmctl completion zsh) source <(mmctl completion zsh)

View File

@ -71,7 +71,7 @@ Configuration makes use of these things, just to record but not exhaustive :
* [SpaceFM](https://ignorantguru.github.io/spacefm/) * [SpaceFM](https://ignorantguru.github.io/spacefm/)
* [PlayerCTL](https://github.com/acrisci/playerctl) * [PlayerCTL](https://github.com/acrisci/playerctl)
* [GTK Arc Theme](https://github.com/horst3180/arc-theme) * [GTK Arc Theme](https://github.com/horst3180/arc-theme)
* Fonts : Noto Sans, Noto Emoji, DejaVu Sans, MaterialIcons, Symbola * Fonts : Noto Sans, Noto Emoji, DejaVu Sans, MaterialIcons, Symbola, [ttc-iosevka](https://archlinux.org/packages/?q=ttc-iosevka)
* xdotool, xsel * xdotool, xsel
* gnupg * gnupg
* maim, for screenshot + `pip install pyperclip` * maim, for screenshot + `pip install pyperclip`