Move startpage out of user-skel, update user scripts

This commit is contained in:
natemaia 2017-12-05 19:50:28 -08:00
parent e317a9d278
commit 69b746d51b
26 changed files with 249 additions and 433 deletions

View File

@ -1,51 +0,0 @@
<html>
<head>
<title>ArchLabs Home</title>
<link rel="stylesheet" href="style.css">
<meta charset="utf-8">
<link rel="shortcut icon" href="res/logo-dark.png" />
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="script.js"></script>
</head>
<body>
<div class="stripe" style="background-color:#090909">
<div class="title"><span>Official</span></div>
<div class="content">
<span class="item"><a href="https://archlabsblog.wordpress.com">Official Website</a></span><span class="item"><a href="https://plus.google.com/u/0/communities/111177505820810068511">ArchLabs G+</a></span><span class="item"><a href="https://www.reddit.com/r/ArchLabsLinux/">ArchLabs Reddit</a></span><span class="item"><a href="https://www.tapatalk.com/groups/archlabs/index.php">ArchLabs Forums</a></span><span class="item"><a href="https://twitter.com/ArchLabsLinux">ArchLabs Twitter</a></span>
</div>
</div>
<div class="stripe" style="background-color:#9E3B58">
<div class="title"><span>Openbox</span></div>
<div class="content">
<span class="item"><a href="https://www.opendesktop.org/">Box Look</a></span><span class="item"><a href="https://urukrama.wordpress.com/openbox-guide/">Urukrama's Openbox Guide+</a></span><span class="item"><a href="https://forums.bunsenlabs.org/viewforum.php?id=9">Bunsenlabs Openbox Scripts etc.</a></span>
</div>
</div>
<div class="stripe" style="background-color:#1AADB5">
<div class="title"><span>Wikis</span></div>
<div class="content">
<span class="item"><a href="http://openbox.org/wiki/Main_Page">Openbox Wiki</a></span><span class="item"><a href="https://wiki.archlinux.org/index.php/Openbox">Arch Wiki</a></span><span class="item"><a href="https://i3wm.org/docs/">i3 Wiki</a></span>
</div>
</div>
<div class="stripe" style="background-color:#BA386F">
<div class="title"><span>GetArchLabs</span></div>
<div class="content">
<span class="item"><a href="https://sourceforge.net/projects/archlabs-linux-minimo/">Official Download</a></span><span class="item"><a href="https://sourceforge.net/p/archlabs-linux-minimo/tickets/new/">Got a suggestion?</a></span>
</div>
</div>
<h2><div><img src="res/logo.png"></img></div></h2>
<h3><div>ArchLabs</div></h3>
<form method="get" action="https://www.duckduckgo.com">
<input type="text" name="q" placeholder="Search..." autofocus>
<p><span name="yt">arch.wiki</span><span name="sr">arch.forums</span><span name="a">arch.packages</span><span name="w">openbox.official</span></p>
</form>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -1,47 +0,0 @@
$(document).ready(function() {
//Search Bar
var $search = $("input[name='q']");
$("span[name='yt']").click(function() {
var curr = $search.val();
$search.val("!arch " + curr);
$search.focus();
});
$("span[name='sr']").click(function() {
var curr = $search.val();
$search.val("!archforums " + curr);
$search.focus();
});
$("span[name='a']").click(function() {
var curr = $search.val();
$search.val("!pkg " + curr);
$search.focus();
});
$("span[name='w']").click(function() {
var curr = $search.val();
$search.val("!openbox" + curr);
$search.focus();
});
//Tabs
$(".stripe").mouseenter(function() {
$(this).stop().animate({
width: '100vw'
});
$(this).find(".content").stop().fadeIn().children().show();
});
$(".stripe").mouseleave(function() {
$(this).stop().animate({
width: '40px'
});
$(this).find(".content").stop().fadeOut();
});
});

View File

@ -1,138 +0,0 @@
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400');
* {
margin: 0;
padding: 0;
font-family: "Ubuntu";
}
body {
width: 100vw;
height: 100vh;
background:url("res/archlabs02.png");
}
h2 {
width: 100vw;
position: absolute;
top: calc(90vh - 20px);
left: calc(55vh - 0px);
text-align: center;
font-weight: 300;
font-size: 35px;
}
h3 {
width: 100vw;
position: absolute;
top: calc(90vh - 0px);
left: calc(75vh - 0px);
text-align: center;
font-weight: 500;
font-size: 60px;
color: white;
}
form {
position: absolute;
left: 50%;
top: 40%;
width: 600px;
height: 50px;
transform: translateX(-50%);
font-weight: 300;
z-index: 1;
}
form p {
display: flex;
margin-top: 10px;
justify-content: space-between;
color: #ACB6BF;
padding-left: 5px;
padding-right: 5px;
}
form p span {
cursor: pointer;
transition: color 0.5s;
}
form p span:hover {
color: #ACB6BF;
}
input[type=text] {
width: 600px;
height: 50px;
border: 1px solid #a0a0a0;
border-radius: 2px;
padding: 10px;
font-weight: 300;
}
input[type=text]:focus {
border-color: #707070
}
.stripe {
position: relative;
width: 40px;
height: 25vh;
color: white;
z-index: 2;
}
.stripe .title {
position: relative;
width: 40px;
height: 100%;
float: left;
box-sizing: border-box;
}
.stripe .title span {
position: absolute;
top: 50%;
left: 50%;
display: block;
transform: translateX(-50%) translateY(-50%) rotate(-90deg);
font-weight: 400;
}
.stripe .content {
position: absolute;
left: calc(5vw + 40px);
width: calc(90vw - 40px);
display: none;
padding: 20px;
box-sizing: border-box;
height: 100%;
font-weight: 300;
display: flex;
justify-content: space-between;
}
.stripe .content div {
position: relative;
height: 100%;
width: 150px;
display: none;
}
.stripe .content div img {
position: absolute;
max-height: 100px;
max-width: 150px;
top: 50%;
transform: translateY(-50%);
}
.stripe .content span {
line-height: calc(25vh - 50px);
display: none;
}
.stripe .content span a {
text-decoration: none;
color: white;
}

View File

@ -64,7 +64,7 @@ URxvt*iso14755: false
! appearance
URxvt*depth: 32
URxvt*background: [80]#2b303b
URxvt*background: [90]#2b303b
URxvt*scrollBar: false
URxvt*scrollBar_right: false
URxvt*internalBorder: 0
@ -72,7 +72,7 @@ URxvt*externalBorder: 0
! fonts
URxvt*letterSpace: -1
URxvt.font: xft:Ubuntu Mono Nerd Font:size=11
URxvt.font: xft:Ubuntu Mono:size=11
! run :.!fc-list | grep <font-name>
! perl extensions

View File

@ -64,7 +64,7 @@ URxvt*iso14755: false
! appearance
URxvt*depth: 32
URxvt*background: [80]{{.Data.terminal_background}}
URxvt*background: [90]{{.Data.terminal_background}}
URxvt*scrollBar: false
URxvt*scrollBar_right: false
URxvt*internalBorder: 0
@ -72,7 +72,7 @@ URxvt*externalBorder: 0
! fonts
URxvt*letterSpace: -1
URxvt.font: xft:Ubuntu Mono Nerd Font:size=11
URxvt.font: xft:Ubuntu Mono:size=11
! run :.!fc-list | grep <font-name>
! perl extensions

View File

@ -25,31 +25,31 @@ set_from_resource $grey color7 #969CD3
set_from_resource $white color15 #F1F1F1
set_from_resource $black color0 #19043C
# class bg bd txt ind
client.focused $bg $blue $fg $blue
client.unfocused $bg $bg $fg $bg
client.focused_inactive $bg $bg $fg $bg
client.urgent $bg $red $fg $red
client.background $bg
# class bd bg txt ind child_bordr
client.focused $grey $bg $fg $blue $grey
client.unfocused $grey $bg $black $bg $bg
client.focused_inactive $grey $bg $black $bg $bg
client.urgent $red $bg $red $red $red
client.placeholder $grey $bg $bg $bg $bg
client.background $bg
# border
for_window [class="^.*"] border pixel 2
# border & title
for_window [class="^.*"] border pixel 2, title_format "<b> %class >> %title </b>"
# gaps
gaps inner 12
gaps inner 15
gaps outer 0
# font
font pango:Ubuntu 11
##
#### Set
##
# $mod for Super or Alt
set $mod Mod4
#set $mod Mod1
# $Mod = Super or Alt?
set $Mod Mod4
#set $Mod Mod1
# direction keys
set $up l
@ -57,18 +57,18 @@ set $down k
set $left j
set $right semicolon
set $WS1 "1:"
set $WS2 "2:"
set $WS3 "3:"
set $WS4 "4:"
set $WS5 "5:"
set $WS6 "6:"
set $WS7 "7:"
set $WS8 "8:"
set $WS1 "1: "
set $WS2 "2: "
set $WS3 "3: "
set $WS4 "4: "
set $WS5 "5: "
set $WS6 "6: "
set $WS7 "7: "
set $WS8 "8: "
# monitors
set $firstMonitor HDMI1
set $secondMonitor HDMI2
set $Mon1 HDMI1
set $Mon2 HDMI2
####################################################################################################
################# Autostart ##################
@ -78,6 +78,9 @@ set $secondMonitor HDMI2
exec_always --no-startup-id start-compton
exec_always --no-startup-id start-polybar
exec_always --no-startup-id numlockx on
exec_always --no-startup-id nitrogen --restore
exec_always --no-startup-id xrdb -load ~/.Xresources
exec_always --no-startup-id pkill trayer; trayer --edge bottom --align left --heighttype pixel --height 18 --widthtype request --SetDockType false --expand true --transparent true --alpha 255
# run once
exec --no-startup-id xfsettingsd
@ -91,7 +94,7 @@ exec --no-startup-id lxpolkit
####################################################################################################
# kill focused window
bindsym $mod+Shift+q kill
bindsym $Mod+Shift+q kill
bindsym Mod1+q kill
# launchers
@ -99,13 +102,13 @@ bindsym Control+space exec --no-startup-id rofi-gorice
bindsym Mod1+F1 exec --no-startup-id rofi-gorice
# core
bindsym $mod+e exec --no-startup-id al-open -edit
bindsym $mod+t exec --no-startup-id exo-open --launch TerminalEmulator
bindsym $mod+w exec --no-startup-id exo-open --launch WebBrowser
bindsym $mod+f exec --no-startup-id exo-open --launch FileManager
bindsym $Mod+e exec --no-startup-id al-open -edit
bindsym $Mod+t exec exo-open --launch TerminalEmulator
bindsym $Mod+w exec exo-open --launch WebBrowser
bindsym $Mod+f exec exo-open --launch FileManager
# logout
bindsym $mod+x exec --no-startup-id rofi-logout
bindsym $Mod+x exec --no-startup-id rofi-logout
# long command broken into multiple lines
bindsym Print exec --no-startup-id "scrot '%S.png' \
@ -128,81 +131,81 @@ bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10
####################################################################################################
# workspace assignment
workspace $WS1 output $firstMonitor
workspace $WS2 output $secondMonitor
workspace $WS3 output $firstMonitor
workspace $WS4 output $secondMonitor
workspace $WS5 output $firstMonitor
workspace $WS6 output $secondMonitor
workspace $WS7 output $firstMonitor
workspace $WS8 output $secondMonitor
workspace $WS1 output $Mon1
workspace $WS2 output $Mon1
workspace $WS3 output $Mon1
workspace $WS4 output $Mon1
workspace $WS5 output $Mon2
workspace $WS6 output $Mon2
workspace $WS7 output $Mon2
workspace $WS8 output $Mon2
# switch to workspace
bindsym $mod+1 workspace $WS1
bindsym $mod+2 workspace $WS2
bindsym $mod+3 workspace $WS3
bindsym $mod+4 workspace $WS4
bindsym $mod+5 workspace $WS5
bindsym $mod+6 workspace $WS6
bindsym $mod+7 workspace $WS7
bindsym $mod+8 workspace $WS8
bindsym $Mod+1 workspace $WS1
bindsym $Mod+2 workspace $WS2
bindsym $Mod+3 workspace $WS3
bindsym $Mod+4 workspace $WS4
bindsym $Mod+5 workspace $WS5
bindsym $Mod+6 workspace $WS6
bindsym $Mod+7 workspace $WS7
bindsym $Mod+8 workspace $WS8
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $WS1; workspace $WS1
bindsym $mod+Shift+2 move container to workspace $WS2; workspace $WS2
bindsym $mod+Shift+3 move container to workspace $WS3; workspace $WS3
bindsym $mod+Shift+4 move container to workspace $WS4; workspace $WS4
bindsym $mod+Shift+5 move container to workspace $WS5; workspace $WS5
bindsym $mod+Shift+6 move container to workspace $WS6; workspace $WS6
bindsym $mod+Shift+7 move container to workspace $WS7; workspace $WS7
bindsym $mod+Shift+8 move container to workspace $WS8; workspace $WS8
bindsym $Mod+Shift+1 move container to workspace $WS1; workspace $WS1
bindsym $Mod+Shift+2 move container to workspace $WS2; workspace $WS2
bindsym $Mod+Shift+3 move container to workspace $WS3; workspace $WS3
bindsym $Mod+Shift+4 move container to workspace $WS4; workspace $WS4
bindsym $Mod+Shift+5 move container to workspace $WS5; workspace $WS5
bindsym $Mod+Shift+6 move container to workspace $WS6; workspace $WS6
bindsym $Mod+Shift+7 move container to workspace $WS7; workspace $WS7
bindsym $Mod+Shift+8 move container to workspace $WS8; workspace $WS8
####################################################################################################
################# Reload configs #################
####################################################################################################
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
bindsym $Mod+Shift+r restart
# reload the configuration file
bindsym $mod+Shift+c reload
bindsym $Mod+Shift+c reload
####################################################################################################
################ Container/Window control ##################
####################################################################################################
# Scratchpad, Floating
bindsym $mod+minus move scratchpad
bindsym $mod+plus scratchpad show
bindsym $mod+space floating toggle
bindsym Mod1+minus move scratchpad
bindsym Mod1+plus scratchpad show
bindsym $Mod+space floating toggle
floating_modifier Mod1
# change focus
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $Mod+$left focus left
bindsym $Mod+$down focus down
bindsym $Mod+$up focus up
bindsym $Mod+$right focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
bindsym $Mod+Left focus left
bindsym $Mod+Down focus down
bindsym $Mod+Up focus up
bindsym $Mod+Right focus right
bindsym $mod+p focus parent
bindsym $mod+c focus child
bindsym $Mod+p focus parent
bindsym $Mod+c focus child
# move focused window
bindsym $mod+Shift+$left move left 10px
bindsym $mod+Shift+$down move down 10px
bindsym $mod+Shift+$up move up 10px
bindsym $mod+Shift+$right move right 10px
bindsym $Mod+Shift+$left move left 10px
bindsym $Mod+Shift+$down move down 10px
bindsym $Mod+Shift+$up move up 10px
bindsym $Mod+Shift+$right move right 10px
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Up move up 10px
bindsym $mod+Shift+Down move down 10px
bindsym $mod+Shift+Left move left 10px
bindsym $mod+Shift+Right move right 10px
bindsym $Mod+Shift+Up move up 10px
bindsym $Mod+Shift+Down move down 10px
bindsym $Mod+Shift+Left move left 10px
bindsym $Mod+Shift+Right move right 10px
# Size
bindsym Mod1+Up resize shrink height 10 px or 1 ppt
@ -210,19 +213,20 @@ bindsym Mod1+Down resize grow height 10 px or 1 ppt
bindsym Mod1+Left resize shrink width 10 px or 1 ppt
bindsym Mod1+Right resize grow width 10 px or 1 ppt
# next/previous workspace
bindsym Mod1+Tab workspace next
bindsym Mod1+Shift+Tab workspace prev
# layout toggle, keycode 23 is Tab
bindcode Mod1+23 layout toggle tabbed split
bindcode $Mod+23 layout toggle splitv splith
# switch to workspace with urgent window
for_window [urgent=latest] focus
for_window [urgent="latest"] focus
focus_on_window_activation focus
# container layout
bindsym $mod+h split h
bindsym $mod+v split v
bindsym $mod+Shift+t layout tabbed
bindsym $mod+Shift+s layout stacking
bindsym $mod+Shift+h layout toggle split
bindsym $Mod+h split h
bindsym $Mod+v split v
bindsym $Mod+Shift+t layout tabbed
bindsym $Mod+Shift+s layout stacking
bindsym $Mod+Shift+h layout toggle split
default_orientation horizontal
####################################################################################################
@ -233,35 +237,52 @@ new_window normal
new_float normal
hide_edge_borders both
popup_during_fullscreen smart
bindsym $mod+shift+b border toggle
bindsym $Mod+shift+b border toggle
#changing border style
bindsym $mod+n border normal
bindsym $mod+y border 1pixel
bindsym $mod+u border none
bindsym $Mod+n border normal
bindsym $Mod+y border 1pixel
bindsym $Mod+u border none
set $mode_gaps Gap Size  + | - 
bindsym $mod+Shift+g mode "$mode_gaps"
mode "$mode_gaps" {
bindsym plus gaps inner all plus 2
bindsym minus gaps inner all minus 2
bindsym Return mode "default"
bindsym Escape mode "default"
}
# change gaps
bindsym $Mod+plus gaps outer current plus 5
bindsym $Mod+minus gaps outer current minus 5
bindsym $Mod+Shift+plus gaps inner current plus 5
bindsym $Mod+Shift+minus gaps inner current minus 5
bindsym $Mod+Control+plus gaps inner all plus 5
bindsym $Mod+Control+minus gaps inner all minus 5
bindsym $Mod+Control+Shift+plus gaps outer all plus 5
bindsym $Mod+Control+Shift+minus gaps outer all minus 5
####################################################################################################
################# application settings #################
####################################################################################################
for_window [class="qt5ct|Lxappearance|^Gpick$|Pamac|Peek|Nitrogen"] floating enable
for_window [window_role="^Preferences$"] floating enable
for_window [class="Termite|^Thunar|Geany|Firefox"] focus
# focus & floating
for_window [class="(?i)(?:lxapp\w+|peek)"] floating enable, focus
for_window [class="(?i)(?:gpic\w+|gvim)"] floating enable, focus
for_window [class="(?i)(?:deluge|nitrogen)"] floating enable, focus
for_window [class="(?i)(?:qt5ct|pinentry)"] floating enable, focus
for_window [class="(?i)(?:termite|thunar)"] focus
for_window [class="(?i)(?:geany|firefox)"] focus
# Assign Applications to specific workspace
# get class with xprop
assign [class="Firefox"] → $WS1
assign [class="Geany"] → $WS2
assign [class="Thunar"] → $WS3
assign [class="^Gimp"] → $WS4
assign [class="(?i)(?:firefox)"] → $WS1
assign [class="(?i)(?:geany)"] → $WS2
assign [class="(?i)(?:thunar)"] → $WS3
assign [class="(?i)(?:gimp|nitrogen)"] → $WS4
# focus, floating, & sticky
for_window [title="(?i)(?:copying|deleting|moving|auth\w+)"] floating enable, sticky enable
for_window [window_role="(?i)(?:pop-up|setup|preferen\w+)"] floating enable, sticky enable
# set trayer to be borderless
for_window [class="(?i)trayer"] border pixel 0
# start on main workspaces when reloading i3 (keep me at the bottom)
exec_always --no-startup-id i3-msg 'workspace $WS5, workspace $WS1'

