Posodobitve
parent
79430b7133
commit
d624028f0a
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#simple Shellscript for i3blocks on Pinebook pro
|
||||||
|
#05012020 geri123@gmx.net Gerhard S.
|
||||||
|
#battery-symbols: on Manjaro you need the awesome-terminal-fonts package installed!
|
||||||
|
PERCENT=$(cat /sys/class/power_supply/cw2015-battery/capacity)
|
||||||
|
STATUS=$(cat /sys/class/power_supply/cw2015-battery/status)
|
||||||
|
case $((
|
||||||
|
$PERCENT >= 0 && $PERCENT <= 20 ? 1 :
|
||||||
|
$PERCENT > 20 && $PERCENT <= 40 ? 2 :
|
||||||
|
$PERCENT > 40 && $PERCENT <= 60 ? 3 :
|
||||||
|
$PERCENT > 60 && $PERCENT <= 80 ? 4 : 5)) in
|
||||||
|
#
|
||||||
|
(1) echo $STATUS "" $PERCENT%;;
|
||||||
|
(2) echo $STATUS "" $PERCENT%;;
|
||||||
|
(3) echo $STATUS "" $PERCENT%;;
|
||||||
|
(4) echo $STATUS "" $PERCENT%;;
|
||||||
|
(5) echo $STATUS "" $PERCENT%;;
|
||||||
|
esac
|
|
@ -5,7 +5,7 @@
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
|
|
||||||
# DPI scaling
|
# DPI scaling
|
||||||
exec xrandr --dpi 158
|
exec xrandr --dpi 157
|
||||||
|
|
||||||
# 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.
|
||||||
|
@ -13,7 +13,7 @@ exec xrandr --dpi 158
|
||||||
#font pango:Fira Code 10
|
#font pango:Fira Code 10
|
||||||
#font pango:Cantarell 10
|
#font pango:Cantarell 10
|
||||||
#font pango:Fira Mono, Icons 9
|
#font pango:Fira Mono, Icons 9
|
||||||
font pango:Iosevka Medium 8
|
font pango:Iosevka Medium 10
|
||||||
|
|
||||||
# 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).
|
||||||
|
@ -182,9 +182,15 @@ mode "resize" {
|
||||||
bindsym $mod+r mode "resize"
|
bindsym $mod+r mode "resize"
|
||||||
|
|
||||||
# External monitor
|
# External monitor
|
||||||
|
<<<<<<< HEAD
|
||||||
set $restart_compton (killall compton && compton -b) || compton -b
|
set $restart_compton (killall compton && compton -b) || compton -b
|
||||||
bindsym $mod+p exec xrandr --output HDMI-2 --auto --right-of eDP-1 && $set_bg && $restart_compton
|
bindsym $mod+p exec xrandr --output HDMI-2 --auto --right-of eDP-1 && $set_bg && $restart_compton
|
||||||
bindsym $mod+Shift+p exec xrandr --output HDMI-2 --off && $restart_compton
|
bindsym $mod+Shift+p exec xrandr --output HDMI-2 --off && $restart_compton
|
||||||
|
=======
|
||||||
|
#set $restart_compton (killall compton && compton -b) || compton -b
|
||||||
|
#bindsym $mod+p exec xrandr --output HDMI-1 --auto --right-of eDP-1 && $set_bg && $restart_compton
|
||||||
|
#bindsym $mod+Shift+p exec xrandr --output HDMI-1 --off && $restart_compton
|
||||||
|
>>>>>>> 46ad6f3 (Posodobitve)
|
||||||
|
|
||||||
# Lock screen
|
# Lock screen
|
||||||
bindsym $mod+shift+b exec i3lock-fancy
|
bindsym $mod+shift+b exec i3lock-fancy
|
||||||
|
@ -227,15 +233,22 @@ exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapp
|
||||||
|
|
||||||
# Touchpad natural scrolling
|
# Touchpad natural scrolling
|
||||||
exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Natural Scrolling Enabled" 1
|
exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Natural Scrolling Enabled" 1
|
||||||
|
<<<<<<< HEAD
|
||||||
|
=======
|
||||||
|
exec --no-startup-id xinput set-prop "Elan Touchpad" "libinput Natural Scrolling Enabled" 1
|
||||||
|
exec --no-startup-id xinput set-prop 'HAILUCK CO.,LTD USB KEYBOARD Touchpad' 'libinput Natural Scrolling Enabled' 1
|
||||||
|
|
||||||
|
>>>>>>> 46ad6f3 (Posodobitve)
|
||||||
|
|
||||||
# Cursor acceleration
|
# Cursor acceleration
|
||||||
exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Accel Speed" 0.456
|
exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Accel Speed" 0.456
|
||||||
|
exec --no-startup-id xinput set-prop 'HAILUCK CO.,LTD USB KEYBOARD Touchpad' 'libinput Accel Speed' 0.6
|
||||||
|
|
||||||
# Autolock
|
# Autolock
|
||||||
#exec --no-startup-id xautolock -time 10 -locker 'i3lock-next' &
|
#exec --no-startup-id xautolock -time 10 -locker 'i3lock-next' &
|
||||||
|
|
||||||
# Transparency
|
# Transparency
|
||||||
exec --no-startup-id compton --unredir-if-possible -b
|
#exec --no-startup-id compton --unredir-if-possible -b
|
||||||
|
|
||||||
# Redshift (hello sleep)
|
# Redshift (hello sleep)
|
||||||
#exec --no-startup-id redshift-gtk -l 46.0552778:14.5144444 &
|
#exec --no-startup-id redshift-gtk -l 46.0552778:14.5144444 &
|
||||||
|
@ -303,8 +316,10 @@ bindsym $mod+d exec --no-startup-id "rofi -combi-modi window,drun,run -show comb
|
||||||
|
|
||||||
# Screen brightness
|
# Screen brightness
|
||||||
set $brt_sig_cmd pkill -RTMIN+5 i3blocks
|
set $brt_sig_cmd pkill -RTMIN+5 i3blocks
|
||||||
bindsym XF86MonBrightnessUp exec "xbacklight -inc 8.333 -time 222 -steps 5 && $brt_sig_cmd"
|
#bindsym XF86MonBrightnessUp exec "xbacklight -inc 8.333 -time 222 -steps 5 && $brt_sig_cmd"
|
||||||
bindsym XF86MonBrightnessDown exec "xbacklight -dec 8.333 -time 222 -steps 5 && $brt_sig_cmd"
|
#bindsym XF86MonBrightnessDown exec "xbacklight -dec 8.333 -time 222 -steps 5 && $brt_sig_cmd"
|
||||||
|
bindsym XF86MonBrightnessUp exec "/home/g1smo/bin/lcd_bright.sh U 200 && $brt_sig_cmd"
|
||||||
|
bindsym XF86MonBrightnessDown exec "/home/g1smo/bin/lcd_bright.sh D 200 && $brt_sig_cmd"
|
||||||
|
|
||||||
# Radio študent
|
# Radio študent
|
||||||
bindsym Mod1+shift+r exec vlc /home/g1smo/Glasba/rs.m3u
|
bindsym Mod1+shift+r exec vlc /home/g1smo/Glasba/rs.m3u
|
||||||
|
@ -325,3 +340,6 @@ exec ~/.local/bin/autotiling
|
||||||
|
|
||||||
# Rdecenje skrina
|
# Rdecenje skrina
|
||||||
exec gammastep -l 46.05108:14.50513
|
exec gammastep -l 46.05108:14.50513
|
||||||
|
|
||||||
|
exec --no-startup-id /usr/share/gnome-settings-daemon
|
||||||
|
|
||||||
|
|
|
@ -244,7 +244,7 @@ bar {
|
||||||
active_workspace $ospredjeTrans $ospredjeTrans $ozadje
|
active_workspace $ospredjeTrans $ospredjeTrans $ozadje
|
||||||
inactive_workspace $ozadje $ozadje $ospredje
|
inactive_workspace $ozadje $ozadje $ospredje
|
||||||
}
|
}
|
||||||
font pango:FontAwesome, Iosevka SS01 Medium 12
|
font pango:FontAwesome Regular 12, Iosevka SS01 Medium 12
|
||||||
strip_workspace_numbers yes
|
strip_workspace_numbers yes
|
||||||
height 26
|
height 26
|
||||||
#tray_padding 2
|
#tray_padding 2
|
||||||
|
@ -278,9 +278,6 @@ hide_edge_borders smart
|
||||||
# Mouse focus
|
# Mouse focus
|
||||||
focus_follows_mouse yes
|
focus_follows_mouse yes
|
||||||
|
|
||||||
# Premik kurzorja v aktivno okno
|
|
||||||
#mouse_warping container
|
|
||||||
|
|
||||||
# KBD layouti
|
# KBD layouti
|
||||||
input "type:keyboard" {
|
input "type:keyboard" {
|
||||||
xkb_layout us,si
|
xkb_layout us,si
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[options]
|
[options]
|
||||||
font = Fira Mono Medium 8
|
font = Fira Mono Medium 11
|
||||||
|
|
||||||
[colors]
|
[colors]
|
||||||
#!!##############################################
|
#!!##############################################
|
||||||
|
|
|
@ -43,7 +43,11 @@ signal=10
|
||||||
[brightness]
|
[brightness]
|
||||||
label=
|
label=
|
||||||
color=#F8FF05
|
color=#F8FF05
|
||||||
|
<<<<<<< HEAD
|
||||||
command=echo -n "$label $(xbacklight -get | sed -e 's/\.[0-9]\+//')%"
|
command=echo -n "$label $(xbacklight -get | sed -e 's/\.[0-9]\+//')%"
|
||||||
|
=======
|
||||||
|
command=/home/g1smo/bin/lcd_bright.sh
|
||||||
|
>>>>>>> 46ad6f3 (Posodobitve)
|
||||||
interval=once
|
interval=once
|
||||||
signal=5
|
signal=5
|
||||||
|
|
||||||
|
@ -57,7 +61,11 @@ interval=persist
|
||||||
#label=MEM
|
#label=MEM
|
||||||
label=
|
label=
|
||||||
color=#A85FFF
|
color=#A85FFF
|
||||||
|
<<<<<<< HEAD
|
||||||
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/memory/memory | sed -r 's/ \(.+//'
|
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/memory/memory | sed -r 's/ \(.+//'
|
||||||
|
=======
|
||||||
|
command=/home/g1smo/Sredstva/i3blocks-contrib/memory/memory | sed -r 's/ \(.+//'
|
||||||
|
>>>>>>> 46ad6f3 (Posodobitve)
|
||||||
interval=10
|
interval=10
|
||||||
|
|
||||||
#[memory]
|
#[memory]
|
||||||
|
@ -71,6 +79,7 @@ interval=10
|
||||||
# The directory defaults to $HOME if the instance is not specified.
|
# The directory defaults to $HOME if the instance is not specified.
|
||||||
# The script may be called with a optional argument to set the alert
|
# The script may be called with a optional argument to set the alert
|
||||||
# (defaults to 10 for 10%).
|
# (defaults to 10 for 10%).
|
||||||
|
<<<<<<< HEAD
|
||||||
[disk-root]
|
[disk-root]
|
||||||
label=
|
label=
|
||||||
color=#AAAAAA
|
color=#AAAAAA
|
||||||
|
@ -90,6 +99,14 @@ label=
|
||||||
color=#AAAAAA
|
color=#AAAAAA
|
||||||
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/disk/disk
|
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/disk/disk
|
||||||
instance=/var
|
instance=/var
|
||||||
|
=======
|
||||||
|
[disk]
|
||||||
|
#label=HOME
|
||||||
|
label=
|
||||||
|
color=#AAAAAA
|
||||||
|
command=/home/g1smo/Sredstva/i3blocks-contrib/disk/disk
|
||||||
|
#instance=/mnt/data
|
||||||
|
>>>>>>> 46ad6f3 (Posodobitve)
|
||||||
interval=30
|
interval=30
|
||||||
|
|
||||||
[iface]
|
[iface]
|
||||||
|
@ -107,7 +124,11 @@ instance=wlp2s0
|
||||||
interval=10
|
interval=10
|
||||||
label=
|
label=
|
||||||
color=#11DD00
|
color=#11DD00
|
||||||
|
<<<<<<< HEAD
|
||||||
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/wifi/wifi
|
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/wifi/wifi
|
||||||
|
=======
|
||||||
|
command=/home/g1smo/Sredstva/i3blocks-contrib/wifi/wifi
|
||||||
|
>>>>>>> 46ad6f3 (Posodobitve)
|
||||||
#separator=false
|
#separator=false
|
||||||
|
|
||||||
#[bandwidth]
|
#[bandwidth]
|
||||||
|
@ -122,9 +143,15 @@ command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/wifi/wifi
|
||||||
#label=CPU
|
#label=CPU
|
||||||
#label=
|
#label=
|
||||||
#label=
|
#label=
|
||||||
|
<<<<<<< HEAD
|
||||||
label=
|
label=
|
||||||
#command=/home/g1smo/sredstva/i3blocks-contrib/cpu_usage/cpu_usage | sed -r 's/^([0-9])\./\ \1\./'
|
#command=/home/g1smo/sredstva/i3blocks-contrib/cpu_usage/cpu_usage | sed -r 's/^([0-9])\./\ \1\./'
|
||||||
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/cpu_usage/cpu_usage -d 1
|
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/cpu_usage/cpu_usage -d 1
|
||||||
|
=======
|
||||||
|
label=
|
||||||
|
#command=/home/g1smo/Sredstva/i3blocks-contrib/cpu_usage/cpu_usage | sed -r 's/^([0-9])\./\ \1\./'
|
||||||
|
command=/home/g1smo/Sredstva/i3blocks-contrib/cpu_usage/cpu_usage -d 1
|
||||||
|
>>>>>>> 46ad6f3 (Posodobitve)
|
||||||
color=#FA0009
|
color=#FA0009
|
||||||
interval=1
|
interval=1
|
||||||
align=right
|
align=right
|
||||||
|
@ -137,13 +164,22 @@ min_width= 99.0%
|
||||||
label=
|
label=
|
||||||
color=#70E2FF
|
color=#70E2FF
|
||||||
interval=3
|
interval=3
|
||||||
|
<<<<<<< HEAD
|
||||||
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/load_average/load_average
|
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/load_average/load_average
|
||||||
|
=======
|
||||||
|
command=/home/g1smo/Sredstva/i3blocks-contrib/load_average/load_average
|
||||||
|
>>>>>>> 46ad6f3 (Posodobitve)
|
||||||
|
|
||||||
[key_layout]
|
[key_layout]
|
||||||
label=⌨
|
label=⌨
|
||||||
interval=5
|
interval=5
|
||||||
|
<<<<<<< HEAD
|
||||||
#command="/home/h1smo/sredstva/i3blocks-contrib/key_layout/key_layout"
|
#command="/home/h1smo/sredstva/i3blocks-contrib/key_layout/key_layout"
|
||||||
command=echo -n "$label ";xkb-switch
|
command=echo -n "$label ";xkb-switch
|
||||||
|
=======
|
||||||
|
#command="/home/h1smo/Sredstva/i3blocks-contrib/key_layout/key_layout"
|
||||||
|
command=xkb-switch
|
||||||
|
>>>>>>> 46ad6f3 (Posodobitve)
|
||||||
#interval=persist
|
#interval=persist
|
||||||
#command="/home/h1smo/sredstva/i3blocks-contrib/kbdd_layout/kbdd_layout"
|
#command="/home/h1smo/sredstva/i3blocks-contrib/kbdd_layout/kbdd_layout"
|
||||||
|
|
||||||
|
@ -152,15 +188,24 @@ command=echo -n "$label ";xkb-switch
|
||||||
#label=⚡
|
#label=⚡
|
||||||
#instance=1
|
#instance=1
|
||||||
#command=count=$(acpi -b | wc -l); sum=$(acpi -b | egrep -o '[0-9]{1,3}%' | tr -d '%' | xargs -I% echo -n '+%'); echo '' $(( sum / count ))%
|
#command=count=$(acpi -b | wc -l); sum=$(acpi -b | egrep -o '[0-9]{1,3}%' | tr -d '%' | xargs -I% echo -n '+%'); echo '' $(( sum / count ))%
|
||||||
|
<<<<<<< HEAD
|
||||||
command="/home/g1smo/sredstva/i3blocks-contrib/battery2/battery2"
|
command="/home/g1smo/sredstva/i3blocks-contrib/battery2/battery2"
|
||||||
|
=======
|
||||||
|
command="/home/g1smo/Sredstva/dotfiles/.config/i3/battery_stat.sh"
|
||||||
|
>>>>>>> 46ad6f3 (Posodobitve)
|
||||||
interval=30
|
interval=30
|
||||||
markup=pango
|
markup=pango
|
||||||
|
|
||||||
[date]
|
[date]
|
||||||
label=
|
label=
|
||||||
color=#ffffff
|
color=#ffffff
|
||||||
|
<<<<<<< HEAD
|
||||||
command=echo -n "$label ";date '+%a %d %b'
|
command=echo -n "$label ";date '+%a %d %b'
|
||||||
#command=/home/g1smo/sredstva/i3blocks-contrib/rofi-calendar/rofi-calendar
|
#command=/home/g1smo/sredstva/i3blocks-contrib/rofi-calendar/rofi-calendar
|
||||||
|
=======
|
||||||
|
command=date '+%a %d %b'
|
||||||
|
#command=/home/g1smo/Sredstva/i3blocks-contrib/rofi-calendar/rofi-calendar
|
||||||
|
>>>>>>> 46ad6f3 (Posodobitve)
|
||||||
interval=5
|
interval=5
|
||||||
separator=false
|
separator=false
|
||||||
|
|
||||||
|
|
|
@ -261,7 +261,7 @@ It should only modify the values of Spacemacs settings."
|
||||||
;; Default font, or prioritized list of fonts. `powerline-scale' allows to
|
;; Default font, or prioritized list of fonts. `powerline-scale' allows to
|
||||||
;; quickly tweak the mode-line size to make separators look not too crappy.
|
;; quickly tweak the mode-line size to make separators look not too crappy.
|
||||||
dotspacemacs-default-font '("Iosevka Medium"
|
dotspacemacs-default-font '("Iosevka Medium"
|
||||||
:size 16
|
:size 13
|
||||||
:weight bold
|
:weight bold
|
||||||
:width normal
|
:width normal
|
||||||
:powerline-scale 1.1)
|
:powerline-scale 1.1)
|
||||||
|
@ -544,6 +544,9 @@ before packages are loaded."
|
||||||
(use-package all-the-icons)
|
(use-package all-the-icons)
|
||||||
(setq neo-theme (if (display-graphic-p) 'icons 'arrow))
|
(setq neo-theme (if (display-graphic-p) 'icons 'arrow))
|
||||||
|
|
||||||
|
;; Fix for startup issue?
|
||||||
|
(setq projectile-git-submodule-command nil)
|
||||||
|
|
||||||
;; Also in dired
|
;; Also in dired
|
||||||
(use-package all-the-icons-dired)
|
(use-package all-the-icons-dired)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue