Polybar, razni popravki

x1carbon
Jurij Podgoršek 2020-01-11 00:47:01 +01:00
parent 4c8661f5e3
commit c3e00377f1
3 changed files with 92 additions and 42 deletions

View File

@ -142,7 +142,9 @@ assign [class="Lollypop"] $w7
# Program startup # Program startup
exec thunderbird & exec thunderbird &
exec revolt & #exec revolt &
exec riot-web &
exec pidgin &
# reload the configuration file # reload the configuration file
bindsym $mod+Shift+c reload bindsym $mod+Shift+c reload
@ -181,32 +183,33 @@ bindsym $mod+r mode "resize"
# External monitor # External monitor
set $restart_compton (killall compton && compton -b) || compton -b set $restart_compton (killall compton && compton -b) || compton -b
bindsym $mod+p exec xrandr --output HDMI1 --auto --right-of eDP1 && $set_bg && $restart_compton set $restart_polybar ~/.config/polybar/launch.sh
bindsym $mod+Shift+p exec xrandr --output HDMI1 --off && $restart_compton bindsym $mod+p exec xrandr --output HDMI1 --auto --right-of eDP1 && $set_bg && $restart_compton && $restart_polybar
bindsym $mod+Shift+p exec xrandr --output HDMI1 --off && $restart_compton && $restart_polybar
# Lock screen # Lock screen
bindsym $mod+shift+b exec i3lock-fancy bindsym $mod+shift+b exec i3lock-fancy
# Start i3bar to display a workspace bar (plus the system information i3status # Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available) # finds out, if available)
bar { #bar {
position top # position top
status_command i3blocks # status_command i3blocks
#status_command i3bar # #status_command i3bar
colors { # colors {
background #232323 # background #232323
statusline #DCDCDC # statusline #DCDCDC
#
focused_workspace #555555 #555555 #ffffff # focused_workspace #555555 #555555 #ffffff
inactive_workspace #232323 #232323 #888888 # inactive_workspace #232323 #232323 #888888
} # }
#font pango:Fira Mono, Icons 10 # #font pango:Fira Mono, Icons 10
#font pango:Iosevka Medium 10 # #font pango:Iosevka Medium 10
font pango: Iosevka Medium 8 # font pango: Iosevka Medium 8
strip_workspace_numbers yes # strip_workspace_numbers yes
height 46 # height 46
tray_padding 2 # tray_padding 2
} #}
# Colors # Colors
client.focused #444444 #444444 #A9D000 #8c9825 #444444 client.focused #444444 #444444 #A9D000 #8c9825 #444444
@ -221,8 +224,13 @@ client.background #222222
# Touchpad tap to click # Touchpad tap to click
exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "libinput Tapping Enabled" 1 exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "libinput Tapping Enabled" 1
exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "Synaptics Tap Action" 0 0 0 0 1 3
# Touchpad natural scrolling # Touchpad natural scrolling
exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "libinput Natural Scrolling Enabled" 1 exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "libinput Natural Scrolling Enabled" 1
#exec --no-startup-id xinput set-prop "Synaptics TM3289-002" 314 -44 -44
exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "Synaptics Scrolling Distance" -44 -44
# Cursor acceleration # Cursor acceleration
exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "libinput Accel Speed" 0.456 exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "libinput Accel Speed" 0.456
@ -234,7 +242,8 @@ exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "libinput Accel Spee
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 redshift-gtk & #exec redshift-gtk &
exec redshift -l 46.0552778:14.5144444
# Background # Background
set $set_bg feh --bg-fill ~/Slike/Wallpapers/neka_trava.jpg set $set_bg feh --bg-fill ~/Slike/Wallpapers/neka_trava.jpg
@ -247,7 +256,6 @@ exec nm-applet &
#exec_always --no-startup-id "setxkbmap -layout us,si -option grp:lctrl_lwin_toggle -option compose:caps" #exec_always --no-startup-id "setxkbmap -layout us,si -option grp:lctrl_lwin_toggle -option compose:caps"
exec_always --no-startup-id "setxkbmap -layout us,si -option grp:win_space_toggle -option compose:caps" exec_always --no-startup-id "setxkbmap -layout us,si -option grp:win_space_toggle -option compose:caps"
#exec_always --no-startup-id "setxkbmap -layout us,si -option compose:caps" #exec_always --no-startup-id "setxkbmap -layout us,si -option compose:caps"
#exec_always --no-startup-id "setxkbmap -layout us,si -option compose:caps"
# Change layout # Change layout
bindym $mod+space exec "i3-keyboard-layout cycle us si" bindym $mod+space exec "i3-keyboard-layout cycle us si"
@ -257,10 +265,11 @@ bindym $mod+space exec "i3-keyboard-layout cycle us si"
gaps inner 7 gaps inner 7
gaps outer 0 gaps outer 0
smart_gaps on smart_gaps on
#smart_borders on
# No titles # No titles
for_window [class="^.*"] border pixel 2 for_window [class="^.*"] border pixel 2
#smart_borders on
# Mouse focus # Mouse focus
focus_follows_mouse yes focus_follows_mouse yes
@ -274,8 +283,10 @@ bindsym Mod1+shift+w exec chromium --force-device-scale-factor=1
# Increase volume # Increase volume
set $vol_sig_cmd pkill -RTMIN+10 i3blocks set $vol_sig_cmd pkill -RTMIN+10 i3blocks
set $vol_down_cmd pulsemixer --change-volume -5 #set $vol_down_cmd pulsemixer --change-volume -5
set $vol_up_cmd pulsemixer --change-volume +5 #set $vol_up_cmd pulsemixer --change-volume +5
set $vol_down_cmd amixer -q sset Master 5%-
set $vol_up_cmd amixer -q sset Master 5%+
bindsym $mod+shift+d exec "$vol_up_cmd && $vol_sig_cmd" bindsym $mod+shift+d exec "$vol_up_cmd && $vol_sig_cmd"
bindsym XF86AudioRaiseVolume exec "$vol_up_cmd && $vol_sig_cmd" bindsym XF86AudioRaiseVolume exec "$vol_up_cmd && $vol_sig_cmd"
# Decrease volume # Decrease volume
@ -324,5 +335,8 @@ exec --no-startup-id /usr/share/gnome-settings-daemon
# Pulseaudio zagon # Pulseaudio zagon
exec --no-startup-id /usr/bin/pulseaudio -D exec --no-startup-id /usr/bin/pulseaudio -D
# JACK audio baby
exec --no-startup-id qjackctl
# Polybar # Polybar
#exec_always --no-startup-id ~/.config/polybar/launch.sh exec_always --no-startup-id ~/.config/polybar/launch.sh

