Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
desktop
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
6
Merge Requests
6
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chakra
Packages
desktop
Commits
cfc85111
Commit
cfc85111
authored
Jun 02, 2011
by
Neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added another application by admiral0
parent
40bd2522
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
134 additions
and
0 deletions
+134
-0
kdeplasma-applets-switchy/PKGBUILD
kdeplasma-applets-switchy/PKGBUILD
+46
-0
kdeplasma-applets-switchy/org.admiral0.vgad.conf
kdeplasma-applets-switchy/org.admiral0.vgad.conf
+21
-0
kdeplasma-applets-switchy/vgad
kdeplasma-applets-switchy/vgad
+67
-0
No files found.
kdeplasma-applets-switchy/PKGBUILD
0 → 100644
View file @
cfc85111
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# contributor: Radu Andries <admiral0 at tuxfamily.org>
# include global config
source
../_buildscripts/
${
current_repo
}
-
${
_arch
}
-cfg
.conf
pkgname
=
kdeplasma-applets-switchy
pkgver
=
1.0
pkgrel
=
1
arch
=(
'i686'
'x86_64'
)
pkgdesc
=
"A plasmoid for kde4 using vga_switcheroo. Only switchable graphics"
url
=
"https://github.com/admiral0/Switchy"
makedepends
=(
"cmake"
"automoc4"
)
depends
=(
'kdebase-workspace'
)
license
=(
'GPL'
)
source
=(
"http://kde-look.org/CONTENT/content-files/136969-Switchy-1.0.tar.bz2"
"vgad"
"org.admiral0.vgad.conf"
)
md5sums
=(
'6938214b0b56c479d4872c31f4d071eb'
'd9cc95fcc86aedb4541dabc8c6ecb603'
'7d78ee23540fe0b876cf687e0d569312'
)
build
()
{
cd
$srcdir
/Switchy/
if
[
-d
build
]
;
then
rm
-rf
build
fi
mkdir
build
cd
build
cmake
-DCMAKE_INSTALL_PREFIX
=
/usr ..
make
}
package
()
{
cd
$srcdir
/Switchy/build
make
DESTDIR
=
$pkgdir
install
install
-D
daemon/vgad
$pkgdir
/usr/bin/vgad
install
-D
client/vgac
$pkgdir
/usr/bin/vgac
install
-D
$srcdir
/vgad
$pkgdir
/etc/rc.d/vgad
install
-D
$srcdir
/org.admiral0.vgad.conf
$pkgdir
/etc/dbus-1/system.d/org.admiral0.vgad.conf
}
\ No newline at end of file
kdeplasma-applets-switchy/org.admiral0.vgad.conf
0 → 100644
View file @
cfc85111
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?> <!-- -*-
XML
-*- -->
<!
DOCTYPE
busconfig
PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"
>
<
busconfig
>
<!--
Only
root
can
own
the
service
-->
<
policy
user
=
"root"
>
<
allow
own
=
"org.admiral0.VgaSwitcheroo"
/>
</
policy
>
<
policy
context
=
"default"
>
<
allow
send_destination
=
"org.admiral0.VgaSwitcheroo"
send_interface
=
"org.freedesktop.DBus.Introspectable"
/>
<
allow
send_destination
=
"org.admiral0.VgaSwitcheroo"
send_interface
=
"org.freedesktop.DBus.Properties"
/>
<
allow
send_destination
=
"org.admiral0.VgaSwitcheroo"
send_interface
=
"org.admiral0.VgaSwitcheroo"
/>
</
policy
>
</
busconfig
>
kdeplasma-applets-switchy/vgad
0 → 100644
View file @
cfc85111
#!/bin/bash
daemon_name
=
vgad
.
/etc/rc.conf
.
/etc/rc.d/functions
get_pid
()
{
pidof
-o
%PPID
$daemon_name
}
case
"
$1
"
in
start
)
stat_busy
"Starting
$daemon_name
daemon"
PID
=
$(
get_pid
)
if
[
-z
"
$PID
"
]
;
then
[
-f
/var/run/
$daemon_name
.pid
]
&&
rm
-f
/var/run/
$daemon_name
.pid
# RUN
$daemon_name
&
#
if
[
$?
-gt
0
]
;
then
stat_fail
exit
1
else
echo
$(
get_pid
)
>
/var/run/
$daemon_name
.pid
add_daemon
$daemon_name
stat_done
fi
else
stat_fail
exit
1
fi
;;
stop
)
stat_busy
"Stopping
$daemon_name
daemon"
PID
=
$(
get_pid
)
# KILL
[
!
-z
"
$PID
"
]
&&
kill
$PID
&> /dev/null
#
if
[
$?
-gt
0
]
;
then
stat_fail
exit
1
else
rm
-f
/var/run/
$daemon_name
.pid &> /dev/null
rm_daemon
$daemon_name
stat_done
fi
;;
restart
)
$0
stop
sleep
3
$0
start
;;
status
)
stat_busy
"Checking
$daemon_name
status"
;
ck_status
$daemon_name
;;
*
)
echo
"usage:
$0
{start|stop|restart|status}"
esac
exit
0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment