Large update, remove old scripts & gorice, merge some together

This commit is contained in:
natemaia 2018-02-05 19:31:56 -08:00
parent 9718b4bd71
commit f041702ae0
77 changed files with 1704 additions and 3307 deletions

View File

@ -20,10 +20,6 @@ Section "InputClass"
Option "Ignore" "on"
EndSection
# This option enables the bottom right corner to be a right button on clickpads
# and the right and middle top areas to be right / middle buttons on clickpads
# with a top button area.
# This option is only interpreted by clickpads.
Section "InputClass"
Identifier "Default clickpad buttons"
MatchDriver "libinput"
@ -31,8 +27,6 @@ Section "InputClass"
Option "SecondarySoftButtonAreas" "58% 0 0 15% 42% 58% 0 15%"
EndSection
# This option disables software buttons on Apple touchpads.
# This option is only interpreted by clickpads.
Section "InputClass"
Identifier "Disable clickpad buttons on Apple touchpads"
MatchProduct "Apple|bcm5974"

65
home/.Xresources Executable file → Normal file
View File

@ -6,45 +6,29 @@
*.background: #2b303b
*.cursorColor: #c0c5ce
! black
*.color0: #2b303b
*.color8: #65737e
! red
*.color1: #bf616a
*.color9: #bf616a
! green
*.color2: #a3be8c
*.color10: #a3be8c
! yellow
*.color3: #ebcb8b
*.color11: #ebcb8b
! blue
*.color4: #8fa1b3
*.color12: #8fa1b3
! magenta
*.color5: #b48ead
*.color13: #b48ead
! cyan
*.color6: #96b5b4
*.color14: #96b5b4
! white
*.color7: #65737e
*.color15: #F6F6F6
*.color8: #65737e
*.color9: #bf616a
*.color10: #a3be8c
*.color11: #ebcb8b
*.color12: #8fa1b3
*.color13: #b48ead
*.color14: #96b5b4
*.color15: #F6F6F6
! ------------------------------------------------------------------------------
! xterm
! ------------------------------------------------------------------------------
xterm*font: 7x13
xterm*faceName: Monospace:size=10:antialias=false
xterm*font: Ubuntu Mono
xterm*faceName: Ubuntu Mono:size=11:antialias=false
xterm*loginShell: true
xterm*vt100*geometry: 90x34
xterm*saveLines: 2000
@ -52,33 +36,21 @@ xterm*charClass: 33:48,35:48,37:48,43:48,45-47:48,64:48,95:48,126:48
xterm*termName: xterm-256color
xterm*eightBitInput: false
! ------------------------------------------------------------------------------
! URxvt
! -----------------------------------------------------------------------------
! general settings
URxvt*saveline: 15000
URxvt*termName: rxvt-256color
URxvt*iso14755: false
! appearance
URxvt*depth: 32
URxvt*background: [90]#2b303b
URxvt*scrollBar: false
URxvt*scrollBar_right: false
URxvt*internalBorder: 0
URxvt*externalBorder: 0
! fonts
URxvt*letterSpace: -1
URxvt.font: xft:Ubuntu Mono:size=11
! run :.!fc-list | grep <font-name>
! perl extensions
URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select
! macros for clipboard and selection "m"=Alt
URxvt.copyCommand: xclip -i -selection clipboard
URxvt.pasteCommand: xclip -o -selection clipboard
URxvt.keysym.m-c: perl:clipboard:copy
@ -87,25 +59,19 @@ URxvt.urlLauncher: exo-open
URxvt.underlineURLs: true
URxvt.urlButton: 1
URxvt.geometry: 90x30
! tabbed
URxvt.tabbed.tabbar-fg: 4
URxvt.tabbed.tabbar-bg: 16
URxvt.tabbed.tab-fg: 15
URxvt.tabbed.tab-bg: 4
URxvt*buffered: false
! ------------------------------------------------------------------------------
! UXTerm
! ------------------------------------------------------------------------------
! termtype
UXTerm*termName: xterm-256color
UXTerm*cursorColor: white
UXTerm*VT100.geometry: 90x30
UXTerm*font: Monospace
UXTerm*font: Ubuntu Mono
UXTerm*faceSize: 12
UXTerm*dynamicColors: true
UXTerm*utf8: 2
@ -118,3 +84,12 @@ UXTerm*rightScrollBar: false
UXTerm*jumpScroll: true
UXTerm*multiScroll: true
UXTerm*toolBar: false
! ------------------------------------------------------------------------------
! Rofi
! ------------------------------------------------------------------------------
rofi.font: Ubuntu Mono 12
rofi.color-enabled: true
rofi.color-window: #2b303b, #2b303b, #2b303b
rofi.color-normal: #2b303b, #c0c5ce, #2b303b, #8fa1b3, #2b303b
rofi.separator-style: solid

View File

@ -1,120 +0,0 @@
! ------------------------------------------------------------------------------
! theme colors
! ------------------------------------------------------------------------------
! special
*.foreground: {{.Data.terminal_foreground}}
*.background: {{.Data.terminal_background}}
*.cursorColor: {{.Data.terminal_foreground}}
! black
*.color0: {{index .Data.terminal_colors 0}}
*.color8: {{index .Data.terminal_colors 7}}
! red
*.color1: {{index .Data.terminal_colors 1}}
*.color9: {{index .Data.terminal_colors 1}}
! green
*.color2: {{index .Data.terminal_colors 2}}
*.color10: {{index .Data.terminal_colors 2}}
! yellow
*.color3: {{index .Data.terminal_colors 3}}
*.color11: {{index .Data.terminal_colors 3}}
! blue
*.color4: {{index .Data.terminal_colors 4}}
*.color12: {{index .Data.terminal_colors 4}}
! magenta
*.color5: {{index .Data.terminal_colors 5}}
*.color13: {{index .Data.terminal_colors 5}}
! cyan
*.color6: {{index .Data.terminal_colors 6}}
*.color14: {{index .Data.terminal_colors 6}}
! white
*.color7: {{index .Data.terminal_colors 7}}
*.color15: {{index .Data.terminal_colors 8}}
! ------------------------------------------------------------------------------
! xterm
! ------------------------------------------------------------------------------
xterm*font: 7x13
xterm*faceName: Monospace:size=10:antialias=false
xterm*loginShell: true
xterm*vt100*geometry: 90x34
xterm*saveLines: 2000
xterm*charClass: 33:48,35:48,37:48,43:48,45-47:48,64:48,95:48,126:48
xterm*termName: xterm-256color
xterm*eightBitInput: false
! ------------------------------------------------------------------------------
! URxvt
! -----------------------------------------------------------------------------
! general settings
URxvt*saveline: 15000
URxvt*termName: rxvt-256color
URxvt*iso14755: false
! appearance
URxvt*depth: 32
URxvt*background: [90]{{.Data.terminal_background}}
URxvt*scrollBar: false
URxvt*scrollBar_right: false
URxvt*internalBorder: 0
URxvt*externalBorder: 0
! fonts
URxvt*letterSpace: -1
URxvt.font: xft:Ubuntu Mono:size=11
! run :.!fc-list | grep <font-name>
! perl extensions
URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select
! macros for clipboard and selection "m"=Alt
URxvt.copyCommand: xclip -i -selection clipboard
URxvt.pasteCommand: xclip -o -selection clipboard
URxvt.keysym.m-c: perl:clipboard:copy
URxvt.keysym.m-v: perl:clipboard:paste
URxvt.urlLauncher: exo-open
URxvt.underlineURLs: true
URxvt.urlButton: 1
URxvt.geometry: 90x30
! tabbed
URxvt.tabbed.tabbar-fg: 4
URxvt.tabbed.tabbar-bg: 16
URxvt.tabbed.tab-fg: 15
URxvt.tabbed.tab-bg: 4
URxvt*buffered: false
! ------------------------------------------------------------------------------
! UXTerm
! ------------------------------------------------------------------------------
! termtype
UXTerm*termName: xterm-256color
UXTerm*cursorColor: white
UXTerm*VT100.geometry: 90x30
UXTerm*font: Monospace
UXTerm*faceSize: 12
UXTerm*dynamicColors: true
UXTerm*utf8: 2
UXTerm*eightBitInput: true
UXTerm*saveLines: 10000
UXTerm*scrollKey: true
UXTerm*scrollTtyOutput: false
UXTerm*scrollBar: false
UXTerm*rightScrollBar: false
UXTerm*jumpScroll: true
UXTerm*multiScroll: true
UXTerm*toolBar: false

View File

@ -2,19 +2,14 @@
# key bindings
sxhkd &
# wallpaper
nitrogen --restore &
# set super key to launch rofi
ksuperkey -e 'Super_L=Alt_L|F1' &
# launch compton
al-compositor --start &
# gnome polkit
lxpolkit &
# panel
sleep 1; al-polybar-session &
@ -41,7 +36,6 @@ bspc config pointer_action3 resize_corner
bspc rule -a thunar desktop='^1' state=floating follow=on
bspc rule -a firefox desktop='^2'
bspc rule -a mplayer2 state=floating
bspc rule -a Galculator state=floating
bspc rule -a Void_Exit_Session state=floating layer=above
bspc rule -a Exit_Session state=floating layer=above

2
home/.config/dunst/dunstrc Executable file → Normal file
View File

@ -31,8 +31,6 @@
icon_position = left
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
[shortcuts]
[urgency_low]
background = "#2b303b"
foreground = "#c0c5ce"

View File

@ -1,50 +0,0 @@
[global]
font = Ubuntu 11
markup = yes
format = "<b>%s</b>\n%b"
sort = yes
indicate_hidden = yes
alignment = center
bounce_freq = 0
show_age_threshold = 60
word_wrap = yes
ignore_newline = no
geometry = "400x10-20+40"
shrink = yes
transparency = 0
idle_threshold = 0
#monitor = 0
follow = mouse
sticky_history = yes
history_length = 20
show_indicators = no
line_height = 0
separator_height = 2
padding = 10
horizontal_padding = 20
frame_color = "{{.Data.border_color}}"
separator_color = frame
frame_width = 1
startup_notification = false
dmenu = /usr/bin/dmenu -p dunst:
browser = /usr/bin/firefox
icon_position = left
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
[shortcuts]
[urgency_low]
background = "{{.Data.terminal_background}}"
foreground = "{{.Data.terminal_foreground}}"
timeout = 3
[urgency_normal]
background = "{{.Data.terminal_background}}"
foreground = "{{.Data.terminal_foreground}}"
timeout = 3
[urgency_critical]
background = "{{.Data.terminal_background}}"
foreground = "{{index .Data.terminal_colors 1}}"
frame_color = "{{index .Data.terminal_colors 1}}"
timeout = 5

View File

@ -1,11 +0,0 @@
[Filechooser Settings]
LocationMode=path-bar
ShowHidden=false
ShowSizeColumn=true
GeometryX=0
GeometryY=0
GeometryWidth=750
GeometryHeight=650
SortColumn=name
SortOrder=ascending
StartupMode=recent

View File

@ -5,7 +5,7 @@ file:///home/liveuser/Pictures
file:///home/liveuser/Music
file:///home/liveuser/Videos
file:///home/liveuser/Templates
file:///home/liveuser/.config configs
file:///home/liveuser/.config .config
file:///home/liveuser/.config/polybar
file:///home/liveuser/.config/neofetch
file:///home/liveuser/.config/termite

View File

@ -102,10 +102,10 @@ bindsym $Mod+Shift+q kill
bindsym Mod1+q kill
# launchers
bindsym Control+space exec --no-startup-id rofi-gorice
bindsym Control+space exec --no-startup-id rofr.sh -r
# this is needed for super key to launch rofi
bindsym Mod1+F1 exec --no-startup-id rofi-gorice
bindsym Mod1+F1 exec --no-startup-id rofr.sh -r
# core
bindsym $Mod+e exec --no-startup-id geany
@ -114,7 +114,7 @@ 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 rofr.sh -l
# long command broken into multiple lines
bindsym Print exec --no-startup-id "scrot '%S.png' \
@ -181,9 +181,7 @@ bindsym $Mod+Shift+c reload
####################################################################################################
# Scratchpad, Floating
bindsym Mod1+minus move scratchpad
bindsym Mod1+plus scratchpad show
bindsym $Mod+space floating toggle
bindsym $Mod+Shift+space floating toggle
floating_modifier Mod1
# change focus
@ -255,7 +253,6 @@ bindsym $Mod+plus gaps inner current plus 5
bindsym $Mod+minus gaps inner current minus 5
bindsym $Mod+Shift+plus gaps outer current plus 5
bindsym $Mod+Shift+minus gaps outer 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
@ -266,10 +263,6 @@ bindsym $Mod+Control+Shift+minus gaps outer all minus 5
################# application settings #################
####################################################################################################
# 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
@ -279,16 +272,11 @@ for_window [class="(?i)(?:geany|firefox)"] focus
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
for_window [title="(?i)(?:copying|deleting|moving)"] floating enable
for_window [window_role="(?i)(?:pop-up|setup)"] floating 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

@ -198,7 +198,7 @@
</item>
<item label="Exit Openbox">
<action name="Execute">
<command>rofi-logout</command>
<command>rofr.sh -l</command>
</action>
</item>
</menu>

View File

@ -5,116 +5,61 @@
</resistance>
<focus>
<focusNew>yes</focusNew>
<!-- always try to focus new windows when they appear. other rules do
apply -->
<followMouse>no</followMouse>
<!-- move focus to a window when you move the mouse into it -->
<focusLast>yes</focusLast>
<!-- focus the last used window when changing desktops, instead of the one
under the mouse pointer. when followMouse is enabled -->
<underMouse>no</underMouse>
<!-- move focus under the mouse, even when the mouse is not moving -->
<focusDelay>200</focusDelay>
<!-- when followMouse is enabled, the mouse must be inside the window for
this many milliseconds (1000 = 1 sec) before moving focus to it -->
<raiseOnFocus>no</raiseOnFocus>
<!-- when followMouse is enabled, and a window is given focus by moving the
mouse into it, also raise the window -->
</focus>
<placement>
<policy>Smart</policy>
<!-- 'Smart' or 'UnderMouse' -->
<center>yes</center>
<!-- whether to place windows in the center of the free area found or
the top left corner -->
<monitor>Mouse</monitor>
<!-- with Smart placement on a multi-monitor system, try to place new windows
on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
the active window is, 'Primary' - only on the primary monitor -->
<primaryMonitor>Mouse</primaryMonitor>
<!-- The monitor where Openbox should place popup dialogs such as the
focus cycling popup, or the desktop switch popup. It can be an index
from 1, specifying a particular monitor. Or it can be one of the
following: 'Mouse' - where the mouse is, or
'Active' - where the active window is -->
</placement>
<theme>
<name>gorice</name>
<name>ArchLabs-Dark</name>
<titleLayout>NLIMC</titleLayout>
<!--
available characters are NDSLIMC, each can occur at most once.
N: window icon
L: window label (AKA title).
I: iconify
M: maximize
C: close
S: shade (roll up/down)
D: omnipresent (on all desktops).
-->
<keepBorder>yes</keepBorder>
<animateIconify>yes</animateIconify>
<font place="ActiveWindow">
<name>Roboto</name>
<size>11</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="InactiveWindow">
<name>Roboto</name>
<size>11</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Italic</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuHeader">
<name>Roboto</name>
<size>11</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuItem">
<name>Roboto</name>
<size>10</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="ActiveOnScreenDisplay">
<name>Roboto</name>
<size>10</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="InactiveOnScreenDisplay">
<name>Roboto</name>
<size>10</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Normal</slant>
<!-- 'italic' or 'normal' -->
</font>
</theme>
<desktops>
<!-- this stuff is only used at startup, pagers allow you to change them
during a session
these are default values to use when other ones are not already set
by other applications, or saved in your session
use obconf if you want to change these without having to log out
and back in -->
<number>4</number>
<firstdesk>0</firstdesk>
<names>
@ -124,29 +69,16 @@
<name>4</name>
</names>
<popupTime>800</popupTime>
<!-- The number of milliseconds to show the popup for when switching
desktops. Set this to 0 to disable the popup. -->
</desktops>
<resize>
<drawContents>yes</drawContents>
<popupShow>Never</popupShow>
<!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
<popupPosition>Center</popupPosition>
<!-- 'Center' or 'Top' -->
<popupFixedPosition>
<!-- these are used if popupPosition is set to 'Fixed' -->
<x>10</x>
<!-- positive number for distance from left edge, negative number for
distance from right edge, or 'Center' -->
<y>10</y>
<!-- positive number for distance from top edge, negative number for
distance from bottom edge, or 'Center' -->
</popupFixedPosition>
</resize>
<!-- You can reserve a portion of your screen where windows will not cover when
they are maximized, or when they are initially placed.
Many programs reserve space automatically, but you can use this in other
cases. -->
<margins>
<top>0</top>
<bottom>0</bottom>
@ -155,25 +87,18 @@
</margins>
<dock>
<position>Floating</position>
<!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
<floatingX>0</floatingX>
<floatingY>0</floatingY>
<noStrut>no</noStrut>
<stacking>Above</stacking>
<!-- 'Above', 'Normal', or 'Below' -->
<direction>Vertical</direction>
<!-- 'Vertical' or 'Horizontal' -->
<autoHide>no</autoHide>
<hideDelay>300</hideDelay>
<!-- in milliseconds (1000 = 1 second) -->
<showDelay>300</showDelay>
<!-- in milliseconds (1000 = 1 second) -->
<moveButton>Middle</moveButton>
<!-- 'Left', 'Middle', 'Right' -->
</dock>
<keyboard>
<chainQuitKey/>
<!-- Window & Desktop Control -->
<keybind key="W-1">
<action name="GoToDesktop">
<to>1</to>
@ -261,7 +186,6 @@
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</keybind>
<!-- Media & Backlight -->
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<command>pamixer -i 2</command>
@ -307,7 +231,6 @@
<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>
@ -353,7 +276,6 @@
<command>pavucontrol</command>
</action>
</keybind>
<!-- Launchers -->
<keybind key="W-s">
<action name="Execute">
<command>skippy-xd</command>
@ -361,23 +283,22 @@
</keybind>
<keybind key="A-F1">
<action name="Execute">
<command>rofi-gorice</command>
<command>rofr.sh -r</command>
</action>
</keybind>
<keybind key="C-space">
<action name="Execute">
<command>rofi-gorice</command>
<command>rofr.sh -r</command>
</action>
</keybind>
<!-- Logout & Reload -->
<keybind key="W-x">
<action name="Execute">
<command>rofi-logout</command>
<command>rofr.sh -l</command>
</action>
</keybind>
<keybind key="C-A-Delete">
<action name="Execute">
<command>rofi-logout</command>
<command>rofr.sh -l</command>
</action>
</keybind>
<keybind key="W-S-Escape">
@ -389,7 +310,6 @@
<keybind key="C-S-Enter">
<action name="Reconfigure"/>
</keybind>
<!-- Window Control -->
<keybind key="W-Escape">
<action name="Execute">
<command>xkill</command>
@ -432,7 +352,6 @@
<menu>client-menu</menu>
</action>
</keybind>
<!-- Tiling Bindings -->
<keybind key="W-KP_1">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
@ -556,16 +475,9 @@
</keyboard>
<mouse>
<dragThreshold>4</dragThreshold>
<!-- number of pixels the mouse must move before a drag begins -->
<doubleClickTime>400</doubleClickTime>
<!-- in milliseconds (1000 = 1 second) -->
<screenEdgeWarpTime>600</screenEdgeWarpTime>
<!-- Time before changing desktops when the pointer touches the edge of the
screen while moving a window, in milliseconds (1000 = 1 second).
Set this to 0 to disable warping -->
<screenEdgeWarpMouse>false</screenEdgeWarpMouse>
<!-- Set this to TRUE to move the mouse pointer across the desktop when
switching due to hitting the edge of the screen -->
<context name="Frame">
<mousebind action="Press" button="A-Left">
<action name="Focus"/>
@ -795,7 +707,6 @@
</mousebind>
</context>
<context name="Root">
<!-- Menus -->
<mousebind action="Press" button="Middle">
<action name="ShowMenu">
<menu>client-list-combined-menu</menu>
@ -814,32 +725,13 @@
</context>
</mouse>
<menu>
<!-- You can specify more than one menu file in here and they are all loaded,
just don't make menu ids clash or, well, it'll be kind of pointless -->
<!-- default menu file (or custom one in $HOME/.config/openbox/) -->
<!-- system menu files on Debian systems
<file>/var/lib/openbox/debian-menu.xml</file>
<file>debian-menu.xml</file> -->
<file>menu.xml</file>
<hideDelay>400</hideDelay>
<!-- if a press-release lasts longer than this setting (in milliseconds), the
menu is hidden again -->
<middle>no</middle>
<!-- center submenus vertically about the parent entry -->
<submenuShowDelay>100</submenuShowDelay>
<!-- time to delay before showing a submenu after hovering over the parent
entry.
if this is a negative value, then the delay is infinite and the
submenu will not be shown until it is clicked on -->
<submenuHideDelay>200</submenuHideDelay>
<!-- time to delay before hiding a submenu when selecting another
entry in parent menu
if this is a negative value, then the delay is infinite and the
submenu will not be hidden until a different submenu is opened -->
<applicationIcons>no</applicationIcons>
<!-- controls if icons appear in the client-list-(combined-)menu -->
<manageDesktops>yes</manageDesktops>
<!-- show the manage desktops section in the client-list-(combined-)menu -->
</menu>
<applications>
<application name="oblogout">
@ -848,128 +740,5 @@
</position>
<fullscreen>yes</fullscreen>
</application>
<!-- Set applications to open on a specific desktop
<application class="obconf">
<focus>yes</focus>
<position force="no">
<x>center</x>
<y>center</y>
</position>
</application>
<application class="tint2conf">
<focus>yes</focus>
<position force="no">
<x>center</x>
<y>center</y>
</position>
</application>
<application class="nitrogen">
<focus>yes</focus>
<position force="no">
<x>center</x>
<y>center</y>
</position>
</application>
<application class="lollypop">
<desktop>1</desktop>
<focus>yes</focus>
</application>
<application class="spotify">
<desktop>1</desktop>
<focus>yes</focus>
</application>
<application class="rhythmbox">
<desktop>1</desktop>
<focus>yes</focus>
</application>
<application class="vlc*">
<desktop>1</desktop>
<focus>yes</focus>
</application>
<application class="mpv*">
<desktop>1</desktop>
<focus>yes</focus>
</application>
<application class="audacious">
<desktop>1</desktop>
<focus>yes</focus>
</application>
<application class="chromium">
<desktop>2</desktop>
<focus>yes</focus>
</application>
<application class="google-chrome">
<desktop>2</desktop>
<focus>yes</focus>
</application>
<application class="opera">
<desktop>2</desktop>
<focus>yes</focus>
</application>
<application class="Firefox">
<desktop>2</desktop>
<focus>yes</focus>
</application>
<application class="Navigator">
<desktop>2</desktop>
<focus>yes</focus>
</application>
<application class="pcmanfm">
<desktop>3</desktop>
<focus>yes</focus>
</application>
<application class="dolphin*">
<desktop>3</desktop>
<focus>yes</focus>
</application>
<application class="nautilus">
<desktop>3</desktop>
<focus>yes</focus>
</application>
<application class="Thunar">
<desktop>3</desktop>
<focus>yes</focus>
</application>
<application class="gimp*">
<desktop>4</desktop>
<focus>yes</focus>
</application>
<application class="inkscape">
<desktop>4</desktop>
<focus>yes</focus>
</application>
<application class="pinta">
<desktop>4</desktop>
<focus>yes</focus>
</application>
<application class="gpick">
<desktop>4</desktop>
<focus>yes</focus>
</application>
<application class="gcolor2">
<desktop>4</desktop>
<focus>yes</focus>
</application>
<application class="mousepad">
<desktop>5</desktop>
<focus>yes</focus>
</application>
<application class="Geany">
<desktop>5</desktop>
<focus>yes</focus>
</application>
<application class="subl3">
<desktop>5</desktop>
<focus>yes</focus>
</application>
<application class="atom">
<desktop>5</desktop>
<focus>yes</focus>
</application>
<application class="mousepad">
<desktop>5</desktop>
<focus>yes</focus>
</application>
-->
</applications>
</openbox_config>

View File

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

View File

@ -1,65 +0,0 @@
;=====================================================
; Colors & Settings
;=====================================================
[colors]
background = {{.Data.bar_background}}
foreground = {{.Data.terminal_foreground}}
moderate = {{index .Data.terminal_colors 3}}
urgent = {{index .Data.terminal_colors 1}}
trim = {{index .Data.terminal_colors 4}}
blue = {{index .Data.terminal_colors 4}}
pink = {{index .Data.terminal_colors 1}}
orange = {{index .Data.terminal_colors 3}}
purple = {{index .Data.terminal_colors 5}}
yellow = {{index .Data.terminal_colors 3}}
border = {{.Data.border_color}}
[settings]
throttle-output = 5
throttle-output-for = 10
throttle-input-for = 30
compositing-background = source
compositing-foreground = source
compositing-overline = source
compositing-underline = source
compositing-border = source
screenchange-reload = true
format-foreground = ${colors.foreground}
format-background = ${colors.background}
;=====================================================
; Master Bar
;=====================================================
[bar/master]
width = {{.Data.bar_width}}
height = {{.Data.bar_height}}
border-size = {{.Data.border_all}}
border-top-size = {{.Data.border_top}}
border-bottom-size = {{.Data.border_bottom}}
radius = {{.Data.bar_radius}}
bottom = {{.Data.bar_bottom}}
line-size = {{.Data.border_pixels}}
font-0 = "{{.Data.bar_font0}}"
font-1 = "FontAwesome:size=10:antialias=false;2"
font-2 = "MaterialIcons:size=10:antialias=false;2"
font-3 = "icomoon:size=10:antialias=false;2"
font-4 = "Ubuntu Nerd Font:size=10:antialias=false;2"
offset-x = 0
offset-y = 0
fixed-center = true
border-color = ${colors.border}
background = ${colors.background}
foreground = ${colors.foreground}
module-margin = 0
padding-right = 0
padding-left = 0
separator = │
scroll-up = pamixer -i 2
scroll-down = pamixer -d 2
click-middle = skippy-xd --activate-window-picker
double-click-left = networkmanager_dmenu
double-click-middle = skippy-xd --activate-window-picker
double-click-right = pavucontrol &

View File

@ -15,21 +15,6 @@ click-left = "jgmenu_run >/dev/null 2>&1 &"
click-right = exo-open $HOME/.config/jgmenu/jgmenurc
;;;;;;;;;;;;;;;;;;;;;;;;
;; GoRice Config UI ;;
;;;;;;;;;;;;;;;;;;;;;;;;
[module/config]
type = custom/script
interval = 5
label = %output%
format-padding = 1
format = <label>
click-right = termite "--exec=gorice edit i3/current" &
click-left = gorice dump i3 ~/.gorice/output.yaml.template; config_ui &
exec = echo ""
;exec = grep "current" data.json | cut -d '"' -f22 | cut -d . -f1 | cut -d / -f2 | tr '[:lower:]' '[:upper:]'
;;;;;;;;;;;;;;;;;;;;;;;;
;; Openbox Workspaces ;;
;;;;;;;;;;;;;;;;;;;;;;;;
@ -95,7 +80,6 @@ label-visible-underline = ${colors.trim}
label-urgent-underline = ${colors.urgent}
;;;;;;;;;;;;;;;;;;;;
;;Bspwm Workspaces;;
;;;;;;;;;;;;;;;;;;;;
@ -120,7 +104,6 @@ ws-icon-7 = VIII;
ws-icon-8 = IX;
ws-icon-9 = X;
;ws-icon-default = ♟
format = <label-state> <label-mode>
label-monitor = %name%
label-mode-padding = 1
@ -140,7 +123,6 @@ label-focused-underline = ${colors.blue}
label-occupied-underline = ${colors.purple}
label-urgent-foreground = ${colors.urgent}
label-urgent-underline = ${colors.urgent}
; The following labels will be used to indicate the layout/mode
; for the focused workspace. Requires <label-mode>
label-monocle = 
@ -156,7 +138,6 @@ label-locked-foreground = ${colors.yellow}
label-private-foreground = ${colors.urgent}
;;;;;;;;;;;;;
;; Network ;;
;;;;;;;;;;;;;
@ -221,7 +202,7 @@ label = %{A1:termite --exec=htop & disown:} %percentage_used%%%{A}
;;;;;;;;;
[module/pkg]
type = custom/script
exec = check-updates
exec = updates.sh
exec-if = "ping -q -w 2 -c 1 176.34.135.167 > /dev/null"
label = %{A1:termite --exec=pacli & disown:} %{A3:termite --exec=pacli & disown:}%output%%{A} %{A}
tail = true
@ -292,7 +273,7 @@ ramp-volume-3-foreground = ${colors.urgent}
[module/battery]
type = internal/battery
; Use $ ls -1 /sys/class/power_supply/
battery = BAT1
battery = BAT0
adapter = AC
full-at = 98
poll-interval = 5
@ -376,8 +357,8 @@ menu-3-3-exec = systemctl poweroff
type = custom/script
tail = true
label = %output%
click-left = toggle-compton --toggle &
exec = toggle-compton
click-left = toggle.sh -c -tg &
exec = toggle.sh -c
format = <label>
@ -411,9 +392,9 @@ format-connected-foreground = ${colors.purple}
[module/redshift]
type = custom/script
tail = true
exec = toggle-redshift
exec = toggle.sh -r
label = %output%
click-left = toggle-redshift --toggle &
click-left = toggle.sh -r -tg &
;;;;;;;;;;;;;;;;

View File

@ -1 +0,0 @@
rofi.theme: /usr/share/rofi/themes//archlabs-shadow.rasi

View File

@ -7,8 +7,8 @@ files=("$HOME/.config/polybar/config"
"$HOME/.config/polybar/sessions/i3-sessionfile"
"$HOME/.config/polybar/sessions/bspwm-sessionfile"
"$HOME/.config/polybar/sessions/openbox-sessionfile"
"$HOME/.config/openbox/autostart"
"$HOME/.config/gtk-3.0/bookmarks"
"$HOME/.gorice/templates/i3/data.json"
"$HOME/.mozilla/firefox/archlabs.default/prefs.js"
"$HOME/.mozilla/firefox/archlabs.default/sessionstore.js"
)

View File

@ -12,11 +12,11 @@ super + f
# program launcher
super + @space
rofi-apps
rofr.sh -r
# program launcher
alt + F1
rofi-gorice
rofr.sh -r
# make sxhkd reload its configuration files:
super + shift + r
@ -24,7 +24,7 @@ super + shift + r
# quit bspwm normally
super + x
rofi-logout
rofr.sh -l
# close and kill
super + {_,shift + }q
@ -124,25 +124,14 @@ super + alt + shift + {h,j,k,l}
super + {Left,Down,Up,Right}
bspc node -v {-20 0,0 20,0 -20,20 0}
# VOLUME
### Mute
XF86AudioMute
pamixer -t
### Master Volume
XF86AudioRaiseVolume
pamixer -i 2
XF86AudioLowerVolume
pamixer -d 2
# BRIGHTNESS
# Brightness goes up
XF86MonBrightnessUp
xbacklight +10
# Brightness goes down
XF86MonBrightnessDown
xbacklight -10

View File

@ -1,55 +0,0 @@
[options]
scroll_on_output = false
scroll_on_keystroke = true
audible_bell = false
mouse_autohide = false
allow_bold = true
dynamic_title = true
urgent_on_bell = true
clickable_url = true
font = {{.Data.terminal_font}}
scrollback_lines = 10000
search_wrap = true
icon_name = utilities-terminal
geometry = 750x500
clickable_url = true
cursor_blink = system
cursor_shape = block
browser = exo-open
filter_unmatched_urls = true
[colors]
background = {{.Data.terminal_termbackground}}
foreground = {{.Data.terminal_foreground}}
foreground_bold = {{.Data.terminal_bold}}
cursor = {{.Data.terminal_foreground}}
# Black, Gray, Silver, White
color0 = {{index .Data.terminal_colors 0}}
color8 = {{index .Data.terminal_colors 7}}
color7 = {{index .Data.terminal_colors 8}}
color15 = {{.Data.terminal_foreground}}
# Red
color1 = {{index .Data.terminal_colors 1}}
color9 = {{index .Data.terminal_colors 1}}
# Green
color2 = {{index .Data.terminal_colors 2}}
color10 = {{index .Data.terminal_colors 2}}
# Yellow
color3 = {{index .Data.terminal_colors 3}}
color11 = {{index .Data.terminal_colors 3}}
# Blue
color4 = {{index .Data.terminal_colors 4}}
color12 = {{index .Data.terminal_colors 4}}
# Purple
color5 = {{index .Data.terminal_colors 5}}
color13 = {{index .Data.terminal_colors 5}}
# Teal
color6 = {{index .Data.terminal_colors 6}}
color14 = {{index .Data.terminal_colors 6}}

View File

@ -1,24 +0,0 @@
configs:
{{range .}}
{{.Name}}:
background: "{{.Data.terminal_background}}"
foreground: "{{.Data.terminal_foreground}}"
bold: "{{.Data.terminal_bold}}"
term-background: "{{.Data.terminal_termbackground}}"
font: "{{.Data.terminal_font}}"
colors:{{range .Data.terminal_colors}}
- "{{.}}"{{end}}
bar/i3-border: "{{.Data.border_pixels}}"
bar-border-all: "{{.Data.border_all}}"
bar-border-top: "{{.Data.border_top}}"
bar-border-bottom: "{{.Data.border_bottom}}"
bar-border-color: "{{.Data.border_color}}"
i3gap-inner: "{{.Data.gap_inner}}"
i3gap-outer: "{{.Data.gap_outer}}"
bar-height: "{{.Data.bar_height}}"
bar-width: "{{.Data.bar_width}}"
bar-radius: "{{.Data.bar_radius}}"
bar-bottom: "{{.Data.bar_bottom}}"
bar-background: "{{.Data.bar_background}}"
bar-font: "{{.Data.bar_font0}}"
{{end}}

View File