View File

@ -69,6 +69,7 @@ This function should only modify configuration layer settings."
coffeescript coffeescript
racket racket
go go
mu4e
;; Disable flychecker ;; Disable flychecker
(syntax-checking :variables syntax-checking-enable-by-default nil) (syntax-checking :variables syntax-checking-enable-by-default nil)

65
.zshrc
View File

@ -15,9 +15,10 @@ export VISUAL="vim"
# Color # Color
autoload colors zsh/terminfo autoload colors zsh/terminfo
colors colors
# PATH additions
# GO PATH additions
export GOPATH=~/Sredstva/go export GOPATH=~/Sredstva/go
export PATH="/home/g1smo/bin:/home/g1smo/.gem/ruby/2.5.0/bin:$GOPATH/bin:$PATH" export PATH="$HOME/bin:$HOME/.local/bin:$GOPATH/bin:$PATH"
# Default term (i3) # Default term (i3)
export TERMINAL="termite" export TERMINAL="termite"
@ -35,9 +36,13 @@ precmd () {
vcs_info vcs_info
} }
# GIT prompt
setopt prompt_subst setopt prompt_subst
PROMPT='%n@%m %1~ %{$fg[green]%}${vcs_info_msg_0_}%{$fg[blue]%}» %{$reset_color%}' PROMPT='%n@%m %1~ %{$fg[green]%}${vcs_info_msg_0_}%{$fg[blue]%}» %{$reset_color%}'
# Reverse search shortcut
bindkey '^R' history-incremental-pattern-search-backward
# Aliases # Aliases
alias ls='ls --color=auto' alias ls='ls --color=auto'
#alias vim='TERM=xterm-256color vim' #alias vim='TERM=xterm-256color vim'
@ -52,18 +57,14 @@ alias pacsize="expac -H M '%m\t%n' | sort -h"
alias ffon="sudo cp /etc/resolv.conf.ff /etc/resolv.conf" alias ffon="sudo cp /etc/resolv.conf.ff /etc/resolv.conf"
alias gitclean="git fetch -p && for branch in \$(git branch -vv | grep ': gone]' | gawk '{print \$1}'); do git branch -D \$branch; echo 'deleted \$branch'; done" alias gitclean="git fetch -p && for branch in \$(git branch -vv | grep ': gone]' | gawk '{print \$1}'); do git branch -D \$branch; echo 'deleted \$branch'; done"
alias sctl="systemctl" alias sctl="systemctl"
alias ddrush="ddev exec drush"
alias dcomposer="ddev exec composer"
# Firefox scaling! # Firefox scaling!
alias sf="find ~/.mozilla/firefox -name \"prefs.js\" -exec sed -ri 's/(devPixelsPerPx\\\", \\\")[0-9\\.]+/\\11\.00/' {} + ; firefox" alias sf="find ~/.mozilla/firefox -name \"prefs.js\" -exec sed -ri 's/(devPixelsPerPx\\\", \\\")[0-9\\.]+/\\11\.00/' {} + ; firefox"
# regular firefox # regular firefox
alias ff="find ~/.mozilla/firefox -name \"prefs.js\" -exec sed -ri 's/(devPixelsPerPx\\\", \\\")[0-9\\.]+/\\11\.75/' {} + ; firefox" alias ff="find ~/.mozilla/firefox -name \"prefs.js\" -exec sed -ri 's/(devPixelsPerPx\\\", \\\")[0-9\\.]+/\\11\.75/' {} + ; firefox"
# Reverse search shortcut
bindkey '^R' history-incremental-pattern-search-backward
export SCALA_HOME="/usr/share/scala"
export SAL_USE_VCLPLUGIN="gtk"
# NVM # NVM
#export NVM_DIR="/home/g1smo/.nvm" #export NVM_DIR="/home/g1smo/.nvm"
#[ -e /usr/share/nvm/init-nvm.sh ] && . /usr/share/nvm/init-nvm.sh #[ -e /usr/share/nvm/init-nvm.sh ] && . /usr/share/nvm/init-nvm.sh
@ -77,11 +78,14 @@ alias wxon="xhost +local:"
# RŠ aliasi # RŠ aliasi
alias omnom="ssh root@debeli" alias omnom="ssh root@debeli"
# Ljudmila
alias scdev="ssh culture@milci.ljudmila.org"
# Dolzina mp3 fajlov # Dolzina mp3 fajlov
alias mp3len="for i in \$(ls *.mp3); do echo \$i; soxi -d \$i; done" alias mp3len="for i in \$(ls *.mp3); do echo \$i; soxi -d \$i; done"
# Hiter ping za net preverit # Hiter ping za net preverit
alias pg="ping 8.8.8.8" alias pg="ping 1.1.1.1"
# Najvecji fajli # Najvecji fajli
alias najvecji="find . -printf '%s %p\n'| sort -nr | head -30" alias najvecji="find . -printf '%s %p\n'| sort -nr | head -30"
@ -103,7 +107,7 @@ export NLS_LANG=American_America.UTF8
export DTK_PROGRAM=espeak export DTK_PROGRAM=espeak
# Android SDK && React Native build settings # Android SDK && React Native build settings
export ANDROID_HOME=/home/g1smo/Android/Sdk export ANDROID_HOME=$HOME/Android/Sdk
export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1 export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
@ -111,18 +115,49 @@ export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
export CHROMIUM_FLAGS="--force-device-scale-factor=1.66" export CHROMIUM_FLAGS="--force-device-scale-factor=1.66"
# Flatpak # Flatpak
export XDG_DATA_DIRS="/home/g1smo/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:$XDG_DATA_DIRS" export XDG_DATA_DIRS="$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:$XDG_DATA_DIRS"
# Guix! # Guix!
export GUIX_PROFILE="$HOME/.guix-profile" export GUIX_PROFILE="$HOME/.guix-profile"
#export GUIX_PROFILE="$HOME/.config/guix/current" #export GUIX_PROFILE="$HOME/.config/guix/current"
export GUIX_PROFILE_FILE="$GUIX_PROFILE/etc/profile" export GUIX_PROFILE_FILE="$GUIX_PROFILE/etc/profile"
[ -e $GUIX_PROFILE_FILE ] && source $GUIX_PROFILE_FILE [ -e $GUIX_PROFILE_FILE ] && source $GUIX_PROFILE_FILE
export GUIX_PACKAGE_PATH="$HOME/Projects/guix-packages"
export GUIX_LOCPATH="$GUIX_PROFILE/lib/locale" # Svez guix bin
#export PATH="/home/g1smo/.config/guix/current/bin${PATH:+:}$PATH" export PATH="$HOME/.config/guix/current/bin${PATH:+:}$PATH"
export PATH="$GUIX_PROFILE/bin${PATH:+:}$PATH"
export GUIX_PACKAGE_PATH="$HOME/Projekti/guix-packages"
export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
#export SSL_CERT_DIR="$GUIX_PROFILE/etc/ssl/certs" #export SSL_CERT_DIR="$GUIX_PROFILE/etc/ssl/certs"
#export SSL_CERT_FILE="$SSL_CERT_DIR/ca-certificates.crt" #export SSL_CERT_FILE="$SSL_CERT_DIR/ca-certificates.crt"
#export GIT_SSL_CAINFO="$SSL_CERT_FILE" #export GIT_SSL_CAINFO="$SSL_CERT_FILE"
#export CURL_CA_BUNDLE="$SSL_CERT_FILE" #export CURL_CA_BUNDLE="$SSL_CERT_FILE"
camp() {
curl -s https://fahrplan.events.ccc.de/camp/2019/Fahrplan/schedule.json \
| jq -r '.schedule.conference.days | .[] | select(.date=="'$(date +%F)'") | .rooms | .[] | .[] | select(.date|strptime("%Y-%m-%dT%H:%M:%S%z") > now) | "\(.start) \(.duration)|\(.room)|\(.title)"' \
| sort -V | column -t -s'|'
}
# BARVE!
export GREP_COLOR='1;32'
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
function _colorman() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;35m") \
LESS_TERMCAP_md=$(printf "\e[1;34m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[7;40m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;33m") \
"$@"
}
function man() { _colorman man "$@"; }
function perldoc() { command perldoc -n less "$@" |man -l -; }
# Splosno barvanje zadev
[[ -s "/etc/grc.zsh" ]] && source /etc/grc.zsh