View File

@ -27,4 +27,4 @@ sleep 2; al-conky-session &
xdg-user-dirs-gtk-update &
termite --geometry=650x450 --exec=al-hello &
# al-hello

View File

@ -176,6 +176,8 @@
</dock>
<keyboard>
<chainQuitKey/>
<!-- Window & Desktop Control -->
<keybind key="W-1">
<action name="GoToDesktop">
<to>1</to>
@ -263,11 +265,8 @@
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</keybind>
<keybind key="A-space">
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</keybind>
<!-- Media & Backlight -->
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<command>pamixer -i 2</command>
@ -313,6 +312,8 @@
<command>xbacklight -10</command>
</action>
</keybind>
<!-- Applications -->
<keybind key="Print">
<action name="Execute">
<command>scrot 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command>
@ -323,11 +324,6 @@
<command>scrot -d 5 'ArchLabs_%Y-%m-%d-%S_$wx$h.png' -e 'mv $f $$(xdg-user-dir PICTURES) ; gpicview $$(xdg-user-dir PICTURES)/$f'</command>
</action>
</keybind>
<keybind key="A-F1">
<action name="Execute">
<command>rofi-gorice</command>
</action>
</keybind>
<keybind key="W-f">
<action name="Execute">
<command>exo-open --launch FileManager</command>
@ -348,6 +344,11 @@
<command>al-open -edit</command>
</action>
</keybind>
<keybind key="C-A-m">
<action name="Execute">
<command>xfce4-settings-manager</command>
</action>
</keybind>
<keybind key="W-m">
<action name="Execute">
<command>audacious</command>
@ -358,34 +359,38 @@
<command>pavucontrol</command>
</action>
</keybind>
<keybind key="W-x">
<action name="Execute">
<command>exit-openbox</command>
</action>
</keybind>
<keybind key="W-S-x">
<action name="Exit"/>
</keybind>
<keybind key="W-Escape">
<action name="Execute">
<command>xkill</command>
</action>
</keybind>
<!-- Launchers -->
<keybind key="W-s">
<action name="Execute">
<command>skippy-xd</command>
</action>
</keybind>
<keybind key="A-F1">
<action name="Execute">
<command>rofi-gorice</command>
</action>
</keybind>
<keybind key="C-space">
<action name="Execute">
<command>rofi-gorice</command>
</action>
</keybind>
<keybind key="W-space">
<action name="ShowMenu">
<menu>root-menu</menu>
<!-- Logout & Reload -->
<keybind key="W-x">
<action name="Execute">
<command>exit-openbox</command>
</action>
</keybind>
<keybind key="C-A-Delete">
<action name="Execute">
<command>exit-openbox</command>
</action>
</keybind>
<keybind key="W-S-Escape">
<action name="Exit"/>
</keybind>
<keybind key="W-S-r">
<action name="Execute">
<command>start-polybar --reload</command>
@ -397,6 +402,13 @@
<keybind key="C-S-Enter">
<action name="Reconfigure"/>
</keybind>
<!-- Window Control -->
<keybind key="W-Escape">
<action name="Execute">
<command>xkill</command>
</action>
</keybind>
<keybind key="A-F4">
<action name="Close"/>
</keybind>
@ -424,11 +436,19 @@
<keybind key="S-W-q">
<action name="Close"/>
</keybind>
<keybind key="C-A-m">
<action name="Execute">
<command>xfce4-settings-manager</command>
<keybind key="W-space">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
<keybind key="A-space">
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</keybind>
<!-- Tiling Bindings -->
<keybind key="W-KP_1">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
@ -540,11 +560,6 @@
<width>50%</width>
</action>
</keybind>
<keybind key="C-A-Delete">
<action name="Execute">
<command>exit-openbox</command>
</action>
</keybind>
<keybind key="W-A-Right">
<action name="UnmaximizeFull"/>
<action name="MaximizeVert"/>

