lot of changes..

This commit is contained in:
Harri Lahtinen 2019-07-31 19:56:54 +03:00
parent baf98e4fc0
commit 71c8ad9ca8
12 changed files with 51 additions and 41 deletions

View File

@ -26,8 +26,12 @@
!! Transparency (0-1): !! Transparency (0-1):
st.alpha: 0.9 st.alpha: 0.9
!! Set a default font and font size as below: !! Set a default font and font size as below:
st.font: TamzenForPowerline:pixelsize=14:antialias=true:autohint=true; !st.font: TamzenForPowerline:pixelsize=14:antialias=true:autohint=true;
st.boldFont: TamzenForPowerline:pixelsize=14:bold:antialias=true:autohint=true; !st.boldFont: TamzenForPowerline:pixelsize=14:bold:antialias=true:autohint=true;
!st.font: Source Code Pro:pixelsize=12:antialias=true:autohint=true;
!st.boldFont: Source Code Pro:pixelsize=12:bold:antialias=true:autohint=true;
st.font: Ubuntu Mono derivative Powerline:pixelsize=14:antialias=true:autohint=true;
st.boldFont: Ubuntu Mono derivative Powerline:pixelsize=14:bold:antialias=true:autohint=true;
st.bold_font: 1 st.bold_font: 1
st.borderpx: 10 st.borderpx: 10
! This option is can be preedit style. Available values: `root` `overthespot` ( Default taken `root`) ! This option is can be preedit style. Available values: `root` `overthespot` ( Default taken `root`)

View File

@ -6,15 +6,15 @@
# back to your editor. # back to your editor.
# https://www.reddit.com/r/qtools/comments/amswu9/autoloading_rofi_for_quick_themeing_experience/ # https://www.reddit.com/r/qtools/comments/amswu9/autoloading_rofi_for_quick_themeing_experience/
options="  lock options="  lock
 logout  logout
 sleep  sleep
 hibernate  hibernate
 reboot  reboot
 shutdown"  shutdown"
themes_dir=$HOME/.config/rofi themes_dir=$HOME/.config/rofi
theme=${1:-$themes_dir/colors-rofi-dark.rasi} theme=${1:-$themes_dir/colors-rofi-dark.rasi}
selection=$(echo -e "${options}" | rofi -dmenu -config ~/.config/rofi/config $theme -columns 6 -lines 1 -width 800) selection=$(echo -e "${options}" | rofi -dmenu -config ~/.config/rofi/config $theme -columns 6 -lines 1 -width 1000)
echo "This is your selection: $selection" echo "This is your selection: $selection"

View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash #!/usr/bin/env bash
ip addr show dev wlp2s0 | grep "inet[^6]" | awk '{print $2}' ip a | awk ' !/[0-9]+\: lo/ && /^[0-9]\:/ || /inet / && !/127\.0\.0\.1/ {print $2}' | perl -i -pe "s/:\n/: /g;" -pe "s/\/[\d]+$//"
#ip route get 8.8.8.8 | head -1 | awk '{print $7}'

View File

@ -8,7 +8,8 @@ hide_edge_borders both
for_window [class="^.*"] border pixel 0 for_window [class="^.*"] border pixel 0
gaps inner 15 gaps inner 15
gaps outer 15 gaps outer 15
font pango:TamzenForPowerline 12 #font pango:TamzenForPowerline 12
font pango:Ubuntu Mono derivative Powerline 10
set $mod Mod4 set $mod Mod4
set $term st set $term st

View File

@ -60,9 +60,9 @@ let g:tmuxline_preset = {
\'a' : '#S', \'a' : '#S',
\'b' : '#W', \'b' : '#W',
\'c' : ['#(~/.config/Scripts/showip)'], \'c' : ['#(~/.config/Scripts/showip)'],
\'win' : '#I #W', \'win' : ['#I', '#W'],
\'cwin' : '#I #W', \'cwin' : ['#I', '#W', '#F'],
\'y' : '#W %R', \'y' : ['%R', '%a', '%Y'],
\'z' : '#H'} \'z' : '#H'}
" Run xrdb whenever Xdefaults or Xresources are updated. " Run xrdb whenever Xdefaults or Xresources are updated.

View File

