small improvement in polybar config, added script to show with feh picture from clipboard

master
bvn13 2020-12-04 15:49:55 +03:00
parent 2d943b5a7d
commit 550e68bfff
3 changed files with 11 additions and 3 deletions

7
config
View File

@ -11,14 +11,14 @@ set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
#font pango:monospace 8
font pango:Iosevka Medium 8
#font pango:Iosevka Medium 8
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
@ -194,6 +194,8 @@ bindsym --release Print exec --no-startup-id scrot -m '%Y%m%d-
#bindsym --release $mod+Print exec --no-startup-id scrot -s '%Y%m%d-%H%M%S.png' -e 'mv $f ~/Nextcloud/raffle/screenshots/'
bindsym --release $mod+Print exec --no-startup-id scrot -s '/tmp/%F_%T_$wx$h.png' -e 'xclip -selection clipboard -target image/png -i $f'
bindsym --release $mod+Shift+Print exec --no-startup-id $HOME/.config/i3/scripts/show-clip-pic.sh
### Audio volume
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse sset Master toggle
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 10%+
@ -260,6 +262,7 @@ exec_always --no-startup-id ~/.config/i3/i3-auto-layout-run
bindsym $mod+x [urgent=latest] focus
bindsym $mod+p exec pavucontrol
# xprop
for_window [class="(?i)pavucontrol"] floating enable
for_window [class="(?i)gnome-calculator"] floating enable
for_window [class="(?i)gnome-calendar"] floating enable

View File

@ -9,6 +9,6 @@ killall -q polybar
# Launch bar1 and bar2
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
polybar --config=$HOME/.config/i3/polybar.conf mybar >>/tmp/polybar1.log 2>&1
polybar --config=$HOME/.config/i3/polybar.conf mybar >>/tmp/polybar1.log 2>&1 &
echo "Bars launched..."

View File

@ -0,0 +1,5 @@
#!/bin/bash
uuid=$(uuidgen)
xclip -out -selection clipboard > /tmp/$uuid && feh /tmp/$uuid