Move startpage out of user-skel, update user scripts
This commit is contained in:
parent
e317a9d278
commit
69b746d51b
@ -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 |
@ -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();
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
@ -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;
|
|
||||||
}
|
|
@ -64,7 +64,7 @@ URxvt*iso14755: false
|
|||||||
|
|
||||||
! appearance
|
! appearance
|
||||||
URxvt*depth: 32
|
URxvt*depth: 32
|
||||||
URxvt*background: [80]#2b303b
|
URxvt*background: [90]#2b303b
|
||||||
URxvt*scrollBar: false
|
URxvt*scrollBar: false
|
||||||
URxvt*scrollBar_right: false
|
URxvt*scrollBar_right: false
|
||||||
URxvt*internalBorder: 0
|
URxvt*internalBorder: 0
|
||||||
@ -72,7 +72,7 @@ URxvt*externalBorder: 0
|
|||||||
|
|
||||||
! fonts
|
! fonts
|
||||||
URxvt*letterSpace: -1
|
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>
|
! run :.!fc-list | grep <font-name>
|
||||||
|
|
||||||
! perl extensions
|
! perl extensions
|
||||||
|
@ -64,7 +64,7 @@ URxvt*iso14755: false
|
|||||||
|
|
||||||
! appearance
|
! appearance
|
||||||
URxvt*depth: 32
|
URxvt*depth: 32
|
||||||
URxvt*background: [80]{{.Data.terminal_background}}
|
URxvt*background: [90]{{.Data.terminal_background}}
|
||||||
URxvt*scrollBar: false
|
URxvt*scrollBar: false
|
||||||
URxvt*scrollBar_right: false
|
URxvt*scrollBar_right: false
|
||||||
URxvt*internalBorder: 0
|
URxvt*internalBorder: 0
|
||||||
@ -72,7 +72,7 @@ URxvt*externalBorder: 0
|
|||||||
|
|
||||||
! fonts
|
! fonts
|
||||||
URxvt*letterSpace: -1
|
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>
|
! run :.!fc-list | grep <font-name>
|
||||||
|
|
||||||
! perl extensions
|
! perl extensions
|
||||||
|
@ -25,31 +25,31 @@ set_from_resource $grey color7 #969CD3
|
|||||||
set_from_resource $white color15 #F1F1F1
|
set_from_resource $white color15 #F1F1F1
|
||||||
set_from_resource $black color0 #19043C
|
set_from_resource $black color0 #19043C
|
||||||
|
|
||||||
# class bg bd txt ind
|
# class bd bg txt ind child_bordr
|
||||||
client.focused $bg $blue $fg $blue
|
client.focused $grey $bg $fg $blue $grey
|
||||||
client.unfocused $bg $bg $fg $bg
|
client.unfocused $grey $bg $black $bg $bg
|
||||||
client.focused_inactive $bg $bg $fg $bg
|
client.focused_inactive $grey $bg $black $bg $bg
|
||||||
client.urgent $bg $red $fg $red
|
client.urgent $red $bg $red $red $red
|
||||||
|
client.placeholder $grey $bg $bg $bg $bg
|
||||||
client.background $bg
|
client.background $bg
|
||||||
|
|
||||||
# border
|
# border & title
|
||||||
for_window [class="^.*"] border pixel 2
|
for_window [class="^.*"] border pixel 2, title_format "<b> %class >> %title </b>"
|
||||||
|
|
||||||
# gaps
|
# gaps
|
||||||
gaps inner 12
|
gaps inner 15
|
||||||
gaps outer 0
|
gaps outer 0
|
||||||
|
|
||||||
# font
|
# font
|
||||||
font pango:Ubuntu 11
|
font pango:Ubuntu 11
|
||||||
|
|
||||||
|
|
||||||
##
|
|
||||||
#### Set
|
#### Set
|
||||||
##
|
##
|
||||||
|
|
||||||
# $mod for Super or Alt
|
# $Mod = Super or Alt?
|
||||||
set $mod Mod4
|
set $Mod Mod4
|
||||||
#set $mod Mod1
|
#set $Mod Mod1
|
||||||
|
|
||||||
# direction keys
|
# direction keys
|
||||||
set $up l
|
set $up l
|
||||||
@ -57,18 +57,18 @@ set $down k
|
|||||||
set $left j
|
set $left j
|
||||||
set $right semicolon
|
set $right semicolon
|
||||||
|
|
||||||
set $WS1 "1:"
|
set $WS1 "1: "
|
||||||
set $WS2 "2:"
|
set $WS2 "2: "
|
||||||
set $WS3 "3:"
|
set $WS3 "3: "
|
||||||
set $WS4 "4:"
|
set $WS4 "4: "
|
||||||
set $WS5 "5:"
|
set $WS5 "5: "
|
||||||
set $WS6 "6:"
|
set $WS6 "6: "
|
||||||
set $WS7 "7:"
|
set $WS7 "7: "
|
||||||
set $WS8 "8:"
|
set $WS8 "8: "
|
||||||
|
|
||||||
# monitors
|
# monitors
|
||||||
set $firstMonitor HDMI1
|
set $Mon1 HDMI1
|
||||||
set $secondMonitor HDMI2
|
set $Mon2 HDMI2
|
||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
################# Autostart ##################
|
################# Autostart ##################
|
||||||
@ -78,6 +78,9 @@ set $secondMonitor HDMI2
|
|||||||
exec_always --no-startup-id start-compton
|
exec_always --no-startup-id start-compton
|
||||||
exec_always --no-startup-id start-polybar
|
exec_always --no-startup-id start-polybar
|
||||||
exec_always --no-startup-id numlockx on
|
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
|
# run once
|
||||||
exec --no-startup-id xfsettingsd
|
exec --no-startup-id xfsettingsd
|
||||||
@ -91,7 +94,7 @@ exec --no-startup-id lxpolkit
|
|||||||
####################################################################################################
|
####################################################################################################
|
||||||
|
|
||||||
# kill focused window
|
# kill focused window
|
||||||
bindsym $mod+Shift+q kill
|
bindsym $Mod+Shift+q kill
|
||||||
bindsym Mod1+q kill
|
bindsym Mod1+q kill
|
||||||
|
|
||||||
# launchers
|
# launchers
|
||||||
@ -99,13 +102,13 @@ bindsym Control+space exec --no-startup-id rofi-gorice
|
|||||||
bindsym Mod1+F1 exec --no-startup-id rofi-gorice
|
bindsym Mod1+F1 exec --no-startup-id rofi-gorice
|
||||||
|
|
||||||
# core
|
# core
|
||||||
bindsym $mod+e exec --no-startup-id al-open -edit
|
bindsym $Mod+e exec --no-startup-id al-open -edit
|
||||||
bindsym $mod+t exec --no-startup-id exo-open --launch TerminalEmulator
|
bindsym $Mod+t exec exo-open --launch TerminalEmulator
|
||||||
bindsym $mod+w exec --no-startup-id exo-open --launch WebBrowser
|
bindsym $Mod+w exec exo-open --launch WebBrowser
|
||||||
bindsym $mod+f exec --no-startup-id exo-open --launch FileManager
|
bindsym $Mod+f exec exo-open --launch FileManager
|
||||||
|
|
||||||
# logout
|
# 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
|
# long command broken into multiple lines
|
||||||
bindsym Print exec --no-startup-id "scrot '%S.png' \
|
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 assignment
|
||||||
workspace $WS1 output $firstMonitor
|
workspace $WS1 output $Mon1
|
||||||
workspace $WS2 output $secondMonitor
|
workspace $WS2 output $Mon1
|
||||||
workspace $WS3 output $firstMonitor
|
workspace $WS3 output $Mon1
|
||||||
workspace $WS4 output $secondMonitor
|
workspace $WS4 output $Mon1
|
||||||
workspace $WS5 output $firstMonitor
|
workspace $WS5 output $Mon2
|
||||||
workspace $WS6 output $secondMonitor
|
workspace $WS6 output $Mon2
|
||||||
workspace $WS7 output $firstMonitor
|
workspace $WS7 output $Mon2
|
||||||
workspace $WS8 output $secondMonitor
|
workspace $WS8 output $Mon2
|
||||||
|
|
||||||
# switch to workspace
|
# switch to workspace
|
||||||
bindsym $mod+1 workspace $WS1
|
bindsym $Mod+1 workspace $WS1
|
||||||
bindsym $mod+2 workspace $WS2
|
bindsym $Mod+2 workspace $WS2
|
||||||
bindsym $mod+3 workspace $WS3
|
bindsym $Mod+3 workspace $WS3
|
||||||
bindsym $mod+4 workspace $WS4
|
bindsym $Mod+4 workspace $WS4
|
||||||
bindsym $mod+5 workspace $WS5
|
bindsym $Mod+5 workspace $WS5
|
||||||
bindsym $mod+6 workspace $WS6
|
bindsym $Mod+6 workspace $WS6
|
||||||
bindsym $mod+7 workspace $WS7
|
bindsym $Mod+7 workspace $WS7
|
||||||
bindsym $mod+8 workspace $WS8
|
bindsym $Mod+8 workspace $WS8
|
||||||
|
|
||||||
# move focused container to workspace
|
# move focused container to workspace
|
||||||
bindsym $mod+Shift+1 move container to workspace $WS1; workspace $WS1
|
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+2 move container to workspace $WS2; workspace $WS2
|
||||||
bindsym $mod+Shift+3 move container to workspace $WS3; workspace $WS3
|
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+4 move container to workspace $WS4; workspace $WS4
|
||||||
bindsym $mod+Shift+5 move container to workspace $WS5; workspace $WS5
|
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+6 move container to workspace $WS6; workspace $WS6
|
||||||
bindsym $mod+Shift+7 move container to workspace $WS7; workspace $WS7
|
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+8 move container to workspace $WS8; workspace $WS8
|
||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
################# Reload configs #################
|
################# Reload configs #################
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
|
|
||||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
# 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
|
# reload the configuration file
|
||||||
bindsym $mod+Shift+c reload
|
bindsym $Mod+Shift+c reload
|
||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
################ Container/Window control ##################
|
################ Container/Window control ##################
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
|
|
||||||
# Scratchpad, Floating
|
# Scratchpad, Floating
|
||||||
bindsym $mod+minus move scratchpad
|
bindsym Mod1+minus move scratchpad
|
||||||
bindsym $mod+plus scratchpad show
|
bindsym Mod1+plus scratchpad show
|
||||||
bindsym $mod+space floating toggle
|
bindsym $Mod+space floating toggle
|
||||||
floating_modifier Mod1
|
floating_modifier Mod1
|
||||||
|
|
||||||
# change focus
|
# change focus
|
||||||
bindsym $mod+$left focus left
|
bindsym $Mod+$left focus left
|
||||||
bindsym $mod+$down focus down
|
bindsym $Mod+$down focus down
|
||||||
bindsym $mod+$up focus up
|
bindsym $Mod+$up focus up
|
||||||
bindsym $mod+$right focus right
|
bindsym $Mod+$right focus right
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
# alternatively, you can use the cursor keys:
|
||||||
bindsym $mod+Left focus left
|
bindsym $Mod+Left focus left
|
||||||
bindsym $mod+Down focus down
|
bindsym $Mod+Down focus down
|
||||||
bindsym $mod+Up focus up
|
bindsym $Mod+Up focus up
|
||||||
bindsym $mod+Right focus right
|
bindsym $Mod+Right focus right
|
||||||
|
|
||||||
bindsym $mod+p focus parent
|
bindsym $Mod+p focus parent
|
||||||
bindsym $mod+c focus child
|
bindsym $Mod+c focus child
|
||||||
|
|
||||||
# move focused window
|
# move focused window
|
||||||
bindsym $mod+Shift+$left move left 10px
|
bindsym $Mod+Shift+$left move left 10px
|
||||||
bindsym $mod+Shift+$down move down 10px
|
bindsym $Mod+Shift+$down move down 10px
|
||||||
bindsym $mod+Shift+$up move up 10px
|
bindsym $Mod+Shift+$up move up 10px
|
||||||
bindsym $mod+Shift+$right move right 10px
|
bindsym $Mod+Shift+$right move right 10px
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
# alternatively, you can use the cursor keys:
|
||||||
bindsym $mod+Shift+Up move up 10px
|
bindsym $Mod+Shift+Up move up 10px
|
||||||
bindsym $mod+Shift+Down move down 10px
|
bindsym $Mod+Shift+Down move down 10px
|
||||||
bindsym $mod+Shift+Left move left 10px
|
bindsym $Mod+Shift+Left move left 10px
|
||||||
bindsym $mod+Shift+Right move right 10px
|
bindsym $Mod+Shift+Right move right 10px
|
||||||
|
|
||||||
# Size
|
# Size
|
||||||
bindsym Mod1+Up resize shrink height 10 px or 1 ppt
|
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+Left resize shrink width 10 px or 1 ppt
|
||||||
bindsym Mod1+Right resize grow width 10 px or 1 ppt
|
bindsym Mod1+Right resize grow width 10 px or 1 ppt
|
||||||
|
|
||||||
# next/previous workspace
|
# layout toggle, keycode 23 is Tab
|
||||||
bindsym Mod1+Tab workspace next
|
bindcode Mod1+23 layout toggle tabbed split
|
||||||
bindsym Mod1+Shift+Tab workspace prev
|
bindcode $Mod+23 layout toggle splitv splith
|
||||||
|
|
||||||
# switch to workspace with urgent window
|
# switch to workspace with urgent window
|
||||||
for_window [urgent=latest] focus
|
for_window [urgent="latest"] focus
|
||||||
|
focus_on_window_activation focus
|
||||||
|
|
||||||
# container layout
|
# container layout
|
||||||
bindsym $mod+h split h
|
bindsym $Mod+h split h
|
||||||
bindsym $mod+v split v
|
bindsym $Mod+v split v
|
||||||
bindsym $mod+Shift+t layout tabbed
|
bindsym $Mod+Shift+t layout tabbed
|
||||||
bindsym $mod+Shift+s layout stacking
|
bindsym $Mod+Shift+s layout stacking
|
||||||
bindsym $mod+Shift+h layout toggle split
|
bindsym $Mod+Shift+h layout toggle split
|
||||||
default_orientation horizontal
|
default_orientation horizontal
|
||||||
|
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
@ -233,35 +237,52 @@ new_window normal
|
|||||||
new_float normal
|
new_float normal
|
||||||
hide_edge_borders both
|
hide_edge_borders both
|
||||||
popup_during_fullscreen smart
|
popup_during_fullscreen smart
|
||||||
bindsym $mod+shift+b border toggle
|
bindsym $Mod+shift+b border toggle
|
||||||
|
|
||||||
#changing border style
|
#changing border style
|
||||||
bindsym $mod+n border normal
|
bindsym $Mod+n border normal
|
||||||
bindsym $mod+y border 1pixel
|
bindsym $Mod+y border 1pixel
|
||||||
bindsym $mod+u border none
|
bindsym $Mod+u border none
|
||||||
|
|
||||||
set $mode_gaps Gap Size + | -
|
# change gaps
|
||||||
bindsym $mod+Shift+g mode "$mode_gaps"
|
bindsym $Mod+plus gaps outer current plus 5
|
||||||
mode "$mode_gaps" {
|
bindsym $Mod+minus gaps outer current minus 5
|
||||||
bindsym plus gaps inner all plus 2
|
bindsym $Mod+Shift+plus gaps inner current plus 5
|
||||||
bindsym minus gaps inner all minus 2
|
bindsym $Mod+Shift+minus gaps inner current minus 5
|
||||||
bindsym Return mode "default"
|
|
||||||
bindsym Escape mode "default"
|
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 #################
|
################# application settings #################
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
|
|
||||||
for_window [class="qt5ct|Lxappearance|^Gpick$|Pamac|Peek|Nitrogen"] floating enable
|
# focus & floating
|
||||||
for_window [window_role="^Preferences$"] floating enable
|
for_window [class="(?i)(?:lxapp\w+|peek)"] floating enable, focus
|
||||||
|
for_window [class="(?i)(?:gpic\w+|gvim)"] floating enable, focus
|
||||||
for_window [class="Termite|^Thunar|Geany|Firefox"] 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
|
# Assign Applications to specific workspace
|
||||||
# get class with xprop
|
# get class with xprop
|
||||||
assign [class="Firefox"] → $WS1
|
assign [class="(?i)(?:firefox)"] → $WS1
|
||||||
assign [class="Geany"] → $WS2
|
assign [class="(?i)(?:geany)"] → $WS2
|
||||||
assign [class="Thunar"] → $WS3
|
assign [class="(?i)(?:thunar)"] → $WS3
|
||||||
assign [class="^Gimp"] → $WS4
|
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'
|
||||||
|
@ -27,4 +27,4 @@ sleep 2; al-conky-session &
|
|||||||
|
|
||||||
xdg-user-dirs-gtk-update &
|
xdg-user-dirs-gtk-update &
|
||||||
|
|
||||||
termite --geometry=650x450 --exec=al-hello &
|
# al-hello
|
||||||
|
@ -176,6 +176,8 @@
|
|||||||
</dock>
|
</dock>
|
||||||
<keyboard>
|
<keyboard>
|
||||||
<chainQuitKey/>
|
<chainQuitKey/>
|
||||||
|
|
||||||
|
<!-- Window & Desktop Control -->
|
||||||
<keybind key="W-1">
|
<keybind key="W-1">
|
||||||
<action name="GoToDesktop">
|
<action name="GoToDesktop">
|
||||||
<to>1</to>
|
<to>1</to>
|
||||||
@ -263,11 +265,8 @@
|
|||||||
<action name="FocusToBottom"/>
|
<action name="FocusToBottom"/>
|
||||||
<action name="Unfocus"/>
|
<action name="Unfocus"/>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="A-space">
|
|
||||||
<action name="ShowMenu">
|
<!-- Media & Backlight -->
|
||||||
<menu>client-menu</menu>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="XF86AudioRaiseVolume">
|
<keybind key="XF86AudioRaiseVolume">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<command>pamixer -i 2</command>
|
<command>pamixer -i 2</command>
|
||||||
@ -313,6 +312,8 @@
|
|||||||
<command>xbacklight -10</command>
|
<command>xbacklight -10</command>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
|
|
||||||
|
<!-- Applications -->
|
||||||
<keybind key="Print">
|
<keybind key="Print">
|
||||||
<action name="Execute">
|
<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>
|
<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>
|
<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>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="A-F1">
|
|
||||||
<action name="Execute">
|
|
||||||
<command>rofi-gorice</command>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="W-f">
|
<keybind key="W-f">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<command>exo-open --launch FileManager</command>
|
<command>exo-open --launch FileManager</command>
|
||||||
@ -348,6 +344,11 @@
|
|||||||
<command>al-open -edit</command>
|
<command>al-open -edit</command>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
|
<keybind key="C-A-m">
|
||||||
|
<action name="Execute">
|
||||||
|
<command>xfce4-settings-manager</command>
|
||||||
|
</action>
|
||||||
|
</keybind>
|
||||||
<keybind key="W-m">
|
<keybind key="W-m">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<command>audacious</command>
|
<command>audacious</command>
|
||||||
@ -358,34 +359,38 @@
|
|||||||
<command>pavucontrol</command>
|
<command>pavucontrol</command>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="W-x">
|
|
||||||
<action name="Execute">
|
<!-- Launchers -->
|
||||||
<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>
|
|
||||||
<keybind key="W-s">
|
<keybind key="W-s">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<command>skippy-xd</command>
|
<command>skippy-xd</command>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
|
<keybind key="A-F1">
|
||||||
|
<action name="Execute">
|
||||||
|
<command>rofi-gorice</command>
|
||||||
|
</action>
|
||||||
|
</keybind>
|
||||||
<keybind key="C-space">
|
<keybind key="C-space">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<command>rofi-gorice</command>
|
<command>rofi-gorice</command>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="W-space">
|
|
||||||
<action name="ShowMenu">
|
<!-- Logout & Reload -->
|
||||||
<menu>root-menu</menu>
|
<keybind key="W-x">
|
||||||
|
<action name="Execute">
|
||||||
|
<command>exit-openbox</command>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</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">
|
<keybind key="W-S-r">
|
||||||
<action name="Execute">
|
<action name="Execute">
|
||||||
<command>start-polybar --reload</command>
|
<command>start-polybar --reload</command>
|
||||||
@ -397,6 +402,13 @@
|
|||||||
<keybind key="C-S-Enter">
|
<keybind key="C-S-Enter">
|
||||||
<action name="Reconfigure"/>
|
<action name="Reconfigure"/>
|
||||||
</keybind>
|
</keybind>
|
||||||
|
|
||||||
|
<!-- Window Control -->
|
||||||
|
<keybind key="W-Escape">
|
||||||
|
<action name="Execute">
|
||||||
|
<command>xkill</command>
|
||||||
|
</action>
|
||||||
|
</keybind>
|
||||||
<keybind key="A-F4">
|
<keybind key="A-F4">
|
||||||
<action name="Close"/>
|
<action name="Close"/>
|
||||||
</keybind>
|
</keybind>
|
||||||
@ -424,11 +436,19 @@
|
|||||||
<keybind key="S-W-q">
|
<keybind key="S-W-q">
|
||||||
<action name="Close"/>
|
<action name="Close"/>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="C-A-m">
|
|
||||||
<action name="Execute">
|
<keybind key="W-space">
|
||||||
<command>xfce4-settings-manager</command>
|
<action name="ShowMenu">
|
||||||
|
<menu>root-menu</menu>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
|
<keybind key="A-space">
|
||||||
|
<action name="ShowMenu">
|
||||||
|
<menu>client-menu</menu>
|
||||||
|
</action>
|
||||||
|
</keybind>
|
||||||
|
|
||||||
|
<!-- Tiling Bindings -->
|
||||||
<keybind key="W-KP_1">
|
<keybind key="W-KP_1">
|
||||||
<action name="UnmaximizeFull"/>
|
<action name="UnmaximizeFull"/>
|
||||||
<action name="MoveResizeTo">
|
<action name="MoveResizeTo">
|
||||||
@ -540,11 +560,6 @@
|
|||||||
<width>50%</width>
|
<width>50%</width>
|
||||||
</action>
|
</action>
|
||||||
</keybind>
|
</keybind>
|
||||||
<keybind key="C-A-Delete">
|
|
||||||
<action name="Execute">
|
|
||||||
<command>exit-openbox</command>
|
|
||||||
</action>
|
|
||||||
</keybind>
|
|
||||||
<keybind key="W-A-Right">
|
<keybind key="W-A-Right">
|
||||||
<action name="UnmaximizeFull"/>
|
<action name="UnmaximizeFull"/>
|
||||||
<action name="MaximizeVert"/>
|
<action name="MaximizeVert"/>
|
||||||
|
@ -44,7 +44,7 @@ inherit = bar/master
|
|||||||
; Use $ xrandr -q | grep " connected" | cut -d ' ' -f1
|
; Use $ xrandr -q | grep " connected" | cut -d ' ' -f1
|
||||||
monitor =
|
monitor =
|
||||||
|
|
||||||
modules-left = config i3-workspaces menu
|
modules-left = config i3 menu
|
||||||
modules-center = clock
|
modules-center = clock
|
||||||
modules-right = pkg memory temperature coreuse network volume
|
modules-right = pkg memory temperature coreuse network volume
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ label-empty-foreground = ${colors.foreground}
|
|||||||
;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;
|
||||||
;; i3 Workspaces ;;
|
;; i3 Workspaces ;;
|
||||||
;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;
|
||||||
[module/workspaces]
|
[module/i3]
|
||||||
type = internal/i3
|
type = internal/i3
|
||||||
pin-workspaces = true
|
pin-workspaces = true
|
||||||
strip-wsnumbers = false
|
strip-wsnumbers = false
|
||||||
|
@ -24,7 +24,7 @@ super + shift + r
|
|||||||
|
|
||||||
# quit bspwm normally
|
# quit bspwm normally
|
||||||
super + x
|
super + x
|
||||||
bspc quit
|
rofi-logout
|
||||||
|
|
||||||
# close and kill
|
# close and kill
|
||||||
super + {_,shift + }q
|
super + {_,shift + }q
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
connected=""
|
connected=""
|
||||||
disconnected=""
|
disconnected=""
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
if ping -c1 8.8.8.8 >/dev/null; then
|
if ping -c1 8.8.8.8 >/dev/null; then
|
||||||
echo "$connected"; sleep 10
|
echo "$connected"; sleep 10
|
||||||
|
@ -6,29 +6,29 @@ ICON=/usr/share/icons/gnome/32x32/apps/system-software-update.png
|
|||||||
while true; do
|
while true; do
|
||||||
count=$(checkupdates | wc -l)
|
count=$(checkupdates | wc -l)
|
||||||
if hash notify-send >/dev/null 2>&1; then
|
if hash notify-send >/dev/null 2>&1; then
|
||||||
if [ $count -gt 50 ]; then
|
if [[ $count > 50 ]]; then
|
||||||
notify-send -u critical -i $ICON \
|
notify-send -u critical -i $ICON \
|
||||||
"You really need to update soon!!" "$count New package updates"
|
"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 \
|
notify-send -u normal -i $ICON \
|
||||||
"You should update soon" "$count New package updates"
|
"You should update soon" "$count New package updates"
|
||||||
elif [ $count -gt 5 ]; then
|
elif [[ $count > 2 ]]; then
|
||||||
notify-send -u low -i $ICON \
|
notify-send -u low -i $ICON \
|
||||||
"$count New package updates"
|
"$count New package updates"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while [ "$count" -gt 0 ]; do
|
while [[ $count > 0 ]]; do
|
||||||
if [ $count -eq 1 ]; then
|
if [[ $count == 1 ]]; then
|
||||||
echo "$count Update"
|
echo "$count Update"
|
||||||
elif [ $count -gt 1 ]; then
|
elif [[ $count > 1 ]]; then
|
||||||
echo "$count Updates"
|
echo "$count Updates"
|
||||||
fi
|
fi
|
||||||
sleep 8
|
sleep 8
|
||||||
count=$(checkupdates | wc -l)
|
count=$(checkupdates | wc -l)
|
||||||
done
|
done
|
||||||
|
|
||||||
while [ "$count" -eq 0 ]; do
|
while [[ $count == 0 ]]; do
|
||||||
echo $BAR_ICON
|
echo $BAR_ICON
|
||||||
sleep 1200
|
sleep 1200
|
||||||
count=$(checkupdates | wc -l)
|
count=$(checkupdates | wc -l)
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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")
|
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")
|
||||||
|
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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}}")
|
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}}")
|
||||||
|
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
start="al-compositor --start"
|
if [ -e "$HOME/.config/.composite_enabled" ] && pgrep compton >/dev/null; then
|
||||||
restart="al-compositor --restart"
|
al-compositor --restart
|
||||||
if [ -e "${HOME}/.config/.composite_enabled" ]; then
|
elif [ -e "$HOME/.config/.composite_enabled" ]; then
|
||||||
if pgrep compton; then
|
al-compositor --start
|
||||||
$restart
|
else
|
||||||
else
|
echo -e "Compositing in not enabled.. Requires ~/.config/.composite_enabled
|
||||||
$start
|
\n\nTry running paranoid and enabling compositing"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
@ -1,31 +1,45 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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)
|
# 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
|
# This will be combined with CUR_WM eg. openbox-bar, bspwm-bar, i3-bar
|
||||||
BARS=(bar)
|
BARS=(bar)
|
||||||
|
|
||||||
CONFIG=$HOME/.config/polybar/config
|
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
|
openbox --restart
|
||||||
al-compositor --restart
|
al-compositor --restart
|
||||||
al-tint2restart
|
al-tint2restart
|
||||||
else
|
elif [[ $1 == "--reload" ]]; then
|
||||||
echo "[WARN]: Option [--reload] is meant for Openbox..."
|
echo "[WARN]: Option [--reload] is meant for Openbox Only"
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if pgrep -x "tint2" >/dev/null; then
|
# Drop out if tint2 is running
|
||||||
echo "Tint is running... Exiting"
|
if pgrep tint2 >/dev/null; then
|
||||||
exit 1
|
echo "Tint2 is running... Exiting"
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while pgrep -x polybar >/dev/null; do
|
# Terminate already running Bars
|
||||||
|
while pgrep polybar >/dev/null; do
|
||||||
killall -q polybar
|
killall -q polybar
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Launch each bar in BARS=() above
|
||||||
echo "Using $CUR_WM... Launching Bars"
|
echo "Using $CUR_WM... Launching Bars"
|
||||||
for bar in "${BARS[@]}"; do
|
for bar in "${BARS[@]}"; do
|
||||||
polybar -r --config=$CONFIG ${CUR_WM}-$bar &
|
polybar -r --config=$CONFIG ${CUR_WM}-$bar &
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
killall -q polybar
|
while pgrep polybar >/dev/null; do
|
||||||
while pgrep -u $UID -x polybar >/dev/null; do
|
killall -q polybar
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
done
|
done
|
||||||
echo "Bars stopped..."
|
echo "Bars stopped..."
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# if the script is passed --toggle
|
# if the script is passed --toggle
|
||||||
if [[ "$1" == *toggle* ]]; then
|
if [[ "$1" == *toggle* ]] && pgrep caffeine >/dev/null; then
|
||||||
if pgrep caffeine >/dev/null; then
|
killall caffeine && exit 0
|
||||||
killall caffeine
|
elif [[ "$1" == *toggle* ]]; then
|
||||||
else
|
caffeine &>/dev/null && exit 0
|
||||||
caffeine &>/dev/null &
|
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
@ -3,16 +3,13 @@
|
|||||||
on=""
|
on=""
|
||||||
off=""
|
off=""
|
||||||
|
|
||||||
if [[ $1 == *toggle* ]]; then
|
if [[ $1 == *toggle* ]] && pgrep compton >/dev/null; then
|
||||||
if pgrep -x compton > /dev/null 2>&1; then
|
al-compositor --stop && exit 0
|
||||||
al-compositor --stop
|
elif [[ $1 == *toggle* ]]; then
|
||||||
else
|
al-compositor --start && exit 0
|
||||||
al-compositor --start
|
|
||||||
fi
|
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if pgrep -x compton > /dev/null 2>&1; then
|
if pgrep compton >/dev/null; then
|
||||||
echo "$on"
|
echo "$on"
|
||||||
else
|
else
|
||||||
echo "%{F#888888}$off"
|
echo "%{F#888888}$off"
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
if pgrep -x polybar >/dev/null; then
|
if pgrep -x polybar >/dev/null; then
|
||||||
pkill polybar
|
pkill polybar
|
||||||
else
|
else
|
||||||
launch-polybar >/dev/null 2>&1
|
start-polybar
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [[ $1 = "--toggle" ]] || [[ $1 = "-t" ]]; then
|
if [[ $1 = "--toggle" ]] || [[ $1 = "-t" ]]; then
|
||||||
if pgrep redshift > /dev/null 2>&1; then
|
if pgrep redshift >/dev/null; then
|
||||||
killall redshift
|
pkill redshift
|
||||||
else
|
else
|
||||||
redshift &
|
redshift &
|
||||||
fi
|
fi
|
||||||
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
MATCH=$(pgrep --full 'termite --title=work-term')
|
if pgrep --full 'termite --title=work-term' >/dev/null; then
|
||||||
if ! $MATCH; then
|
|
||||||
pkill --full 'termite --title=work-term'
|
pkill --full 'termite --title=work-term'
|
||||||
else
|
else
|
||||||
termite --title=work-term --class=work-term &
|
termite --title=work-term --class=work-term &
|
||||||
|
Reference in New Issue
Block a user