View File

@ -44,7 +44,7 @@ inherit = bar/master
; Use $ xrandr -q | grep " connected" | cut -d ' ' -f1
monitor =
modules-left = config i3-workspaces menu
modules-left = config i3 menu
modules-center = clock
modules-right = pkg memory temperature coreuse network volume

View File

@ -70,7 +70,7 @@ label-empty-foreground = ${colors.foreground}
;;;;;;;;;;;;;;;;;;;
;; i3 Workspaces ;;
;;;;;;;;;;;;;;;;;;;
[module/workspaces]
[module/i3]
type = internal/i3
pin-workspaces = true
strip-wsnumbers = false

View File

@ -24,7 +24,7 @@ super + shift + r
# quit bspwm normally
super + x
bspc quit
rofi-logout
# close and kill
super + {_,shift + }q

View File

@ -2,6 +2,7 @@
connected=""
disconnected=""
while true; do
if ping -c1 8.8.8.8 >/dev/null; then
echo "$connected"; sleep 10

View File

@ -6,29 +6,29 @@ ICON=/usr/share/icons/gnome/32x32/apps/system-software-update.png
while true; do
count=$(checkupdates | wc -l)
if hash notify-send >/dev/null 2>&1; then
if [ $count -gt 50 ]; then
if [[ $count > 50 ]]; then
notify-send -u critical -i $ICON \
"You really need to update soon!!" "$count New package updates"
elif [ $count -gt 25 ]; then
elif [[ $count > 25 ]]; then
notify-send -u normal -i $ICON \
"You should update soon" "$count New package updates"
elif [ $count -gt 5 ]; then
elif [[ $count > 2 ]]; then
notify-send -u low -i $ICON \
"$count New package updates"
fi
fi
while [ "$count" -gt 0 ]; do
if [ $count -eq 1 ]; then
while [[ $count > 0 ]]; do
if [[ $count == 1 ]]; then
echo "$count Update"
elif [ $count -gt 1 ]; then
elif [[ $count > 1 ]]; then
echo "$count Updates"
fi
sleep 8
count=$(checkupdates | wc -l)
done
while [ "$count" -eq 0 ]; do
while [[ $count == 0 ]]; do
echo $BAR_ICON
sleep 1200
count=$(checkupdates | wc -l)

