small improvement in polybar config, added script to show with feh picture from clipboard
This commit is contained in:
parent
2d943b5a7d
commit
550e68bfff
7
config
7
config
@ -11,14 +11,14 @@ set $mod Mod4
|
|||||||
# Font for window titles. Will also be used by the bar unless a different font
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
# is used in the bar {} block below.
|
# is used in the bar {} block below.
|
||||||
#font pango:monospace 8
|
#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
|
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||||
#font pango:DejaVu Sans Mono 8
|
#font pango:DejaVu Sans Mono 8
|
||||||
|
|
||||||
# Before i3 v4.8, we used to recommend this one as the default:
|
# 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
|
# 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
|
# 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
|
# 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 '%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+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
|
### Audio volume
|
||||||
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse sset Master toggle
|
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse sset Master toggle
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -D pulse sset Master 10%+
|
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+x [urgent=latest] focus
|
||||||
bindsym $mod+p exec pavucontrol
|
bindsym $mod+p exec pavucontrol
|
||||||
|
|
||||||
|
# xprop
|
||||||
for_window [class="(?i)pavucontrol"] floating enable
|
for_window [class="(?i)pavucontrol"] floating enable
|
||||||
for_window [class="(?i)gnome-calculator"] floating enable
|
for_window [class="(?i)gnome-calculator"] floating enable
|
||||||
for_window [class="(?i)gnome-calendar"] floating enable
|
for_window [class="(?i)gnome-calendar"] floating enable
|
||||||
|
@ -9,6 +9,6 @@ killall -q polybar
|
|||||||
|
|
||||||
# Launch bar1 and bar2
|
# Launch bar1 and bar2
|
||||||
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
|
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..."
|
echo "Bars launched..."
|
||||||
|
5
scripts/show-clip-pic.sh
Executable file
5
scripts/show-clip-pic.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
uuid=$(uuidgen)
|
||||||
|
|
||||||
|
xclip -out -selection clipboard > /tmp/$uuid && feh /tmp/$uuid
|
Loading…
Reference in New Issue
Block a user