Skip to content

Commit

Permalink
Some modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
István Bozsó committed Jul 6, 2019
1 parent 9b642bc commit 30f38b2
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 91 deletions.
67 changes: 17 additions & 50 deletions configs/openbox/rc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
<font place="InactiveOnScreenDisplay">
<name>Sans</name>
<size>8</size>
<weight></weight>
<slant></slant>
<weight/>
<slant/>
</font>
</theme>
<desktops>
Expand All @@ -111,7 +111,7 @@
use obconf if you want to change these without having to log out
and back in -->
<number>4</number>
<number>3</number>
<firstdesk>1</firstdesk>
<names>
<!-- set names up here if you want to, like this:
Expand Down Expand Up @@ -285,7 +285,6 @@
</finalactions>
</action>
</keybind>

<!-- Keybindings for running applications -->
<keybind key="W-e">
<action name="Execute">
Expand All @@ -296,58 +295,49 @@
<command>pcmanfm</command>
</action>
</keybind>

<keybind key="W-r">
<action name="Execute">
<command>openbox --reconfigure</command>
<command>killall -SIGUSR1 tint2</command>
</action>
</keybind>

<!--
<keybind key="W-i">
<action name="Execute">
<command>parole</command>
</action>
</keybind>
-->

<keybind key="W-w">
<action name="Execute">
<command>chromium-browser</command>
</action>
</keybind>

<keybind key="W-m">
<action name="Execute">
<command>sh /home/istvan/progs/utils/menu.sh modules</command>
</action>
</keybind>

<keybind key="W-n">
<action name="Execute">
<command>parole -N</command>
</action>
</keybind>

<keybind key="W-s">
<action name="Execute">
<command>sh /home/istvan/progs/utils/menu.sh shutdown</command>
</action>
</keybind>

<keybind key="C-space">
<action name="Execute">
<command>sh /home/istvan/progs/utils/menu.sh programs</command>
</action>
</keybind>

<keybind key="W-t">
<action name="Execute">
<command>lxterminal</command>
</action>
</keybind>

<keybind key="W-h">
<action name="Execute">
<startupnotify>
Expand All @@ -357,43 +347,28 @@
<command>lxterminal --command="htop"</command>
</action>
</keybind>

<keybind key="W-l">
<action name="Execute">
<command>libreoffice</command>
</action>
</keybind>

<!-- Snapping windows -->
<keybind key="W-KP_1"> # Lower Left
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x><y>-0</y><height>50%</height><width>50%</width>
</action>
<action name="MoveResizeTo"><x>0</x><y>-0</y><height>50%</height><width>50%</width></action>
</keybind>

<keybind key="W-KP_7"> # Upper Left
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x><y>0</y><height>50%</height><width>50%</width>
</action>
<action name="MoveResizeTo"><x>0</x><y>0</y><height>50%</height><width>50%</width></action>
</keybind>


<keybind key="W-KP_3"> # Lower Right
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>-0</x><y>-0</y><height>50%</height><width>50%</width>
</action>
<action name="MoveResizeTo"><x>-0</x><y>-0</y><height>50%</height><width>50%</width></action>
</keybind>

<keybind key="W-KP_9"> # Upper Right
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>-0</x><y>0</y><height>50%</height><width>50%</width>
</action>
<action name="MoveResizeTo"><x>-0</x><y>0</y><height>50%</height><width>50%</width></action>
</keybind>

<keybind key="W-Return">
<action name="ToggleMaximizeFull"/>
</keybind>
Expand All @@ -413,7 +388,6 @@
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo"><x>0</x><y>-0</y><width>100%</width><height>50%</height></action>
</keybind>

<!-- brightness control -->
<keybind key="XF86MonBrightnessUp">
<action name="Execute">
Expand All @@ -425,35 +399,28 @@
<command>xbacklight -8</command>
</action>
</keybind>


<!-- Keybindings for window switching within one desktop -->
<keybind key="W-Right">
<action name="DirectionalCycleWindows">
<action name="DirectionalCycleWindows">
<direction>east</direction>
</action>
</action>
</keybind>

<keybind key="W-Left">
<action name="DirectionalCycleWindows">
<direction>west</direction>
</action>
<action name="DirectionalCycleWindows">
<direction>west</direction>
</action>
</keybind>

<keybind key="W-Down">
<action name="DirectionalCycleWindows">
<action name="DirectionalCycleWindows">
<direction>south</direction>
</action>
</action>
</keybind>

<keybind key="W-Up">
<action name="DirectionalCycleWindows">
<action name="DirectionalCycleWindows">
<direction>north</direction>
</action>
</action>
</keybind>

</keyboard>