@ -1,32 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#444444"
foreground: "#EFEFEC"
bold: "#EFEFEC"
termbackground: "rgba(68,68,68,0.80)"
font: "Ubuntu Mono 10"
colors: ["#212121", "#D50000", "#00C853", "#00B8D4", "#C6FF00", "#1DE9B6", "#AA00FF", "#BDBDBD", "#EEEEEE"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 2
all: 0
top: 0
bottom: 0
color: "#444444"
gap:
inner: 10
outer: 5
bar:
height: 22
width: "100%"
radius: 3
bottom: "false"
background: "#e1444444"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -1,31 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#212121"
foreground: "#F1F1F1"
bold: "#A9A9A9"
termbackground: "rgba(33,33,33,0.80)"
font: "Ubuntu Mono 10"
colors: ["#494949", "#D64937", "#19BC9C", "#FFFE5D", "#4E88CF", "#AF86C8", "#5DD5FF", "#969896", "#F6F6F6"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 2
all: 0
top: 0
bottom: 0
color: "#F1F1F1"
gap:
inner: 15
outer: 0
bar:
height: 24
width: "100%"
radius: 0
bottom: "false"
background: "#252E35"
font0: "DejaVu Sans Mono:size=10:antialias=false;2"

View File

@ -1,31 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#F6F6F6"
foreground: "#1D1D1D"
bold: "#A9A9A9"
termbackground: "rgba(250,250,250,0.80)"
font: "Ubuntu Mono 10"
colors: ["#000000", "#D64937", "#19BC9C", "#919640", "#4E88CF", "#AF86C8", "#5DD5FF", "#969896", "#AFDCE4"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 2
all: 0
top: 0
bottom: 0
color: "#1D1D1D"
gap:
inner: 15
outer: 0
bar:
height: 24
width: "100%"
radius: 0
bottom: "false"
background: "#F6F6F6"
font0: "DejaVu Sans Mono:size=10:antialias=false;2"

View File

@ -1,33 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#2b303b"
foreground: "#c0c5ce"
bold: "#c0c5ce"
termbackground: "rgba(43,48,59,0.80)"
font: "Fantasque Sans Mono 12"
colors: ["#2b303b", "#bf616a", "#a3be8c", "#ebcb8b", "#8fa1b3", "#b48ead", "#96b5b4", "#65737e", "#F6F6F6"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
# things to do with the bars borders mostly
border:
pixels: 2
all: 0
top: 0
bottom: 2
color: "#c0c5ce"
# in openbox this handles the menu gaps
gap:
inner: 10
outer: 0
# more bar related stuff, like the main font & size
bar:
height: 28
width: "100%"
radius: 0
bottom: "false"
background: "#2b303b"
font0: "DejaVu Sans Mono:size=10:antialias=false;2"

View File

@ -1,32 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#666666"
foreground: "#baacc5"
bold: "#4c5068"
termbackground: "rgba(102,102,102,0.80)"
font: "Ubuntu Mono 10"
colors: ["#323c51", "#a67070", "#88977c", "#de935f", "#6b96a7", "#553e62", "#5d817d", "#8e8e86", "#b3cbc9"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 4
all: 0
top: 0
bottom: 0
color: "#00000000"
gap:
inner: 20
outer: 0
bar:
height: 24
width: "100%"
radius: 0
bottom: "false"
background: "#e1666666"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -1 +0,0 @@
{"files":["/home/liveuser/.config/polybar/master.conf","/home/liveuser/.config/termite/config","/home/liveuser/.config/dunst/dunstrc","/home/liveuser/.Xresources","/home/liveuser/.themes/gorice/openbox-3/themerc","/home/liveuser/bin/rofi-gorice","/home/liveuser/bin/rofi-logout"],"current":"i3/archlabs.yaml"}

View File

@ -1,33 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: ""
foreground: ""
bold: ""
termbackground: ""
font: "Anonymice Nerd Font 10"
colors: ["", "", "", "", "", "", "", "", ""]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 2
all: 0
top: 0
bottom: 0
color: ""
gap:
inner: 20
outer: 0
bar:
height: 20
width: "100%"
radius: 0
bottom: "false"
background: ""
font0: "DejaVu Sans Mono:size=10:antialias=false;2"

View File

@ -1,32 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#E1E1E1"
foreground: "#131313"
bold: "#A9A9A9"
termbackground: "rgba(240,240,240,0.80)"
font: "Ubuntu Mono 10"
colors: ["#494949", "#E64141", "#19BC9C", "#FFFE5D", "#1793D1", "#AF86C8", "#5DD5FF", "#969896", "#F6F6F6"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 2
all: 10
top: 0
bottom: 10
color: "#00000000"
gap:
inner: 15
outer: 0
bar:
height: 26
width: "100%"
radius: 6
bottom: "true"
background: "#61EFF0F1"
font0: "DejaVu Sans Mono:size=10:antialias=false;2"

View File

@ -1,32 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#0d0d1b"
foreground: "#ccccce"
bold: "#ccccce"
termbackground: "rgba(13,13,27,0.95)"
font: "Ubuntu Mono 10"
colors: ["#282828", "#ca1444", "#789aba", "#94469b", "#cb6fa1", "#fb6e93", "#cf98c1", "#98218e", "#ebdbb2"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 2
all: 0
top: 0
bottom: 0
color: "#0d0d1b"
gap:
inner: 10
outer: 0
bar:
height: 20
width: "100%"
radius: 0
bottom: "false"
background: "#e10d0d1b"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -1,32 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#0a0a0a"
foreground: "#ffffff"
bold: "#c5c8c6"
termbackground: "rgba(10,10,10,0.80)"
font: "Ubuntu Mono 10"
colors: ["#191919", "#001122", "#384a5b", "#556677", "#113322", "#446655", "#5e8d87", "#b7b7b7", "#ffffff"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 4
all: 12
top: 8
bottom: 0
color: "#00000000"
gap:
inner: 20
outer: 10
bar:
height: 24
width: "100%"
radius: 6
bottom: "false"
background: "#e10a0a0a"
font0: "Monospace:size=9:antialias=false;2"

View File

@ -1,32 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#1C151C"
foreground: "#F6F6F6"
bold: "#A9A9A9"
termbackground: "rgba(28,21,28,0.80)"
font: "Ubuntu Mono 10"
colors: ["#1C151C", "#96B8D2", "#A4BDD2", "#9EC1D7", "#849AAB", "#B7D1E4", "#D2D9DD", "#666666", "#F6F6F6"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 3
all: 0
top: 0
bottom: 0
color: "#1C151C"
gap:
inner: 15
outer: 0
bar:
height: 24
width: "100%"
radius: 0
bottom: "false"
background: "#ED1C151C"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -1,32 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#404552"
foreground: "#c5c8c6"
bold: "#A9A9A9"
termbackground: "rgba(64,69,82,0.80)"
font: "Ubuntu Mono 10"
colors: ["#3f3f3f", "#705050", "#E4B928", "#F0DFAF", "#506070", "#DC8CC3", "#298FEA", "#DCDCCC", "#F6F6F6"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 3
all: 0
top: 0
bottom: 0
color: "#00000000"
gap:
inner: 20
outer: 0
bar:
height: 20
width: "100%"
radius: 0
bottom: "false"
background: "#ED404552"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -1,32 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#000000"
foreground: "#bcbcbc"
bold: "#EEEEEC"
termbackground: "rgba(0,0,0,0.80)"
font: "Ubuntu Mono 10"
colors: ["#292929", "#494949", "#696969", "#B3B3B3", "#898989", "#595959", "#969696", "#D7D7D7", "#EEEEEC"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 4
all: 0
top: 0
bottom: 0
color: "#000000"
gap:
inner: 20
outer: 0
bar:
height: 24
width: "100%"
radius: 0
bottom: "false"
background: "#e1000000"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -1,32 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#231E35"
foreground: "#27FCFD"
bold: "#A9A9A9"
termbackground: "rgba(35,30,53,0.80)"
font: "Ubuntu Mono 10"
colors: ["#231e35", "#F20390", "#1CE190", "#FDEE7B", "#27FCFD", "#8039A0", "#AFDCE4", "#969896", "#902049"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 2
all: 0
top: 0
bottom: 0
color: "#27FCFD"
gap:
inner: 10
outer: 0
bar:
height: 22
width: "100%"
radius: 0
bottom: "false"
background: "#231e35"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -1,32 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#101010"
foreground: "#ffffff"
bold: "#ffffff"
termbackground: "rgba(16,16,16,0.95)"
font: "Ubuntu Mono 10"
colors: ["#262626", "#830E0C", "#A72B28", "#C64B48", "#ED7C79", "#FFABA9", "#FF5B6C", "#616161", "#EAEAEA"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 2
all: 0
top: 0
bottom: 0
color: "#ffffff"
gap:
inner: 12
outer: 0
bar:
height: 20
width: "100%"
radius: 0
bottom: "false"
background: "#e1101010"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -1,8 +0,0 @@
al-compositor --restart
pkill dunst
xrdb ~/.Xresources
al-polybar-session
i3-msg restart
sleep 0.5
notify-send "Config loaded" "i3/archlabs.yaml"

View File

@ -1,8 +0,0 @@
al-compositor --restart
pkill dunst
xrdb ~/.Xresources
al-polybar-session
i3-msg restart
sleep 0.5
notify-send "Config loaded" "{{.Name}}"

View File

@ -1,33 +0,0 @@
# background and foreground MUST exist and MUST be hex color values
# names cannot contain '-'
terminal:
background: "#19043C"
foreground: "#FFF1FF"
bold: "#FFF1FF"
termbackground: "rgba(25,4,60,0.80)"
font: "Ubuntu Mono 9"
colors: ["#19043C", "#EE79A9", "#8C9440", "#DE935F", "#05C6F1", "#85678F", "#5E8D87", "#969CD3", "#ED5181"]
# colors 0=black 1=red 2=green 3=yellow 4=blue 5=purple 6=cyan 7=grey 8=white
border:
pixels: 4
all: 20
top: 15
bottom: 0
color: "#00000000"
gap:
inner: 25
outer: 5
bar:
height: 32
width: "100%"
radius: 12
bottom: "false"
background: "#e119043C"
font0: "xos4 Terminus:size=10:antialias=false;2"

View File

@ -1,4 +0,0 @@
#define bullet_width 5
#define bullet_height 5
static unsigned char bullet_bits[] = {
0x01, 0x05, 0x15, 0x05, 0x01 };

View File

@ -1,5 +0,0 @@
#define close_width 10
#define close_height 10
static unsigned char close_bits[] = {
0x03, 0x03, 0x87, 0x03, 0xce, 0x01, 0xfc, 0x00, 0x78, 0x00, 0x78, 0x00,
0xfc, 0x00, 0xce, 0x01, 0x87, 0x03, 0x03, 0x03 };

View File

@ -1,4 +0,0 @@
#define desk_width 8
#define desk_height 8
static unsigned char desk_bits[] = {
0x00, 0x00, 0x48, 0x78, 0x7e, 0x78, 0x48, 0x00 };

View File

@ -1,4 +0,0 @@
#define desk_toggled_width 8
#define desk_toggled_height 8
static unsigned char desk_toggled_bits[] = {
0x00, 0x66, 0x66, 0x00, 0x00, 0x66, 0x66, 0x00 };

View File

@ -1,5 +0,0 @@
#define iconify_width 10
#define iconify_height 10
static unsigned char iconify_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xff, 0x03, 0xff, 0x03 };

View File

@ -1,5 +0,0 @@
#define max_width 10
#define max_height 10
static unsigned char max_bits[] = {
0xff, 0x03, 0xff, 0x03, 0x00, 0x00, 0xff, 0x03, 0xff, 0x03, 0x03, 0x03,
0x03, 0x03, 0x03, 0x03, 0xff, 0x03, 0xff, 0x03 };

View File

@ -1,5 +0,0 @@
#define max_toggled_width 10
#define max_toggled_height 10
static unsigned char max_toggled_bits[] = {
0xff, 0x03, 0xe1, 0x03, 0xe1, 0x03, 0xe1, 0x03, 0xe1, 0x03, 0xff, 0x03,
0xff, 0x03, 0xff, 0x03, 0xff, 0x03, 0xff, 0x03 };

View File

@ -1,4 +0,0 @@
#define shade_width 8
#define shade_height 8
static unsigned char shade_bits[] = {
0x7e, 0x7e, 0x7e, 0x00, 0x00, 0x00, 0x00, 0x00 };

View File

@ -1,4 +0,0 @@
#define shade_toggled_width 8
#define shade_toggled_height 8
static unsigned char shade_toggled_bits[] = {
0x18, 0x18, 0x18, 0xdb, 0xff, 0x7e, 0x3c, 0x18 };

View File

@ -1,155 +0,0 @@
# Name: Gorice Openbox theme
# Author: Nathaniel Maia
# Menu
menu.border.color: #2b303b
menu.border.width: 10
menu.title.bg: Solid Flat
menu.title.bg.color: #2b303b
menu.title.bg.shadow: 0
menu.title.text.color: #8fa1b3
menu.title.text.justify: Center
menu.items.bg: Solid Flat
menu.items.bg.color: #2b303b
menu.items.text.color: #c0c5ce
menu.items.disabled.text.color: #65737e
menu.items.active.bg: Solid Flat
menu.items.active.bg.color: #2b303b
menu.items.active.text.color: #8fa1b3
menu.separator.color: #2b303b
menu.separator.width: 1
menu.separator.padding.width: 2
menu.separator.padding.height: 4
menu.overlap.x: -12
menu.overlap.y: 0
# Window focused
window.active.title.separator.color: #2b303b
# Active window
window.active.border.color: #8fa1b3
window.active.title.bg: flat solid
window.active.title.bg.color: #2b303b
window.active.title.separator.color: #2b303b
window.active.text.justify: center
window.active.label.bg: parentrelative
window.active.label.text.color: #c0c5ce
window.active.handle.bg: flat solid
window.active.handle.bg.color: #2b303b
window.active.grip.bg: flat solid
window.active.grip.bg.color: #2b303b
window.active.button.unpressed.bg: flat solid
window.active.button.unpressed.bg.color: #2b303b
window.active.button.unpressed.image.color: #c0c5ce
window.active.button.pressed.bg: flat solid
window.active.button.pressed.bg.color: #8fa1b3
window.active.button.pressed.image.color: #c0c5ce
window.active.button.disabled.bg: flat solid
window.active.button.disabled.bg.color: #2b303b
window.active.button.disabled.image.color: #65737e
window.active.button.hover.bg: flat solid
window.active.button.hover.bg.color: #2b303b
window.active.button.hover.image.color: #8fa1b3
#window.active.button.toggled.bg: #8fa1b3
#window.active.button.toggled.image.color: #c0c5ce
# Inactive window
window.inactive.border.color: #2b303b
window.inactive.title.bg: flat solid
window.inactive.title.bg.color: #2b303b
window.inactive.title.separator.color: #2b303b
window.inactive.text.justify: center
window.inactive.label.bg: parentrelative
window.inactive.label.text.color: #2b303b
window.inactive.handle.bg: flat solid
window.inactive.handle.bg.color: #2b303b
window.inactive.grip.bg: flat solid
window.inactive.grip.bg.color: #2b303b
window.inactive.button.unpressed.bg: flat solid
window.inactive.button.unpressed.bg.color: #2b303b
window.inactive.button.unpressed.image.color: #2b303b
window.inactive.button.pressed.bg: flat solid
window.inactive.button.pressed.bg.color: #8fa1b3
window.inactive.button.pressed.image.color: #c0c5ce
window.inactive.button.disabled.bg: flat solid
window.inactive.button.disabled.bg.color: #65737e
window.inactive.button.disabled.image.color: #2b303b
window.inactive.button.hover.bg: flat solid
window.inactive.button.hover.bg.color: #2b303b
window.inactive.button.hover.image.color: #8fa1b3
# OSD
osd.border.width: 2
osd.border.color: #8fa1b3
osd.bg: flat solid
osd.bg.color: #2b303b
osd.label.bg: flat solid
osd.label.bg.color: #2b303b
osd.label.text.color: #c0c5ce
# OSD
osd.bg: Solid Flat
osd.bg.color: #2b303b
osd.bg.shadow: 0
osd.border.width: 2
osd.hilight.bg: Solid Flat
osd.hilight.bg.color: #8fa1b3
osd.unhilight.bg: flat solid
osd.unhilight.bg.color: #c0c5ce
osd.button.unpressed.bg: flat border
osd.button.unpressed.bg.color: #c0c5ce
#osd.button.unpressed.*.border.color: #2b303b
osd.button.pressed.bg: flat border
osd.button.pressed.bg.color: #8fa1b3
#osd.button.pressed.*.border.color: #c0c5ce
osd.button.focused.bg: flat solid border
osd.button.focused.bg.color: #2b303b
#osd.button.focused.*.border.color: #c0c5ce
osd.button.focused.box.color: #8fa1b3
# Fonts
window.active.label.text.font:shadow=n
window.inactive.label.text.font:shadow=n
menu.items.font:shadow=n
menu.title.text.font:shadow=n
# Everything else
border.width: 2
padding.width: 8
padding.height: 2
window.handle.width: 0
window.client.padding.width: 0
window.label.text.justify: left
#menu.overlap: 0

View File

@ -1,155 +0,0 @@
# Name: Gorice Openbox theme
# Author: Nathaniel Maia
# Menu
menu.border.color: {{.Data.terminal_background}}
menu.border.width: 10
menu.title.bg: Solid Flat
menu.title.bg.color: {{.Data.terminal_background}}
menu.title.bg.shadow: 0
menu.title.text.color: {{index .Data.terminal_colors 4}}
menu.title.text.justify: Center
menu.items.bg: Solid Flat
menu.items.bg.color: {{.Data.terminal_background}}
menu.items.text.color: {{.Data.terminal_foreground}}
menu.items.disabled.text.color: {{index .Data.terminal_colors 7}}
menu.items.active.bg: Solid Flat
menu.items.active.bg.color: {{index .Data.terminal_colors 0}}
menu.items.active.text.color: {{index .Data.terminal_colors 4}}
menu.separator.color: {{index .Data.terminal_colors 0}}
menu.separator.width: 1
menu.separator.padding.width: 2
menu.separator.padding.height: 4
menu.overlap.x: -{{.Data.gap_inner}}
menu.overlap.y: {{.Data.gap_outer}}
# Window focused
window.active.title.separator.color: {{.Data.terminal_background}}
# Active window
window.active.border.color: {{index .Data.terminal_colors 4}}
window.active.title.bg: flat solid
window.active.title.bg.color: {{.Data.terminal_background}}
window.active.title.separator.color: {{.Data.terminal_background}}
window.active.text.justify: center
window.active.label.bg: parentrelative
window.active.label.text.color: {{.Data.terminal_foreground}}
window.active.handle.bg: flat solid
window.active.handle.bg.color: {{.Data.terminal_background}}
window.active.grip.bg: flat solid
window.active.grip.bg.color: {{.Data.terminal_background}}
window.active.button.unpressed.bg: flat solid
window.active.button.unpressed.bg.color: {{.Data.terminal_background}}
window.active.button.unpressed.image.color: {{.Data.terminal_foreground}}
window.active.button.pressed.bg: flat solid
window.active.button.pressed.bg.color: {{index .Data.terminal_colors 4}}
window.active.button.pressed.image.color: {{.Data.terminal_foreground}}
window.active.button.disabled.bg: flat solid
window.active.button.disabled.bg.color: {{.Data.terminal_background}}
window.active.button.disabled.image.color: {{index .Data.terminal_colors 7}}
window.active.button.hover.bg: flat solid
window.active.button.hover.bg.color: {{.Data.terminal_background}}
window.active.button.hover.image.color: {{index .Data.terminal_colors 4}}
#window.active.button.toggled.bg: {{index .Data.terminal_colors 4}}
#window.active.button.toggled.image.color: {{.Data.terminal_foreground}}
# Inactive window
window.inactive.border.color: {{.Data.terminal_background}}
window.inactive.title.bg: flat solid
window.inactive.title.bg.color: {{.Data.terminal_background}}
window.inactive.title.separator.color: {{.Data.terminal_background}}
window.inactive.text.justify: center
window.inactive.label.bg: parentrelative
window.inactive.label.text.color: {{.Data.terminal_background}}
window.inactive.handle.bg: flat solid
window.inactive.handle.bg.color: {{.Data.terminal_background}}
window.inactive.grip.bg: flat solid
window.inactive.grip.bg.color: {{.Data.terminal_background}}
window.inactive.button.unpressed.bg: flat solid
window.inactive.button.unpressed.bg.color: {{.Data.terminal_background}}
window.inactive.button.unpressed.image.color: {{.Data.terminal_background}}
window.inactive.button.pressed.bg: flat solid
window.inactive.button.pressed.bg.color: {{index .Data.terminal_colors 4}}
window.inactive.button.pressed.image.color: {{.Data.terminal_foreground}}
window.inactive.button.disabled.bg: flat solid
window.inactive.button.disabled.bg.color: {{index .Data.terminal_colors 7}}
window.inactive.button.disabled.image.color: {{.Data.terminal_background}}
window.inactive.button.hover.bg: flat solid
window.inactive.button.hover.bg.color: {{.Data.terminal_background}}
window.inactive.button.hover.image.color: {{index .Data.terminal_colors 4}}
# OSD
osd.border.width: {{.Data.border_pixels}}
osd.border.color: {{index .Data.terminal_colors 4}}
osd.bg: flat solid
osd.bg.color: {{.Data.terminal_background}}
osd.label.bg: flat solid
osd.label.bg.color: {{.Data.terminal_background}}
osd.label.text.color: {{.Data.terminal_foreground}}
# OSD
osd.bg: Solid Flat
osd.bg.color: {{.Data.terminal_background}}
osd.bg.shadow: 0
osd.border.width: {{.Data.border_pixels}}
osd.hilight.bg: Solid Flat
osd.hilight.bg.color: {{index .Data.terminal_colors 4}}
osd.unhilight.bg: flat solid
osd.unhilight.bg.color: {{.Data.terminal_foreground}}
osd.button.unpressed.bg: flat border
osd.button.unpressed.bg.color: {{.Data.terminal_foreground}}
#osd.button.unpressed.*.border.color: {{.Data.terminal_background}}
osd.button.pressed.bg: flat border
osd.button.pressed.bg.color: {{index .Data.terminal_colors 4}}
#osd.button.pressed.*.border.color: {{.Data.terminal_foreground}}
osd.button.focused.bg: flat solid border
osd.button.focused.bg.color: {{.Data.terminal_background}}
#osd.button.focused.*.border.color: {{.Data.terminal_foreground}}
osd.button.focused.box.color: {{index .Data.terminal_colors 4}}
# Fonts
window.active.label.text.font:shadow=n
window.inactive.label.text.font:shadow=n
menu.items.font:shadow=n
menu.title.text.font:shadow=n
# Everything else
border.width: {{.Data.border_pixels}}
padding.width: 8
padding.height: {{.Data.border_pixels}}
window.handle.width: 0
window.client.padding.width: 0
window.label.text.justify: left
#menu.overlap: 0

6
home/.xprofile Executable file → Normal file
View File

@ -5,22 +5,16 @@
XDG_CONFIG_HOME=$HOME/.config
export XDG_CONFIG_HOME
# include ~/bin in path
if [ -d "$HOME/bin" ]; then
PATH=$HOME/bin:$PATH
fi
# include sbin in PATH
if [ -d "/sbin" ]; then
PATH="/sbin:$PATH"
fi
# include sbin in PATH
if [ -d "/usr/sbin" ]; then
PATH="/usr/sbin:$PATH"
fi
# launch dbus
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
eval $(dbus-launch --sh-syntax --exit-with-session)
fi

View File

@ -1,7 +0,0 @@
#!/bin/sh
#
# executed by xinit when using startx
# make sure to be runnning in authenticated session with logind
# this will make it so you cannot bypass screenlock by switching terminals
exec /usr/bin/Xorg -nolisten tcp "$@" vt$XDG_VTNR

View File

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

View File

@ -1,147 +0,0 @@
#!/usr/bin/env python
import os
import struct
import subprocess
import yaml
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, Gdk, Pango
# This is the name of the group where your configs are stored.
GROUP = 'i3'
PATH = '{}/bin/gorice'.format(os.environ['HOME'])
class Selection(Gtk.EventBox):
def __init__(self, name, colours, foreground, background, selected,
working=True):
super().__init__()
self.name = name
self.background = background
self.selected_colour = selected
if not working:
name = 'x ' + name
text = Gtk.Label(name)
hbox = Gtk.HBox()
hbox.set_size_request(0, 30)
hbox.pack_start(text, False, True, 20)
hbox.override_color(Gtk.StateType.NORMAL, Gdk.RGBA(*foreground))
hbox.override_background_color(Gtk.StateType.NORMAL, Gdk.RGBA(*background))
colour_widgets = Gtk.HBox()
for colour in colours:
box = Gtk.Box()
box.override_background_color(Gtk.StateType.NORMAL, Gdk.RGBA(*colour))
box.set_size_request(15, 15)
padding = Gtk.Alignment()
padding.set_padding(10, 10, 0, 0)
padding.add(box)
colour_widgets.pack_start(padding, False, True, 2)
hbox.pack_end(colour_widgets, False, True, 20)
self.hbox = hbox
self.connect('enter-notify-event', self.selected)
self.connect('leave-notify-event', self.unselected)
self.connect('button-press-event', self.clicked)
self.add(self.hbox)
def clicked(self, widget, button):
_, index = button.get_button()
if index == 1:
proc = subprocess.run([PATH, 'load', self.name])
Gtk.main_quit()
return None
def selected(self, *args):
# self.hbox.override_background_color(Gtk.StateType.NORMAL, Gdk.RGBA(*self.selected))
return None
def unselected(self, *args):
# self.hbox.override_background_color(Gtk.StateType.NORMAL, Gdk.RGBA(*self.selected))
return None
def load_configs():
broken = subprocess.check_output([PATH, 'check', GROUP])
broken = broken.decode('utf-8').split('\n')
output = []
path = '{}/.gorice/output.yaml'.format(os.environ['HOME'])
with open(path, 'r') as f:
data = yaml.load(f.read())
names = sorted(data['configs'])
for config in names:
info = data['configs'][config]
config, ext = os.path.splitext(config)
if config == 'i3/default':
continue
_, name = config.split('/', 1)
foreground = rgb(info['foreground'])
background = rgb(info['background'])
selection = [x+0.02 for x in background]
colours = [rgb(x) for x in info['colors']]
item = Selection(config, colours, foreground, background, selection,
working=name not in broken)
output.append(item)
return output
def rgb(colour):
colour = colour[1:]
return [x/255 for x in struct.unpack('BBB', bytes.fromhex(colour))]
def keypress(window, key):
if key.keyval == 65307:
Gtk.main_quit()
return None
def main():
configs = load_configs()
window = Gtk.Window()
window.modify_font(Pango.FontDescription('xos4 Terminus 9'))
window.set_property('type-hint', Gdk.WindowTypeHint.SPLASHSCREEN)
window.set_decorated(False)
window.set_resizable(False)
window.connect('leave-notify-event', Gtk.main_quit)
window.set_property('skip-taskbar-hint', False)
# window.set_title('bar-dropdown')
# window.set_border_width(0)
# window.stick()
window.connect('delete-event', Gtk.main_quit)
scrolled = Gtk.ScrolledWindow()
scrolled.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
box = Gtk.VBox()
for config in configs:
box.pack_start(config, False, False, 0)
scrolled.add(box)
window.add(scrolled)
window.set_size_request(200, 420)
window.show_all()
window.move(10, 35)
window.connect('key-press-event', keypress)
window.set_events(Gdk.EventMask.BUTTON_PRESS_MASK)
Gtk.main()
return None
if __name__ == "__main__":
main()

Binary file not shown.

View File

@ -1,32 +1,25 @@
#!/usr/bin/env bash
TRASH_DIRECTORY="${BLOCK_INSTANCE}"
if [[ "${TRASH_DIRECTORY}" = "" ]]; then
TRASH_DIRECTORY="${XDG_DATA_HOME:-${HOME}/.local/share}/Trash"
TRASH_DIRECTORY="$BLOCK_INSTANCE"
if [[ $TRASH_DIRECTORY = "" ]]; then
TRASH_DIRECTORY="${XDG_DATA_HOME:-$HOME/.local/share}/Trash"
fi
# Left click
if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then
xdg-open "${TRASH_DIRECTORY}/files"
# Right click
elif [[ "${BLOCK_BUTTON}" -eq 3 ]]; then
# Delete all files permanently (unlink them)
rm -r "${TRASH_DIRECTORY}/files"
rm -r "${TRASH_DIRECTORY}/info"
# Create new directory
mkdir "${TRASH_DIRECTORY}/files"
mkdir "${TRASH_DIRECTORY}/info"
if [[ $BLOCK_BUTTON -eq 1 ]]; then
xdg-open "$TRASH_DIRECTORY/files"
elif [[ $BLOCK_BUTTON -eq 3 ]]; then
rm -r "$TRASH_DIRECTORY/files"
rm -r "$TRASH_DIRECTORY/info"
mkdir "$TRASH_DIRECTORY/files"
mkdir "$TRASH_DIRECTORY/info"
fi
TRASH_COUNT=$(ls -U -1 "${TRASH_DIRECTORY}/files" | wc -l)
TRASH_COUNT=$(ls -U -1 "$TRASH_DIRECTORY/files" | wc -l)
URGENT_VALUE=30
echo "${TRASH_COUNT}"
echo "${TRASH_COUNT}"
echo "$TRASH_COUNT"
echo "$TRASH_COUNT"
echo ""
if [[ "${TRASH_COUNT}" -ge "${URGENT_VALUE}" ]]; then
if [[ $TRASH_COUNT -ge $URGENT_VALUE ]]; then
exit 31
fi

View File

@ -1,6 +0,0 @@
#!/usr/bin/env bash
# do the launcher
rofi -modi run,drun,window -show drun \
-show-icons -me-select-entry '' \
-me-accept-entry 'Mouse1' -sidebar-mode

View File

@ -1,8 +0,0 @@
#!/usr/bin/env bash
rofi -no-config -modi run,drun,window -show drun \
-eh 1 -line-padding 4 -padding 50 -sidebar-mode \
-show-icons -drun-icon-theme "ArchLabs-Light" \
-font "Ubuntu 11" -color-enabled \
-color-window "#2b303b, #8fa1b3, #2b303b" \
-color-normal "#2b303b, #8fa1b3, #2b303b, #8fa1b3, #2b303b"

View File

@ -1,8 +0,0 @@
#!/usr/bin/env bash
rofi -no-config -modi run,drun,window -show drun \
-eh 1 -line-padding 4 -padding 50 -sidebar-mode \
-show-icons -drun-icon-theme "ArchLabs-Light" \
-font "Ubuntu 11" -color-enabled \
-color-window "{{.Data.terminal_background}}, {{index .Data.terminal_colors 4}}, {{.Data.terminal_background}}" \
-color-normal "{{.Data.terminal_background}}, {{index .Data.terminal_colors 4}}, {{.Data.terminal_background}}, {{index .Data.terminal_colors 4}}, {{.Data.terminal_background}}"

View File

@ -1,25 +0,0 @@
#!/usr/bin/env bash
question=$(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 "#2b303b, #8fa1b3, #2b303b" \
-color-normal "#2b303b, #8fa1b3, #2b303b, #8fa1b3, #2b303b")
case $question in
*lock)
i3lock-fancy
;;
*logout)
session-logout
;;
*reboot)
systemctl reboot
;;
*shutdown)
systemctl poweroff
;;
*)
exit 0 # do nothing on wrong response
;;
esac

View File

@ -1,25 +0,0 @@
#!/usr/bin/env bash
question=$(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}}")
case $question in
*lock)
i3lock-fancy
;;
*logout)
session-logout
;;
*reboot)
systemctl reboot
;;
*shutdown)
systemctl poweroff
;;
*)
exit 0 # do nothing on wrong response
;;
esac

View File

@ -1,6 +0,0 @@
#!/bin/bash
rofi -no-config -modi window -show window -hide-scrollbar -eh 1 \
-padding 50 -line-padding 4 -font "Fantasque Sans Mono 12" -color-enabled \
-color-window "#1F2326, #1F2326, #1F2326" \
-color-normal "#1F2326, #F1F1F1, #1F2326, #4E88CF, #1F2326"

View File

@ -1,6 +0,0 @@
#!/bin/bash
rofi -no-config -modi window -show window -hide-scrollbar -eh 1 \
-padding 50 -line-padding 4 -font "Fantasque Sans Mono 12" -color-enabled \
-color-window "{{.Data.terminal_background}}, {{.Data.terminal_background}}, {{.Data.terminal_background}}" \
-color-normal "{{.Data.terminal_background}}, {{.Data.terminal_foreground}}, {{.Data.terminal_background}}, {{index .Data.terminal_colors 4}}, {{.Data.terminal_background}}"

81
home/bin/rofr.sh Executable file
View File

@ -0,0 +1,81 @@
#!/usr/bin/env bash
Name=$(basename "$0")
Version="0.1"
_usage() {
cat <<- EOF
Usage: $Name [options]
Options:
-h Display this message
-v Display script version
-q Persistant calculator dialog
-w Switch between open windows
-r Program launcher & run dialog
-c Select previous clipboard entries
-b Browser search by keyword
-l Session logout choice
EOF
}
# Handle command line arguments
while getopts ":hvqwcbrl" opt; do
case $opt in
h)
_usage
exit 0
;;
v)
echo -e "$Name -- Version $Version"
exit 0
;;
r)
rofi -modi run,drun -show drun -line-padding 4 \
-columns 2 -padding 50 -hide-scrollbar \
-show-icons -drun-icon-theme "ArchLabs-Light"
;;
w)
rofi -modi window -show window -hide-scrollbar \
-eh 1 -padding 50 -line-padding 4
;;
q)
rofi -modi "calc:qalc +u8 -nocurrencies" -padding 50 \
-show "calc:qalc +u8 -nocurrencies" -line-padding 4 \
-hide-scrollbar
;;
c)
rofi -modi "clipboard:greenclip print" -padding 50 \
-line-padding 4 -show "clipboard:greenclip print" \
-hide-scrollbar
;;
b)
surfraw -browser="$BROWSER" $(sr -elvi | awk -F'-' '{print $1}' \
| sed '/:/d' | awk '{$1=$1};1' | rofi -hide-scrollbar \
-kb-row-select 'Tab' -kb-row-tab 'Control+space' \
-dmenu -mesg 'Tab for Autocomplete' -i -p 'Web Search: ' \
-padding 50 -line-padding 4)
;;
l)
ANS=$(echo " Lock| Logout| Reboot| Shutdown" | \
rofi -sep "|" -dmenu -i -p 'System: ' "" -width 20 \
-hide-scrollbar -eh 1 -line-padding 4 -padding 20 -lines 4)
case "$ANS" in
*Lock) i3lock-fancy ;;
*Logout) session-logout ;;
*Reboot) systemctl reboot ;;
*Shutdown) systemctl poweroff
esac
;;
*)
echo -e "Option does not exist: -$OPTARG"
_usage
exit 1
esac
done
shift $((OPTIND - 1))
exit 0