View File

@ -1,6 +1,10 @@
#!/usr/bin/env bash
CUR_WM=$(xprop -root | grep "_NET_WM_NAME(UTF8_STRING)" | cut -d " " -f 3 | sed 's/"//g' | awk '{print tolower($0)}')
if [[ "$(xprop -root | grep -i "openbox")" > /dev/null ]]; then
CUR_WM="openbox"
else
CUR_WM=$(xprop -root | grep "_NET_WM_NAME(UTF8_STRING)" | cut -d " " -f 3 | sed 's/"//g' | awk '{print tolower($0)}')
fi
ANS=$(echo " lock| logout| reboot| shutdown" | rofi -sep "|" -dmenu -i -p 'System: ' "" -width 20 -hide-scrollbar -font "Ubuntu 11" -eh 1 -line-padding 4 -padding 20 -no-config -lines 4 -color-enabled -color-window "#1F2326, #F1F1F1, #1F2326" -color-normal "#1F2326, #F1F1F1, #1F2326, #4E88CF, #1F2326")

View File

@ -1,6 +1,10 @@
#!/usr/bin/env bash
CUR_WM=$(xprop -root | grep "_NET_WM_NAME(UTF8_STRING)" | cut -d " " -f 3 | sed 's/"//g' | awk '{print tolower($0)}')
if [[ "$(xprop -root | grep -i "openbox")" > /dev/null ]]; then
CUR_WM="openbox"
else
CUR_WM=$(xprop -root | grep "_NET_WM_NAME(UTF8_STRING)" | cut -d " " -f 3 | sed 's/"//g' | awk '{print tolower($0)}')
fi
ANS=$(echo " lock| logout| reboot| shutdown" | rofi -sep "|" -dmenu -i -p 'System: ' "" -width 20 -hide-scrollbar -font "Ubuntu 11" -eh 1 -line-padding 4 -padding 20 -no-config -lines 4 -color-enabled -color-window "{{.Data.terminal_background}}, {{.Data.terminal_foreground}}, {{.Data.terminal_background}}" -color-normal "{{.Data.terminal_background}}, {{.Data.terminal_foreground}}, {{.Data.terminal_background}}, {{index .Data.terminal_colors 4}}, {{.Data.terminal_background}}")

