Skip to content

Commit

Permalink
Merge pull request #4 from simonvic/dev
Browse files Browse the repository at this point in the history
Update v1.3.2
  • Loading branch information
simonvic authored Jul 24, 2020
2 parents 3a80faf + fd5a52f commit b9ebd7f
Show file tree
Hide file tree
Showing 11 changed files with 256 additions and 14 deletions.
9 changes: 5 additions & 4 deletions .config/i3/config
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@
exec numlockx

# Lockscreen
#exec light-locker
exec xset s 600 300
exec xss-lock -n "$HOME/.config/i3/scripts/brightness.sh screensaver" -l -- $HOME/.config/i3/scripts/lockscreen.sh --suspend

# Restore redshift state
exec $HOME/.config/i3/scripts/restoreRedshift.sh

# Use feh to set wallpaper
exec_always feh --bg-fill $HOME/Pictures/Wallpapers/mountain3.jpg
#exec feh --bg-fill $HOME/Pictures/LogoRemakeFinal/4kBackground+ps.jpg
exec_always feh --bg-fill $HOME/Pictures/Wallpapers/desert2.jpg
# [WIP] Set the Bing wallpaper of the day as your background
# exec_always $HOME/.config/i3/scripts/bingWallpaper.sh

# Picom
exec_always --no-startup-id picom --experimental-backends --blur-method dual_kawase --blur-strength 10 --config .config/picom/picom.conf
exec_always --no-startup-id picom --experimental-backends --blur-method dual_kawase --blur-strength 15 --config .config/picom/picom.conf

# Run polybar
exec_always --no-startup-id $HOME/.config/polybar/scripts/polybar-manager.sh launch
Expand Down Expand Up @@ -156,6 +156,7 @@ bindsym $mod+Shift+q kill
bindsym $mod+a exec rofi -show drun -theme .config/rofi/themes/simonvic_window_reverse
bindsym $mod+Ctrl+a exec rofi -show run -theme .config/rofi/themes/simonvic_reverse
bindsym $mod+Tab exec rofi -show window -theme .config/rofi/themes/simonvic_reverse
bindsym $mod+c exec rofi -show calc -modi calc -no-show-match -no-sort -calc-command "echo -n '{result}' | xclip -selection clipboard -i" -theme .config/rofi/themes/simonvic_calc


# you can use the cursor keys:
Expand Down
42 changes: 42 additions & 0 deletions .config/i3/scripts/bingWallpaper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

###########################################
# Made by
# _ _
# (_) (_)
# ___ _ ____ ___ ____ _ _ _ ____
# /___)| || \ / _ \ | _ \ | | | || | / ___)
#|___ || || | | || |_| || | | | \ V / | |( (___
#(___/ |_||_|_|_| \___/ |_| |_| \_/ |_| \____)

# Check updates and give a look at my dotfiles here:
# https://github.com/simonvic/dotfiles

###########################################

# Bing base address
bing="http://www.bing.com"

# Base url
url=$bing"/HPImageArchive.aspx?"

# Response Format (json or xml or rss)
url+="&format=rss"

# Day id (0=today, 1=yesterday ...)
url+="&idx=0"

# Region (it-IT for Italy, en-US for USA etc. )
url+="&mkt=it-IT"

# How many photo to download.
url+="&n=1"

# Url of the image to be downloaded
imageURL=$bing$(wget --quiet -O - $url | awk -F'src="' '{print $2}' | cut -d '&' -f1)

wget --quiet -O - $imageURL | feh --bg-fill -




1 change: 1 addition & 0 deletions .config/i3/scripts/lockscreen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,4 @@ esac
[[ $lock ]] && lock && { [[ $suspend ]] && systemctl suspend; }

exit 0

2 changes: 1 addition & 1 deletion .config/i3/scripts/playerctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function info() {
fi
}

if [ $(playerctl -l) != "No players were found" ]; then
if [ $(playerctl -l | head -n 1) != "No players were found" ]; then
case $1 in
play-pause)
playerctl -p "$player" play-pause
Expand Down
2 changes: 1 addition & 1 deletion .config/picom/picom.conf
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ blur-kern = "3x3box";
# Exclude conditions for background blur.
# blur-background-exclude = []
blur-background-exclude = [
"window_type = 'dock'",
# "window_type = 'dock'",
"window_type = 'desktop'",
"_GTK_FRAME_EXTENTS@:c"
];
Expand Down
8 changes: 4 additions & 4 deletions .config/polybar/config
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ override-redirect = true
bottom = true

height = 3%
width = 70%
width = 500

offset-y = 2%
offset-x = 288
offset-x = 710

radius = 10

Expand All @@ -142,8 +142,8 @@ foreground = ${colors.foreground}


#TO-DO add conky?
modules-left = xkeyboard aur_updates filesystem memory cpu fan temperature
modules-center = todo_list
modules-left =
modules-center = xkeyboard filesystem memory cpu fan temperature
modules-right =


Expand Down
7 changes: 5 additions & 2 deletions .config/polybar/scripts/polybar-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

###########################################

visibleIcon=""
invisibleIcon=""