View File

@ -1,6 +1,5 @@
#!/usr/bin/env bash
if [[ "$(pidof compton)" ]]; then
al-compositor --restart
else

View File

@ -1,25 +0,0 @@
#!/usr/bin/env bash
on=""
off=""
# if the script is passed --toggle
if [[ "$1" ]]; then
if [[ "$1" == *toggle* ]] && [[ "$(pidof caffeine)" ]]; then
killall caffeine
elif [[ "$1" == *toggle* ]]; then
caffeine &
fi
exit 0
fi
while true; do
# caffeine is running
if [[ "$(pidof caffeine)" ]]; then
echo "%{F#0000FF}$on"
else
echo "%{F#FF0000}$off"
fi
sleep 2
done

View File

@ -1,22 +0,0 @@
#!/usr/bin/env bash
on=""
off=""
if [[ "$1" ]]; then
if [[ "$1" == *toggle* ]] && [[ "$(pidof compton)" ]]; then
al-compositor --stop
elif [[ "$1" == *toggle* ]]; then
al-compositor --start
fi
exit 0
fi
while true; do
if [[ "$(pidof compton)" ]]; then
echo "$on"
else
echo "%{F#888888}$off"
fi
sleep 2
done

View File

@ -1,9 +0,0 @@
#!/usr/bin/env bash
# small script to kill polybar if it is running
# if it isnt running then start it the default session
if [[ "$(pidof polybar)" ]]; then
pkill polybar
else
al-polybar-session
fi