View File

@ -1,11 +1,10 @@
#!/usr/bin/env bash
start="al-compositor --start"
restart="al-compositor --restart"
if [ -e "${HOME}/.config/.composite_enabled" ]; then
if pgrep compton; then
$restart
else
$start
fi
if [ -e "$HOME/.config/.composite_enabled" ] && pgrep compton >/dev/null; then
al-compositor --restart
elif [ -e "$HOME/.config/.composite_enabled" ]; then
al-compositor --start
else
echo -e "Compositing in not enabled.. Requires ~/.config/.composite_enabled
\n\nTry running paranoid and enabling compositing"
fi

View File

@ -1,31 +1,45 @@
#!/usr/bin/env bash
#
# Polybar launcher script written by Nathaniel Maia for use in ArchLabs
# Will launch bars depending on WM
# Can also be used to reload openbox session with [--reload] or [-r]
# Enter your bar names here (seperated by spaces) eg BARS=(bar bar1 my-bar)
# This will be combined with CUR_WM eg. openbox-bar, bspwm-bar, i3-bar
BARS=(bar)
CONFIG=$HOME/.config/polybar/config
CUR_WM=$(xprop -root | grep "_NET_WM_NAME(UTF8_STRING)" | cut -d " " -f 3 | sed 's/"//g' | awk '{print tolower($0)}')
if [[ $1 == "--reload" ]] || [[ $1 == "-r" ]]; then
if [[ $CUR_WM == "openbox" ]]; then
if [[ "$(xprop -root | grep -i "openbox")" > /dev/null ]]; then
CUR_WM="openbox"
else
CUR_WM=$(xprop -root | grep "_NET_WM_NAME(UTF8_STRING)" | cut -d " " -f 3 | sed 's/"//g' | awk '{print tolower($0)}')
fi
# Reload openbox session
if [[ $1 == "--reload" ]] && [[ $CUR_WM == "openbox" ]]; then
openbox --restart
al-compositor --restart
al-tint2restart
else
echo "[WARN]: Option [--reload] is meant for Openbox..."
fi
elif [[ $1 == "--reload" ]]; then
echo "[WARN]: Option [--reload] is meant for Openbox Only"
fi
if pgrep -x "tint2" >/dev/null; then
echo "Tint is running... Exiting"
exit 1
# Drop out if tint2 is running
if pgrep tint2 >/dev/null; then
echo "Tint2 is running... Exiting"
exit 0
fi
while pgrep -x polybar >/dev/null; do
# Terminate already running Bars
while pgrep polybar >/dev/null; do
killall -q polybar
sleep 0.5
done
# Launch each bar in BARS=() above
echo "Using $CUR_WM... Launching Bars"
for bar in "${BARS[@]}"; do
polybar -r --config=$CONFIG ${CUR_WM}-$bar &

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do
while pgrep polybar >/dev/null; do
killall -q polybar
sleep 0.5
done
echo "Bars stopped..."

