From 7205a5f7c8491914a6fdb1607a711cdf9b286bfe Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Wed, 24 Nov 2021 14:38:08 +0100 Subject: [PATCH] Fix screenshot script, start to change font and update dunst conf --- .config/dunst/dunstrc | 27 ++++++--------------------- .config/i3/config_common | 2 +- .config/i3/scripts/screenshot.py | 4 ++-- .config/polybar/config_common | 4 ++-- .config/redshift.conf | 24 ------------------------ .zshrc | 2 +- README.md | 2 +- 7 files changed, 13 insertions(+), 52 deletions(-) delete mode 100644 .config/redshift.conf diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index eddbff4..782dffd 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -17,19 +17,9 @@ # will be ignored. follow = none - # The geometry of the window: - # [{width}]x{height}[+/-{x}+/-{y}] - # The geometry of the message window. - # 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" + width = 500 + height = 100 + offset = 10x50 # Show how many messages are currently hidden (because of geometry). indicate_hidden = yes @@ -43,11 +33,6 @@ # present (e.g. xcompmgr, compiz, etc.). 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 # notifications. # Set to 0 to disable. @@ -61,10 +46,10 @@ # Defines width in pixels of frame around the notification window. # Set to 0 to disable. - frame_width = 0 + frame_width = 3 # Defines color of the frame around the notification window. - frame_color = "#aaaaaa" + frame_color = "#8EC07C" # Define a color for the separator. # possible values are: @@ -72,7 +57,7 @@ # * foreground: use the same color as the foreground; # * frame: use the same color as the frame; # * anything else will be interpreted as a X color. - separator_color = foreground + separator_color = frame # Sort messages by urgency. sort = yes diff --git a/.config/i3/config_common b/.config/i3/config_common index 917062a..d1b4632 100644 --- a/.config/i3/config_common +++ b/.config/i3/config_common @@ -10,7 +10,7 @@ set $resize_mode Resize — [←] [→] [↑] [↓] set $film_mode Film Mode — [u]p [d]own # font for window titles. -font pango:Roboto, Bold 10 +font Iosevka Term 11 # use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod diff --git a/.config/i3/scripts/screenshot.py b/.config/i3/scripts/screenshot.py index 5753c14..275651a 100755 --- a/.config/i3/scripts/screenshot.py +++ b/.config/i3/scripts/screenshot.py @@ -8,6 +8,7 @@ import time import os import requests import uuid +import urllib.parse import json import pyperclip from config import SCREENSHOT_CONFIG @@ -80,9 +81,8 @@ def login(): r = s.post(SCREENSHOT_CONFIG['base_url'] + '/api/Session::init') # Set the CSRF token for the whole session - # Also replace base64 padding 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) diff --git a/.config/polybar/config_common b/.config/polybar/config_common index 5d13c28..59dd2e6 100644 --- a/.config/polybar/config_common +++ b/.config/polybar/config_common @@ -25,7 +25,7 @@ monitor = ${env:MONITOR:HDMI-0} [bar/chostytopbar] 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-2 = Symbola:size=10;2 font-3 = Weather Icons:size=10;3 @@ -62,7 +62,7 @@ padding-right = 5 module-margin-left = 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-2 = Symbola:size=5;1 font-3 = MaterialIcons-Regular:size=11;4 diff --git a/.config/redshift.conf b/.config/redshift.conf deleted file mode 100644 index f023807..0000000 --- a/.config/redshift.conf +++ /dev/null @@ -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 diff --git a/.zshrc b/.zshrc index 00e2386..18acc04 100644 --- a/.zshrc +++ b/.zshrc @@ -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 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) diff --git a/README.md b/README.md index ffbdd85..804a805 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ Configuration makes use of these things, just to record but not exhaustive : * [SpaceFM](https://ignorantguru.github.io/spacefm/) * [PlayerCTL](https://github.com/acrisci/playerctl) * [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 * gnupg * maim, for screenshot + `pip install pyperclip`