@ -13,7 +13,9 @@ padding-left = 1
padding-right = 1 padding-right = 1
module-margin-left = 1 module-margin-left = 1
module-margin-right = 1 module-margin-right = 1
font-1 = TamzenForPowerline:size=12;1 ;font-1 = TamzenForPowerline:size=12;1
;font-1 = Source Code Pro:size=8;1
font-1 = Ubuntu Mono derivative Powerline:size=10;1
font-0 = FontAwesome:size=10.5;1 font-0 = FontAwesome:size=10.5;1
font-2 = Material Icons:size=12;3 font-2 = Material Icons:size=12;3
;font-2 = "Font Awesome 5 Free:style=Regular:size=12;3" ;font-2 = "Font Awesome 5 Free:style=Regular:size=12;3"

View File

@ -10,7 +10,7 @@ background = #00000000
;background = #8a8061 ;background = #8a8061
background-alt = #88C0D0 background-alt = #88C0D0
;foreground = ${{xrdb:color7}} ;foreground = ${{xrdb:color7}}
foreground = #D08770 foreground = #5E81AC
foreground-alt = #D08770 foreground-alt = #D08770
highlight = #E5E9F0 highlight = #E5E9F0
;error = ${{xrdb:color9:#DD712E}} ;error = ${{xrdb:color9:#DD712E}}
@ -75,7 +75,7 @@ spacing = 4
format-mounted = <label-mounted> format-mounted = <label-mounted>
format-unmounted = <label-unmounted> format-unmounted = <label-unmounted>
label-mounted =  %percentage_used%% label-mounted =  %percentage_used%%
label-mounted-foreground = ${colors.foreground-alt} label-mounted-foreground = ${colors.foreground}
label-unmounted = %mountpoint%: not mounted label-unmounted = %mountpoint%: not mounted
label-unmounted-foreground = ${colors.foreground-alt} label-unmounted-foreground = ${colors.foreground-alt}
@ -135,7 +135,7 @@ thermal-zone = 0
;hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input ;hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
warn-temperature = 65 warn-temperature = 65
format = <ramp> <label> format = <ramp> <label>
format-underline = ${colors.foreground-alt} format-underline = ${colors.foreground}
format-warn = <ramp> <label-warn> format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline} format-warn-underline = ${self.format-underline}
label = %temperature-c% label = %temperature-c%
@ -146,7 +146,7 @@ ramp-1 = 
ramp-2 =  ramp-2 = 
ramp-3 =  ramp-3 = 
ramp-4 =  ramp-4 = 
ramp-foreground = ${colors.foreground-alt} ramp-foreground = ${colors.foreground}
[module/pkg] [module/pkg]
type = custom/script type = custom/script
@ -268,7 +268,7 @@ label = %{A4:wmctrl -s "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2
exec = echo "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)+1))" exec = echo "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)+1))"
format = <label> format = <label>
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt} format-prefix-foreground = ${colors.foreground}
[module/window_count] [module/window_count]
type = custom/script type = custom/script
@ -344,13 +344,13 @@ format = <label>
type = internal/cpu type = internal/cpu
interval = 2 interval = 2
label = " %percentage%%" label = " %percentage%%"
format-foreground = ${colors.foreground-alt} format-foreground = ${colors.foreground}
[module/memory] [module/memory]
type = internal/memory type = internal/memory
interval = 2 interval = 2
label = " %percentage_used%%" label = " %percentage_used%%"
format-foreground = ${colors.foreground-alt} format-foreground = ${colors.foreground}
[module/cputemp] [module/cputemp]
type = custom/script type = custom/script
@ -409,13 +409,13 @@ mapped = true
interval = 5 interval = 5
format-volume = <ramp-volume> <label-volume> format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%% label-volume = %percentage%%
label-volume-foreground = ${colors.foreground-alt} label-volume-foreground = ${colors.foreground}
format-muted = <label-muted> format-muted = <label-muted>
format-muted-foreground = ${colors.alert} format-muted-foreground = ${colors.alert}
label-muted =  muted label-muted =  muted
ramp-volume-0 =  ramp-volume-0 = 
ramp-volume-1 =  ramp-volume-1 = 
ramp-volume-foreground = ${colors.foreground-alt} ramp-volume-foreground = ${colors.foreground}
ramp-headphones-0 =  ramp-headphones-0 = 
ramp-headphones-1 =  ramp-headphones-1 = 

View File

@ -13,7 +13,9 @@ padding-left = 1
padding-right = 1 padding-right = 1
module-margin-left = 1 module-margin-left = 1
module-margin-right = 1 module-margin-right = 1
font-0 = TamzenForPowerline:size=12;1 ;font-0 = TamzenForPowerline:size=12;1
;font-0 = Cource Code Pro:size=8;1
font-0 = Ubuntu Mono derivative Powerline:size=10;1
font-1 = FontAwesome:size=10;1 font-1 = FontAwesome:size=10;1
font-2 = Material Icons:size=10;2 font-2 = Material Icons:size=10;2
;font-1 = "Font Awesome 5 Free:style=Regular:size=10;1" ;font-1 = "Font Awesome 5 Free:style=Regular:size=10;1"

View File

@ -3,10 +3,11 @@ rofi.color-normal: #fbf8f1, #2A1A17, #fbf8f1, #ff923b, #2A1A17
rofi.color-urgent: #fbf8f1, #d6b48d, #22231D, #d6b48d, #2A1A17 rofi.color-urgent: #fbf8f1, #d6b48d, #22231D, #d6b48d, #2A1A17
rofi.color-active: #fbf8f1, #E1B959, #fbf8f1, #E1B959, #fbf8f1 rofi.color-active: #fbf8f1, #E1B959, #fbf8f1, #E1B959, #fbf8f1
rofi.color-window: #fbf8f1, #ff923b, #DD712E rofi.color-window: #fbf8f1, #ff923b, #DD712E
rofi.font:TamzenForPowerline 12 #rofi.font: TamzenForPowerline 12
rofi.font: Ubuntu Mono derivative Powerline 12
rofi.color-enabled: true rofi.color-enabled: true
rofi.fake-transparency: true rofi.fake-transparency: true
rofi.lines: 20 rofi.lines: 12
rofi.bw: 0 rofi.bw: 0
rofi.opacity: "10" rofi.opacity: "10"
rofi.hide-scrollbar: true rofi.hide-scrollbar: true

View File

@ -16,4 +16,4 @@ XOFF=0
FIELDS=SSID,MODE,CHAN,FREQ,RATE,SIGNAL,BARS,SECURITY,DEVICE,ACTIVE,IN-USE FIELDS=SSID,MODE,CHAN,FREQ,RATE,SIGNAL,BARS,SECURITY,DEVICE,ACTIVE,IN-USE
#font #font
FONT="TamzenForPowerline 12" FONT="Ubuntu Mono derivative Powerline 12"

View File

@ -10,8 +10,8 @@ background = #00000000
;background = #8a8061 ;background = #8a8061
background-alt = {color1} background-alt = {color1}
;foreground = ${{{{xrdb:color7}}}} ;foreground = ${{{{xrdb:color7}}}}
foreground = {color6} foreground = {color3}
foreground-alt = {color14} foreground-alt = {color6}
highlight = {color7} highlight = {color7}
;error = ${{{{xrdb:color9:#DD712E}}}} ;error = ${{{{xrdb:color9:#DD712E}}}}
error = {color2} error = {color2}
@ -75,7 +75,7 @@ spacing = 4
format-mounted = <label-mounted> format-mounted = <label-mounted>
format-unmounted = <label-unmounted> format-unmounted = <label-unmounted>
label-mounted =  %percentage_used%% label-mounted =  %percentage_used%%
label-mounted-foreground = ${{colors.foreground-alt}} label-mounted-foreground = ${{colors.foreground}}
label-unmounted = %mountpoint%: not mounted label-unmounted = %mountpoint%: not mounted
label-unmounted-foreground = ${{colors.foreground-alt}} label-unmounted-foreground = ${{colors.foreground-alt}}
@ -135,7 +135,7 @@ thermal-zone = 0
;hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input ;hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
warn-temperature = 65 warn-temperature = 65
format = <ramp> <label> format = <ramp> <label>
format-underline = ${{colors.foreground-alt}} format-underline = ${{colors.foreground}}
format-warn = <ramp> <label-warn> format-warn = <ramp> <label-warn>
format-warn-underline = ${{self.format-underline}} format-warn-underline = ${{self.format-underline}}
label = %temperature-c% label = %temperature-c%
@ -146,7 +146,7 @@ ramp-1 = 
ramp-2 =  ramp-2 = 
ramp-3 =  ramp-3 = 
ramp-4 =  ramp-4 = 
ramp-foreground = ${{colors.foreground-alt}} ramp-foreground = ${{colors.foreground}}
[module/pkg] [module/pkg]
type = custom/script type = custom/script
@ -268,7 +268,7 @@ label = %{{A4:wmctrl -s "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2
exec = echo "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)+1))" exec = echo "$(($(xprop -root _NET_CURRENT_DESKTOP | cut -d '=' -f 2 | cut -d ' ' -f 2)+1))"
format = <label> format = <label>
format-prefix = " " format-prefix = " "
format-prefix-foreground = ${{colors.foreground-alt}} format-prefix-foreground = ${{colors.foreground}}
[module/window_count] [module/window_count]
type = custom/script type = custom/script
@ -344,13 +344,13 @@ format = <label>
type = internal/cpu type = internal/cpu
interval = 2 interval = 2
label = " %percentage%%" label = " %percentage%%"
format-foreground = ${{colors.foreground-alt}} format-foreground = ${{colors.foreground}}
[module/memory] [module/memory]
type = internal/memory type = internal/memory
interval = 2 interval = 2
label = " %percentage_used%%" label = " %percentage_used%%"
format-foreground = ${{colors.foreground-alt}} format-foreground = ${{colors.foreground}}
[module/cputemp] [module/cputemp]
type = custom/script type = custom/script
@ -409,13 +409,13 @@ mapped = true
interval = 5 interval = 5
format-volume = <ramp-volume> <label-volume> format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%% label-volume = %percentage%%
label-volume-foreground = ${{colors.foreground-alt}} label-volume-foreground = ${{colors.foreground}}
format-muted = <label-muted> format-muted = <label-muted>
format-muted-foreground = ${{colors.alert}} format-muted-foreground = ${{colors.alert}}
label-muted =  muted label-muted =  muted
ramp-volume-0 =  ramp-volume-0 = 
ramp-volume-1 =  ramp-volume-1 = 
ramp-volume-foreground = ${{colors.foreground-alt}} ramp-volume-foreground = ${{colors.foreground}}
ramp-headphones-0 =  ramp-headphones-0 = 
ramp-headphones-1 =  ramp-headphones-1 = 

View File

@ -10,7 +10,7 @@
# #
############################# #############################
# Tmuxline theme-file # Tmuxline theme-file
source-file ~/.config/nvim/nord #source-file ~/.config/nvim/nord
# use vim motion keys while in copy mode # use vim motion keys while in copy mode
setw -g mode-keys vi setw -g mode-keys vi
@ -49,14 +49,14 @@ set-option -g status-keys vi
# Status Bar # Status Bar
############################################################################ ############################################################################
set -g status-left-length 70 set -g status-left-length 70
#set -g status-left "#{prefix_highlight} #(ip addr show dev wlp2s0 | grep "inet[^6]" | awk '{print $2}')" #set -g status-left '#[fg=black,bg=cyan] #(~/.config/Scripts/showip) #[fg=black,bg=blue,nobold,noitalics,nounderscore] '
set -g status-interval 1 set -g status-interval 1
set-option -g status-position top set-option -g status-position top
# Titles (window number, program name, active (or not) # Titles (window number, program name, active (or not)
set-option -g set-titles on set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T' #set-option -g set-titles-string '#H:#S.#I.#P #W #T'
set-option -g status-justify centre #set-option -g status-justify centre
#set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M' #set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
########################################################################### ###########################################################################
#Tmuxline #Tmuxline
@ -158,7 +158,7 @@ set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-copycat' set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum' set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight' set -g @plugin "arcticicestudio/nord-tmux"
########################################################################## ##########################################################################
# Plugins settings # Plugins settings
########################################################################## ##########################################################################
@ -166,7 +166,6 @@ set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-processes ':all:' set -g @resurrect-processes ':all:'
set -g @continuum-restore 'on' set -g @continuum-restore 'on'
set -g @continuum-save-interval '10' set -g @continuum-save-interval '10'
# for neovim # for neovim
set -g @resurrect-strategy-nvim 'session' set -g @resurrect-strategy-nvim 'session'