<mouse>
<dragThreshold>1</dragThreshold>
<!-- number of pixels the mouse must move before a drag begins -->
Expand Down Expand Up @@ -510,7 +477,7 @@
<to>next</to>
</action>
</mousebind>
<!--
<!--
<mousebind button="A-S-Up" action="Click">
<action name="SendToDesktop">
<to>previous</to>
Expand Down
1 change: 1 addition & 0 deletions configs/textadept/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ textadept.run.run_commands["markdown"] = cmd
textadept.run.run_commands["html"] = cmd
textadept.run.run_commands["cml"] = cmd

textadept.run.run_commands["py"] = "pycodestyle.py %f"

--
-- keys.command_mode = {
Expand Down
63 changes: 33 additions & 30 deletions gnuplot/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,25 @@
import gnuplot.private as gp


__all__ = ("arrow", "call", "colorbar", "debug", "histo", "label", "labels",
"line", "linedef", "margins", "multiplot", "nicer", "obj",
"output", "palette", "plot", "plot_data", "plot_file", "plot_grid",
"ranges", "refresh", "remove_temps", "replot", "reset", "save",
"set", "silent", "splot", "style", "term", "title", "unset_multi",
"xlabel", "xrange", "xtics", "ylabel", "yrange", "ytics",
"zlabel", "zrange", "ztics")
__all__ = (
"arrow", "call", "colorbar", "debug", "histo", "label", "labels",
"line", "linedef", "margins", "multiplot", "nicer", "obj",
"output", "palette", "plot", "plot_data", "plot_file", "plot_grid",
"ranges", "refresh", "remove_temps", "replot", "reset", "save",
"set", "silent", "splot", "style", "term", "title", "unset_multi",
"xlabel", "xrange", "xtics", "ylabel", "yrange", "ytics",
"zlabel", "zrange", "ztics", "colors"
)


_session = gp.Session()


def call(*args):
for arg in args:
_session(arg)


def refresh(plot_cmd):
plot_objects = _session.plot_items

Expand Down Expand Up @@ -346,29 +350,6 @@ def nicer():
set style line 12 lc rgb 'black' lt 0 lw 1
set grid back ls 12
""")

colors = {
"red": "#8b1a0e",
"green": "#5e9c36",
"lightgreen": "#4d9178",
"blue": "#0074D9",
"darkblue": "#140a60",
"navy": "#001f3f",
"aqua": "#7FDBFF",
"teal": "#39CCCC",
"olive": "#3D9970",
"yellow" :"#FFDC00",
"lime" :"#01FF70",
"orange": "#FF851B",
"maroon": "#85144b",
"fuchsia": "#F012BE",
"purple": "#B10DC9",
"black": "#111111",
"gray": "#AAAAAA",
"silver": "#DDDDDD"
}

return colors


def reset():
Expand Down Expand Up @@ -551,6 +532,28 @@ def linedef(ltype, **kwargs):
return "{} {}".format(ltype, " ".join(parsed_kwargs))


colors = {
"red": "#8b1a0e",
"green": "#5e9c36",
"lightgreen": "#4d9178",
"blue": "#0074D9",
"darkblue": "#140a60",
"navy": "#001f3f",
"aqua": "#7FDBFF",
"teal": "#39CCCC",
"olive": "#3D9970",
"yellow" :"#FFDC00",
"lime" :"#01FF70",
"orange": "#FF851B",
"maroon": "#85144b",
"fuchsia": "#F012BE",
"purple": "#B10DC9",
"black": "#111111",
"gray": "#AAAAAA",
"silver": "#DDDDDD"
}


# **************
# * Exceptions *
# **************
Expand Down
3 changes: 2 additions & 1 deletion gnuplot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
"debug": False,
"silent": False,
"exe": "gnuplot",
"size": [800,600]
"size": (800, 600)
}


def update(**kwargs):
gnuplot_config.update(kwargs)

Expand Down
7 changes: 6 additions & 1 deletion menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ check_narg() {
}


wttr() {
local cmd='wttr.in/?format=4'
notify-send "Weather Report" "$(curl --compressed $cmd)"
}

dprompt() {
[ "$(printf 'No\nYes' | mymenu -p "$1")" = "Yes" ] && $2
}
Expand Down Expand Up @@ -210,7 +215,7 @@ select_module() {

main() {
check_narg $# 1

case $1 in
"programs")
dmenu_run $opt
Expand Down
4 changes: 2 additions & 2 deletions tools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
from os.path import join


__all__ = [
__all__ = (
"repos",
"cmd",
"notify",
"debug"
]
)


home = "/home/istvan"
Expand Down
7 changes: 4 additions & 3 deletions tools/dmenu.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from subprocess import Popen, PIPE, check_output, CalledProcessError, STDOUT
from subprocess import Popen, PIPE, STDOUT
from shlex import split
from common import *

__all__ = [

__all__ = (
"run",
"select",
"inp",
"password"
]
)


opt = "-fn -adobe-helvetica-bold-r-normal-*-25-180-100-100-p-138-iso8859-1"
Expand Down
Loading

0 comments on commit 30f38b2

Please sign in to comment.