View File

@ -1,32 +0,0 @@
#!/usr/bin/env bash
icon=""
if [[ $1 = "--toggle" ]] || [[ $1 = "-t" ]]; then
if pgrep redshift >/dev/null; then
pkill redshift
else
redshift-gtk &
fi
exit 0
fi
while true; do
pgrep -x redshift &> /dev/null
if [[ $? -eq 0 ]]; then
temp=$(redshift -p 2>/dev/null | grep temp | cut -d' ' -f3)
temp=${temp//K/}
fi
if [[ -z $temp ]]; then
echo " $icon " # Greyed out (not running)
elif [[ $temp -ge 5000 ]]; then
echo "%{F#8039A0} $icon " # Blue
elif [[ $temp -ge 4000 ]]; then
echo "%{F#F203F0} $icon " # Yellow
else
echo "%{F#FF5B6C} $icon " # Orange
fi
sleep 2
done

View File

@ -1,12 +0,0 @@
#!/usr/bin/env bash
# will check if precisely this termite instance is running
# if it is, then kill it, otherwise launch a new termite with these settings
# This allows a "Toggle-able" terminal, by simply binding a key to
# "toggle-termite"
if pgrep --full 'termite --title=work-term' &>/dev/null; then
pkill --full 'termite --title=work-term'
else
termite --title=work-term --class=work-term &
fi

158
home/bin/toggle.sh Executable file
View File

@ -0,0 +1,158 @@
#!/usr/bin/env bash
Name=$(basename "$0")
Version="0.1"
_usage() {
cat <<EOF
USAGE:
$Name [OPTIONS] [ADDITIONAL]
OPTIONS:
-h,--help Display this message
-v,--version Display script version
-t,--terminal Toggle a floating work terminal, no additional options
-p,--polybar Toggle the configured polybar session, no additional options
-c,--compton Toggle compton or daemon monitoring icon, can use toggle option
-r,--redshift Toggle redshift or daemon monitoring icon, can use toggle option
-f,--caffeine Toggle caffeine or daemon monitoring icon, can use toggle option
ADDITIONAL:
-tg,--toggle Toggle the program off/on, without this flag a monitor process will be started
EOF
}
toggle_terminal() {
if pgrep --full "termite --title=Work --class=Work" &>/dev/null; then
pkill --full "termite --title=Work --class=Work"
else
termite --title=Work --class=Work &
fi
}
toggle_polybar() {
if [[ $(pidof polybar) ]]; then
pkill polybar
else
al-polybar-session
fi
}
toggle_compton() {
if [[ $opt -eq 1 ]]; then
if [[ $(pidof compton) ]]; then
al-compositor --stop
else
al-compositor --start
fi
exit 0
fi
on=""
off=""
while true; do
if [[ $(pidof compton) ]]; then
echo "$on"
else
echo "%{F#888888}$off"
fi
sleep 2
done
}
toggle_redshift() {
if [[ $opt -eq 1 ]]; then
if [[ $(pidof redshift) ]]; then
pkill redshift
else
redshift &
fi
exit 0
fi
icon=""
while true; do
if [[ $(pidof redshift) ]]; then
temp=$(sed 's/K//g' <<< "$(grep -o '[0-9].*K' <<< "$(redshift -p 2>/dev/null)")")
fi
if [[ -z $temp ]]; then
echo " $icon " # Greyed out (not running)
elif [[ $temp -ge 5000 ]]; then
echo "%{F#8039A0} $icon " # Blue
elif [[ $temp -ge 4000 ]]; then
echo "%{F#F203F0} $icon " # Yellow
else
echo "%{F#FF5B6C} $icon " # Orange
fi
sleep 2
done
}
toggle_caffeine() {
if [[ $opt -eq 1 ]]; then
if [[ $(pidof caffeine) ]]; then
killall caffeine
else
caffeine &
fi
exit 0
fi
on=""
off=""
while true; do
if [[ $(pidof caffeine) ]]; then
echo "%{F#0000FF}$on"
else
echo "%{F#FF0000}$off"
fi
sleep 2
done
}
# Catch command line options
case $1 in
-t|--terminal)
toggle_terminal
;;
-p|--polybar)
toggle_polybar
;;
-c|--compton)
case $2 in
-tg|--toggle)
opt=1
esac
toggle_compton
;;
-r|--redshift)
case $2 in
-tg|--toggle)
opt=1
esac
toggle_redshift
;;
-f|--caffeine)
case $2 in
-tg|--toggle)
opt=1
esac
toggle_caffeine
;;
-h|--help)
_usage
;;
-v|--version)
echo -e "$Name -- Version $Version"
;;
*)
echo -e "Option does not exist: $1" && _usage && exit 1
esac
exit 0

36
home/bin/updates.sh Executable file
View File

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

View File

@ -1,10 +1,5 @@
#!/usr/bin/env bash
#
# A script to upgrade existing installations of ArchLabs
#
# Written by Nathaniel Maia <natemaia10@gmail.com>
#
REPOS='
[archlabs_repo]
@ -30,6 +25,7 @@ while ! [[ $(ping -c1 8.8.8.8) ]]; do
clear; sleep 1
done
backup_configs() {
if ! [[ -e "$HOME/Downloads/$USER-backup.tar.gz" ]]; then
tar czvf "$HOME/Downloads/$USER-backup.tar.gz" "${HOME_FILES[@]}" >/dev/null 2>&1
@ -45,7 +41,7 @@ setup_configs() {
for f in "${SKEL_FILES[@]}"; do
cp -rf "$f" ~/
done
cp -f /etc/skel/.{bashrc,zshrc} "$HOME/"
cp -f /etc/skel/.{bashrc,zshrc} ~/
}
new_configs() {