View File

@ -1,13 +1,10 @@
#!/usr/bin/env bash
# if the script is passed --toggle
if [[ "$1" == *toggle* ]]; then
if pgrep caffeine >/dev/null; then
killall caffeine
else
caffeine &>/dev/null &
fi
exit 0
if [[ "$1" == *toggle* ]] && pgrep caffeine >/dev/null; then
killall caffeine && exit 0
elif [[ "$1" == *toggle* ]]; then
caffeine &>/dev/null && exit 0
fi
while true; do

View File

@ -3,16 +3,13 @@
on=""
off=""
if [[ $1 == *toggle* ]]; then
if pgrep -x compton > /dev/null 2>&1; then
al-compositor --stop
else
al-compositor --start
fi
exit 0
if [[ $1 == *toggle* ]] && pgrep compton >/dev/null; then
al-compositor --stop && exit 0
elif [[ $1 == *toggle* ]]; then
al-compositor --start && exit 0
fi
if pgrep -x compton > /dev/null 2>&1; then
if pgrep compton >/dev/null; then
echo "$on"
else
echo "%{F#888888}$off"

View File

@ -3,6 +3,6 @@
if pgrep -x polybar >/dev/null; then
pkill polybar
else
launch-polybar >/dev/null 2>&1
start-polybar
fi

View File

@ -1,11 +1,12 @@
#!/usr/bin/env bash
if [[ $1 = "--toggle" ]] || [[ $1 = "-t" ]]; then
if pgrep redshift > /dev/null 2>&1; then
killall redshift
if pgrep redshift >/dev/null; then
pkill redshift
else
redshift &
fi
exit 0
fi

View File

@ -1,7 +1,6 @@
#!/usr/bin/env bash
MATCH=$(pgrep --full 'termite --title=work-term')
if ! $MATCH; then
if pgrep --full 'termite --title=work-term' >/dev/null; then
pkill --full 'termite --title=work-term'
else
termite --title=work-term --class=work-term &