TRAY=/tmp/polybar_tray_id

BARS[0]=/tmp/polybar_window_id_main
Expand Down Expand Up @@ -104,9 +107,9 @@ function toggle() {
function status() {
status=$(cat ${BARS[$1]} | cut -d ":" -f2)
if [ $status = "visible" ]; then
echo ""
echo $visibleIcon
elif [ $status = "invisible" ]; then
echo ""
echo $invisibleIcon
fi
}

Expand Down
194 changes: 194 additions & 0 deletions .config/rofi/themes/simonvic_calc.rasi
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
/**
###########################################
# Made by
# _ _
# (_) (_)
# ___ _ ____ ___ ____ _ _ _ ____
# /___)| || \ / _ \ | _ \ | | | || | / ___)
#|___ || || | | || |_| || | | | \ V / | |( (___
#(___/ |_||_|_|_| \___/ |_| |_| \_/ |_| \____)

# Check updates and give a look at my dotfiles here:
# https://github.com/simonvic/dotfiles

###########################################
*/

/*
* drun-display-format: "{icon} | {name} | {generic} | {exec} | {categories} | {comment}";
*/

configuration {
show-icons: false;
}

* {
/*
* DEBUG

border: 1px solid;
border-color: blue;
margin: 5px;
background-color: red;
*/


text-color: @foreground;
accent: #F0544C;
active-background: @background;
active-foreground: @foreground;
normal-background: @background;
normal-foreground: @foreground;
urgent-background: #9E2A5E;
urgent-foreground: @foreground;
alternate-active-background: @background;
alternate-active-foreground: @foreground;
alternate-normal-background: @background;
alternate-normal-foreground: @foreground;
alternate-urgent-background: @background;
alternate-urgent-foreground: @foreground;
selected-active-background: @accent;
selected-active-foreground: #FFFFFF;
selected-normal-background: @accent;
selected-normal-foreground: #FFFFFF;
selected-urgent-background: #9D596B;
selected-urgent-foreground: @foreground;

foreground: #EEEEEE;
}

window {
children: [mainbox];
fullscreen: false;
width: 40%;
location: center;
anchor: south;
y-offset: 25%;
transparency: "real";
background-color: rgba(0,0,0,0.3);
}

mainbox {
children: [listview, message, inputbar];
background-color: rgba(0,0,0,0.1);
spacing: 0;
}


inputbar {
children: [prompt, entry];
background-color: rgba(0,0,0,0.2);
border-radius: 10px;
padding: 10;
margin: 1% 2%;
}

prompt{
font: "WorkSans Regular 16";
background-color: transparent;
padding: 5px;
}

textbox {
background-color: rgba(0,0,0,0.2);
margin: 0% 2%;
padding: 5px;
border-radius: 10px;
}

message {
background-color: transparent;
}

entry{
font: "WorkSans Regular 16";
background-color: transparent;
border: 0 0 2px 0 solid;
border-color: @accent;
vertical-align: 1;
}

listview {
children: [element];
orientation: vertical;
background-color: transparent;
columns: 1;
fixed-columns: true;
lines: 5;
fixed-height: false;
spacing: 0;
padding: 2% 2%;
scrollbar: true;
reverse: true;
}

scrollbar{
background-color: rgba(0,0,0,0.2);
handle-width: 5px;
handle-color: @accent;
margin: 0px 10px;
}


element {
children: [element-icon, element-text];
orientation: horizontal;
background-color: transparent;
border-radius: 10px;
padding: 10px 10px 10px 10px;
}

element-text{
font: "WorkSans Regular 11";
padding: 0% 0% 0% 0%;
}

element-icon{
size: 40;
}

element normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}

element normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}

element normal.active {
background-color: @active-background;
text-color: @active-foreground;
}

element selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
border-color: @active-background;
}

element selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}

element selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}

element alternate.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}

element alternate.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}

element alternate.active {
background-color: @active-background;
text-color: @active-foreground;
}
2 changes: 1 addition & 1 deletion .config/rofi/themes/simonvic_window_reverse.rasi
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ scrollbar{
element {
children: [element-icon, element-text];
orientation: horizontal;
background-color: rgba(0,0,0,0.2);
background-color: rgba(0,0,0,0);
border-radius: 10px;
padding: 10px 10px 10px 10px;
}
Expand Down
1 change: 1 addition & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ alias feeds="xdg-open .newsboat/urls"
alias themes='bash -c "$(wget -qO- https://git.io/vQgMr)"'
alias todo=~/Documents/Programming/scripts/todo/todo.sh
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias xo='xdg-open'

ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
if [[ ! -d $ZSH_CACHE_DIR ]]; then
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# simonvic personal full-keyboard driven rice/workflow
![version](https://img.shields.io/badge/version-1.3.1-red)
![version](https://img.shields.io/badge/version-1.3.2-red)

## Getting started
Make sure to visit the [Wiki](https://github.com/simonvic/dotfiles/wiki) to have a ful overview of what my workflow can offer
Expand Down

0 comments on commit b9ebd7f

Please sign in to comment.