From 0ed516eefef506fd29367f610d20311be7399a83 Mon Sep 17 00:00:00 2001 From: Aleksander Cynarski Date: Tue, 28 Jan 2020 20:39:50 +0100 Subject: [PATCH] .... --- .config/i3/config | 28 ++++++++++++++++++++-------- .config/polybar/config | 4 ++-- .zshrc | 5 +++-- bin/make_drone_secrets | 17 +++++++++++++++++ 4 files changed, 42 insertions(+), 12 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 68a0172..518316c 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -1,4 +1,10 @@ # i3 config file (v4) +# _ _____ ____ __ _ _ _ +# (_)___ / / ___|___ _ __ / _(_) __ _ _ _ _ __ __ _| |_(_) ___ _ __ +# | | |_ \ | | / _ \| '_ \| |_| |/ _` | | | | '__/ _` | __| |/ _ \| '_ \ +# _| |___) | | |__| (_) | | | | _| | (_| | |_| | | | (_| | |_| | (_) | | | | +# (_)_|____/ \____\___/|_| |_|_| |_|\__, |\__,_|_| \__,_|\__|_|\___/|_| |_| +# |___/ set $mod Mod4 set $TERMINAL urxvt @@ -94,8 +100,10 @@ bindsym $mod+Shift+0 move container to workspace $ws10 # reload the configuration file bindsym $mod+Shift+c reload + # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart + # exit i3 (logs you out of your X session) bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Exit i3 and end your X session?' -b 'Yes' 'i3-msg exit'" @@ -131,7 +139,13 @@ mode "resize" { bindsym $mod+r mode "resize" -# custom shit +# _ _____ ____ _ ____ _ _ _ +# (_)___ / / ___| _ ___| |_ ___ _ __ ___ / ___|| |__ (_) |_ +# | | |_ \ | | | | | / __| __/ _ \| '_ ` _ \ \___ \| '_ \| | __| +# _| |___) | | |__| |_| \__ \ || (_) | | | | | | ___) | | | | | |_ +#(_)_|____/ \____\__,_|___/\__\___/|_| |_| |_| |____/|_| |_|_|\__| +# + # startup exec_always --no-startup-id $HOME/.config/polybar/launch.sh @@ -140,12 +154,14 @@ exec --no-startup-id i3-msg 'exec $TERMINAL; workspace 2; exec firefox;' exec --no-startup-id feh --bg-scale ~/Wallpapers/seneca.jpg exec --no-startup-id xrandr --output HDMI1 --right-of eDP1 exec --no-startup-id xset dpms 500 +exec --no-startup-id nm-applet exec --no-startup-id clipit exec --no-startup-id xautolock -time 10 -locker "betterlockscreen -l dim" exec --no-startup-id ~/bin/dunstwal exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec telegram-desktop +exec mattermost-desktop exec --no-startup-id sleep 4; i3-msg '[class="Mattermost"] move scratchpad; [class="Telegram"] move scratchpad' @@ -158,15 +174,13 @@ gaps inner 10 hide_edge_borders both for_window [class="^.*"] title_format "%title [%class]" for_window [class="^.*"] border pixel 0 -for_window [class="Telegram"] gaps outer 0 -for_window [class="Mattermost"] gaps outer 0 +for_window [class="Telegram"] border pixel 1 +for_window [class="Mattermost"] border pixel 1 for_window [window_role="floating"] floating enable for_window [class="QSyncthingTray"] floating enable -for_window [class="Thunderbird" window_type="normal"] floating enable, resize set 1024 768 +for_window [class="Thunderbird" window_type="normal"] floating enable, resize set 1600 1050, border pixel 2 for_window [class="Nautilus"] floating enable for_window [class="Gnome-calculator"] floating enable -for_window [class="Blueberry.py"] floating enable -for_window [class="Pavucontrol"] floating enable # keybinds bindsym Mod1+Tab workspace back_and_forth @@ -179,12 +193,10 @@ bindsym $mod+minus [class="Telegram"] scratchpad show bindsym $mod+p [class="Mattermost"] scratchpad show bindsym $mod+Delete exec rofi -modi system:$HOME/.config/rofi/scripts/powermenu.sh -show system -theme themes/system-menu -bindsym $mod+d exec rofi -modi system:$HOME/.config/rofi/scripts/appsmenu.sh bindsym $mod+shift+Delete exec betterlockscreen -l # audio binds bindsym XF86AudioMicMute exec --no-startup-id pulseaudio-ctl mute-input - bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo +10% && pactl set-sink-mute 1 0 bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume alsa_output.pci-0000_00_1f.3.analog-stereo -10% && pactl set-sink-mute 1 0 bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute alsa_output.pci-0000_00_1f.3.analog-stereo toggle diff --git a/.config/polybar/config b/.config/polybar/config index 40c89de..974146c 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -117,11 +117,11 @@ font-0 = RobotoMono Nerd Font :antialias=true:pixelsize=10;1 font-1 = RobotoMono Nerd Font:antialias=true:size=4;2 font-2 = RobotoMono Nerd Font:antialias=false:size=14;2 font-3 - RobotoMono Nerd Font:antialias=true:size=18;0 -; siji + modules-left = s4 battery s3 s4 wlan s3 s4 mpd s3 modules-center = ; pulseaudio -modules-right = s4 spotify s1 pulseaudio +modules-right = s4 spotify s1 pulseaudio s3 tray-position = right tray-padding = 0 diff --git a/.zshrc b/.zshrc index 1930520..4558aa8 100644 --- a/.zshrc +++ b/.zshrc @@ -177,13 +177,13 @@ alias sourcec="docker run --publish 7080:7080 --rm --volume ~/.sourcegraph/confi alias hadolint="docker run --rm -i hadolint/hadolint" -telegram-desktop () { # launch telegram and send it to scratchpad +s-telegram-desktop () { # launch telegram and send it to scratchpad (/usr/bin/telegram-desktop &) sleep 2 i3-msg '[class="Telegram"] move scratchpad' } -telegram-desktop () { # launch telegram and send it to scratchpad +mattermost-desktop () { # launch telegram and send it to scratchpad (/usr/bin/mattermost-desktop &) sleep 2 i3-msg '[class="Mattermost"] move scratchpad' @@ -197,6 +197,7 @@ theme () { autoload -U +X bashcompinit && bashcompinit complete -o nospace -C /usr/bin/vault vault +xset b off #wal -i ~/Wallpapers/5sense1.jpg #wal -i ~/Wallpapers/steampunk_1.jpg #wal -i ~/Wallpapers/steampunk_5.jpg diff --git a/bin/make_drone_secrets b/bin/make_drone_secrets index 13ecc01..0d251f6 100755 --- a/bin/make_drone_secrets +++ b/bin/make_drone_secrets @@ -1,4 +1,21 @@ #!/bin/sh +# Wykonuje import danych wrażliwych do drone.io +# +# Przykładowy plik: +# +# +# telegram_group_id: TOKEN +# telegram_bot_token: TEREFERE +# vault_password: PASS +# +# Wykonanie: +# +# make_drone_secrets Owner/Repository +# +# Tadam! +# + + args=("$@") cat ${args[0]} |awk -F\= '{system(" drone secret add --repository='${args[1]}' --name="$1 " --data="$2)}'